/*
 * ============================================
 * DESIGN TOKENS - Label Évasion Back-Office
 * ============================================
 * Refonte visuelle complète avec système de composants
 * Conservation de toutes les fonctionnalités existantes
 * Focus : hiérarchie visuelle, accessibilité, responsive
 */

:root {
  /* === PALETTE === */
  --bo-color-primary: #2250f4;
  --bo-color-primary-hover: #1838bb;
  --bo-color-primary-active: #0f2899;
  --bo-color-primary-light: #ebf0fe;
  --bo-color-primary-alpha: rgba(34, 80, 244, 0.1);
  
  --bo-color-secondary: #1f2c46;
  --bo-color-secondary-hover: #162136;
  --bo-color-secondary-light: #e8eaf0;
  
  --bo-color-success: #10b981;
  --bo-color-success-light: #d1fae5;
  --bo-color-success-alpha: rgba(16, 185, 129, 0.1);
  
  --bo-color-danger: #ef4444;
  --bo-color-danger-hover: #dc2626;
  --bo-color-danger-light: #fee2e2;
  --bo-color-danger-alpha: rgba(239, 68, 68, 0.1);
  
  --bo-color-warning: #f59e0b;
  --bo-color-warning-light: #fef3c7;
  
  --bo-color-info: #3b82f6;
  --bo-color-info-light: #dbeafe;
  
  /* === NEUTRAL SCALE === */
  --bo-color-bg: #f7f9fc;
  --bo-color-surface: #ffffff;
  --bo-color-surface-elevated: #ffffff;
  --bo-color-overlay: rgba(15, 23, 42, 0.5);
  
  --bo-color-text: #0f172a;
  --bo-color-text-muted: #64748b;
  --bo-color-text-subtle: #94a3b8;
  --bo-color-text-inverted: #ffffff;
  
  --bo-color-border: rgba(15, 23, 42, 0.08);
  --bo-color-border-strong: rgba(15, 23, 42, 0.16);
  --bo-color-border-light: rgba(15, 23, 42, 0.04);
  
  /* === SPACING SCALE === */
  --bo-spacing-xs: 0.25rem;    /* 4px */
  --bo-spacing-sm: 0.5rem;     /* 8px */
  --bo-spacing-md: 0.75rem;    /* 12px */
  --bo-spacing-base: 1rem;     /* 16px */
  --bo-spacing-lg: 1.5rem;     /* 24px */
  --bo-spacing-xl: 2rem;       /* 32px */
  --bo-spacing-2xl: 3rem;      /* 48px */
  --bo-spacing-3xl: 4rem;      /* 64px */
  
  /* === BORDER RADIUS === */
  --bo-radius-sm: 4px;
  --bo-radius-md: 8px;
  --bo-radius-lg: 12px;
  --bo-radius-xl: 16px;
  --bo-radius-full: 9999px;
  
  /* === SHADOWS === */
  --bo-shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --bo-shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.1), 0 1px 2px -1px rgba(15, 23, 42, 0.1);
  --bo-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -2px rgba(15, 23, 42, 0.1);
  --bo-shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.1);
  --bo-shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
  --bo-shadow-focus: 0 0 0 3px var(--bo-color-primary-alpha);
  --bo-shadow-focus-danger: 0 0 0 3px var(--bo-color-danger-alpha);
  
  /* === BORDER WIDTHS === */
  --bo-border-width: 1px;
  --bo-border-width-thick: 2px;
  
  /* === TYPOGRAPHY === */
  --bo-font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bo-font-size-xs: 0.75rem;    /* 12px */
  --bo-font-size-sm: 0.875rem;   /* 14px */
  --bo-font-size-base: 1rem;     /* 16px */
  --bo-font-size-lg: 1.125rem;   /* 18px */
  --bo-font-size-xl: 1.25rem;    /* 20px */
  --bo-font-size-2xl: 1.5rem;    /* 24px */
  --bo-font-size-3xl: 1.875rem;  /* 30px */
  
  --bo-font-weight-normal: 400;
  --bo-font-weight-medium: 500;
  --bo-font-weight-semibold: 600;
  --bo-font-weight-bold: 700;
  
  --bo-line-height-tight: 1.25;
  --bo-line-height-normal: 1.5;
  --bo-line-height-relaxed: 1.75;
  
  /* === TRANSITIONS === */
  --bo-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --bo-transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --bo-transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* === Z-INDEX SCALE === */
  --bo-z-dropdown: 1000;
  --bo-z-sticky: 1010;
  --bo-z-fixed: 1020;
  --bo-z-modal-backdrop: 1030;
  --bo-z-modal: 1040;
  --bo-z-toast: 1050;
  
  /* === COMPONENT SPECIFIC === */
  --bo-sidebar-width: 260px;
  --bo-header-height: 64px;
  --bo-content-max-width: 2400px;
  --bo-input-height: 44px;
  --bo-input-height-sm: 36px;
  --bo-input-height-lg: 52px;
  
  /* === BREAKPOINTS (for reference in JS/media queries) === */
  --bo-breakpoint-sm: 640px;
  --bo-breakpoint-md: 768px;
  --bo-breakpoint-lg: 1024px;
  --bo-breakpoint-xl: 1280px;
  --bo-breakpoint-2xl: 1536px;
}

/* ============================================
   DARK THEME - Mode sombre
   ============================================ */



/* === BASE & RESET === */
*, 
*::before,
*::after {
  box-sizing: border-box;
}

.is-hidden {
  display: none !important;
}

/* Focus visible pour accessibilité (navigation clavier) */
*:focus-visible {
  outline: 2px solid var(--bo-color-primary);
  outline-offset: 2px;
}

/* Shortcuts table */
.bo-shortcuts-table {
  width: 100%;
  border-collapse: collapse;
}

.bo-shortcuts-table tbody tr {
  border-bottom: 1px solid var(--bo-color-border);
}

.bo-shortcuts-table tbody tr:last-child {
  border-bottom: none;
}

.bo-shortcuts-table td {
  padding: 0.5rem 0;
}

.bo-shortcuts-table td:first-child {
  padding-right: 1.5rem;
  white-space: nowrap;
}

.bo-shortcuts-table td:last-child {
  color: var(--bo-color-text-muted);
}

.bo-shortcuts-table kbd {
  display: inline-block;
  padding: 0.125rem 0.375rem;
  font-size: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  line-height: 1;
  color: var(--bo-color-text);
  background-color: var(--bo-color-bg-elevated);
  border: 1px solid var(--bo-color-border);
  border-radius: 3px;
  box-shadow: 0 1px 0 0 var(--bo-color-border);
}




button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--bo-color-primary);
  outline-offset: 2px;
}

body.bo-admin {
  margin: 0;
  background: var(--bo-color-bg);
  font-family: var(--bo-font-family);
  font-size: var(--bo-font-size-base);
  line-height: var(--bo-line-height-normal);
  color: var(--bo-color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === LAYOUT === */
.bo-layout {
  display: grid;
  grid-template-columns: var(--bo-sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
  background: var(--bo-color-bg);
}

/* === SIDEBAR === */
.bo-sidebar-overlay {
  display: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.bo-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: var(--bo-spacing-lg) var(--bo-spacing-base);
  background: linear-gradient(180deg, #1a2238 0%, #151d2f 100%);
  color: #ffffff;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--bo-shadow-lg);
  z-index: var(--bo-z-sticky);
}

.bo-sidebar__inner {
  display: flex;
  flex-direction: column;
  gap: var(--bo-spacing-xl);
  height: 100%;
}

.bo-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bo-spacing-sm);
  padding-bottom: var(--bo-spacing-base);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--bo-radius-full);
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: all var(--bo-transition-base);
}

.sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  background: currentColor;
  border-radius: 999px;
  transition: all var(--bo-transition-base);
}

.sidebar-trigger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--bo-radius-full);
  border: 1px solid var(--bo-color-border);
  background: var(--bo-color-surface);
  color: var(--bo-color-text);
  box-shadow: var(--bo-shadow-md);
  cursor: pointer;
  transition: all var(--bo-transition-base);
}

.sidebar-trigger:hover {
  box-shadow: var(--bo-shadow-lg);
  transform: translateY(-1px);
}

.sidebar-trigger:active {
  transform: scale(0.98);
  box-shadow: var(--bo-shadow-sm);
}

.sidebar-trigger span {
  display: block;
  height: 2px;
  width: 20px;
  background: currentColor;
  border-radius: 999px;
}

.bo-sidebar__brand {
  display: flex;
  align-items: center;
  gap: var(--bo-spacing-md);
  font-weight: var(--bo-font-weight-bold);
  font-size: var(--bo-font-size-lg);
}

.bo-sidebar__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--bo-radius-lg);
  background: linear-gradient(135deg, var(--bo-color-primary) 0%, var(--bo-color-primary-hover) 100%);
  font-weight: var(--bo-font-weight-bold);
  font-size: var(--bo-font-size-base);
  box-shadow: 0 4px 12px rgba(34, 80, 244, 0.3);
}

.bo-sidebar__title {
  color: #ffffff;
}

.bo-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: var(--bo-spacing-xs);
  flex: 1;
}

.bo-nav__item {
  width: 100%;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  text-align: left;
  padding: var(--bo-spacing-md) var(--bo-spacing-base);
  border-radius: var(--bo-radius-md);
  font-size: var(--bo-font-size-base);
  font-weight: var(--bo-font-weight-medium);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all var(--bo-transition-base);
  position: relative;
}

.bo-nav__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--bo-color-primary);
  border-radius: 0 2px 2px 0;
  transition: height var(--bo-transition-base);
}

.bo-nav__item:hover,
.bo-nav__item:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  outline: none;
}

.bo-nav__item.is-active {
  background: rgba(34, 80, 244, 0.15);
  color: #ffffff;
  font-weight: var(--bo-font-weight-semibold);
}

.bo-nav__item.is-active::before {
  height: 24px;
}

/* Navigation Groups */
.bo-nav__group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bo-nav__parent {
  width: 100%;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  text-align: left;
  padding: var(--bo-spacing-md) var(--bo-spacing-base);
  border-radius: var(--bo-radius-md);
  font-size: var(--bo-font-size-base);
  font-weight: var(--bo-font-weight-semibold);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all var(--bo-transition-base);
  display: flex;
  align-items: center;
  gap: var(--bo-spacing-sm);
}

.bo-nav__parent svg:first-child {
  flex-shrink: 0;
  opacity: 0.7;
}

.bo-nav__parent-icon {
  margin-left: auto;
  flex-shrink: 0;
  transition: transform var(--bo-transition-base);
}

.bo-nav__parent[aria-expanded="true"] .bo-nav__parent-icon {
  transform: rotate(180deg);
}

.bo-nav__parent:hover,
.bo-nav__parent:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  outline: none;
}

.bo-nav__parent:hover svg:first-child,
.bo-nav__parent[aria-expanded="true"] svg:first-child {
  opacity: 1;
}

.bo-nav__submenu {
  display: none;
  flex-direction: column;
  gap: 0;
  padding-left: var(--bo-spacing-lg);
  margin-top: var(--bo-spacing-xs);
}

.bo-nav__submenu.is-open {
  display: flex;
}

.bo-nav__submenu .bo-nav__item {
  font-size: var(--bo-font-size-sm);
  padding: var(--bo-spacing-sm) var(--bo-spacing-base);
  font-weight: var(--bo-font-weight-normal);
}

.bo-nav__submenu .bo-nav__item::before {
  display: none;
}

.bo-nav__submenu .bo-nav__item.is-active {
  background: rgba(34, 80, 244, 0.1);
  font-weight: var(--bo-font-weight-medium);
}

.bo-sidebar__footer {
  margin-top: auto;
  padding-top: var(--bo-spacing-base);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  font-size: var(--bo-font-size-xs);
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: var(--bo-spacing-sm);
  justify-content: space-between;
}

.bo-sidebar__footer .btn-icon {
  color: rgba(255, 255, 255, 0.7);
  padding: var(--bo-spacing-xs);
}

.bo-sidebar__footer .btn-icon:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.bo-main {
  padding: var(--bo-spacing-xl);
  display: flex;
  flex-direction: column;
  gap: var(--bo-spacing-lg);
}

.bo-main__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bo-spacing-md);
}

.bo-main__title {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--bo-color-secondary);
}

.bo-main__back {
  align-self: flex-start;
}

.bo-view {
  display: block;
}

.bo-view.is-hidden {
  display: none;
}

.bo-home {
  background: var(--bo-color-surface);
  border-radius: var(--bo-radius-md);
  border: var(--bo-border);
  box-shadow: var(--bo-shadow-soft);
  padding: var(--bo-spacing-xl);
  color: var(--bo-color-secondary);
}

.bo-home h2 {
  margin-top: 0;
  font-size: 1.5rem;
}

.bo-home__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--bo-spacing-lg);
  margin: var(--bo-spacing-xl) 0;
}

.bo-stat-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: var(--bo-radius-lg);
  padding: var(--bo-spacing-lg);
  color: white;
  display: flex;
  gap: var(--bo-spacing-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.bo-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.bo-stat-card[data-stat-card="sejours"] {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bo-stat-card[data-stat-card="tutoriels"] {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.bo-stat-card__icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--bo-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bo-stat-card__icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 2;
}

.bo-stat-card__content {
  flex: 1;
}

.bo-stat-card__title {
  margin: 0 0 var(--bo-spacing-sm) 0;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.95;
}

.bo-stat-card__numbers {
  display: flex;
  gap: var(--bo-spacing-lg);
}

.bo-stat-card__number {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bo-stat-card__value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.bo-stat-card__label {
  font-size: 0.85rem;
  opacity: 0.85;
}

.bo-home__detailed-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--bo-spacing-lg);
  margin: var(--bo-spacing-lg) 0 var(--bo-spacing-xl);
}

.bo-detailed-stat-card {
  background: white;
  border: 1px solid var(--bo-color-border);
  border-radius: var(--bo-radius-lg);
  padding: var(--bo-spacing-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s;
}

.bo-detailed-stat-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.bo-detailed-stat-card__title {
  margin: 0 0 var(--bo-spacing-md) 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--bo-color-text);
  display: flex;
  align-items: center;
  gap: var(--bo-spacing-sm);
}

.bo-detailed-stat-card__title svg {
  color: var(--bo-color-primary);
  flex-shrink: 0;
}

.bo-detailed-stat-card__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--bo-spacing-md);
}

.bo-stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--bo-spacing-sm);
  background: var(--bo-color-bg-light);
  border-radius: var(--bo-radius-md);
  transition: background-color 0.2s;
}

.bo-stat-item:hover {
  background: var(--bo-color-bg-hover);
}

.bo-stat-item__value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--bo-color-primary);
  line-height: 1;
}

.bo-stat-item__label {
  font-size: 0.85rem;
  color: var(--bo-color-text-muted);
  font-weight: 500;
}

.bo-home__tips {
  margin: var(--bo-spacing-md) 0 0;
  padding-left: 1.2rem;
  color: var(--bo-color-text-muted);
}

.bo-homepage {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ============================================
 * NEW COLUMN GRID SYSTEM
 * ============================================
 */

.bo-grid-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
}

.bo-grid-col {
  flex: 1 1 320px; /* Stacks if less than 320px available */
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0; /* Prevent flex overflow */
}

.bo-grid-full {
  width: 100%;
  margin-top: 1.5rem;
}

/* Specific overrides for 2-col layouts if needed */
.bo-grid-layout--two-cols > .bo-grid-col {
  flex: 1 1 400px; /* Wider columns for 2-col layout */
}

/* Specific overrides for 3-col layouts if needed */
.bo-grid-layout--three-cols > .bo-grid-col {
  flex: 1 1 300px;
}

.bo-homepage__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--bo-spacing-xl);
  padding-bottom: var(--bo-spacing-xl);
  border-bottom: 1px solid var(--bo-color-border);
}

.bo-homepage__header h2 {
  font-size: var(--bo-font-size-2xl);
  font-weight: var(--bo-font-weight-semibold);
  margin-bottom: var(--bo-spacing-sm);
  color: var(--bo-color-text);
}

.bo-homepage__header p {
  color: var(--bo-color-text-muted);
  font-size: var(--bo-font-size-base);
}

.bo-homepage__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.bo-homepage__preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--bo-color-border);
  border-radius: 12px;
  background: var(--bo-color-surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.bo-homepage__preview-text {
  flex: 1 1 240px;
}

.bo-homepage__preview-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bo-homepage__preview .btn {
  min-width: 120px;
}

.bo-homepage__form .bo-card + .bo-card {
  margin-top: 1.5rem;
}

.bo-homepage-seasons {
  display: grid;
  gap: 2rem;
}

.bo-homepage-season__media {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--bo-color-border);
  border-radius: 12px;
  background: var(--bo-color-surface);
  display: grid;
  grid-template-columns: minmax(0, 240px) 1fr;
  gap: 1rem;
}

@media (max-width: 900px) {
  .bo-homepage-season__media {
    grid-template-columns: 1fr;
  }
}

.bo-homepage-season__preview {
  position: relative;
  border-radius: 12px;
  min-height: 180px;
  background-color: var(--bo-color-border-light);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.bo-homepage-season__preview-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bo-color-secondary);
  font-size: 0.9rem;
  text-align: center;
  padding: 0.5rem;
}

[data-homepage-season-preview][data-has-image="true"] .bo-homepage-season__preview-placeholder {
  display: none;
}

.bo-homepage-season__dropzone {
  border: 1.5px dashed var(--bo-color-border);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  background: var(--bo-color-bg);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.bo-homepage-season__dropzone p {
  margin-bottom: 0.75rem;
}

.bo-homepage-season__dropzone-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.bo-homepage-season__dropzone.is-dragover {
  border-color: var(--bo-color-primary);
  background: var(--bo-color-primary-alpha);
  color: var(--bo-color-primary);
}

.bo-homepage-season__dropzone.is-uploading {
  opacity: 0.7;
  pointer-events: none;
}

.bo-aide-hero-upload {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .bo-aide-hero-upload {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}

.bo-homepage-catalogs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.bo-homepage-catalog {
  border: 1px solid var(--bo-color-border);
  border-radius: 12px;
  padding: 1rem;
  background: var(--bo-color-surface);
}

.bo-homepage-catalog__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.bo-homepage-catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.bo-homepage-catalog__footer {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bo-homepage-catalog__dropzone {
  border: 2px dashed var(--bo-color-border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  background: var(--bo-color-bg);
  transition: all 0.2s ease;
  cursor: pointer;
}

.bo-homepage-catalog__dropzone:hover {
  border-color: var(--bo-color-primary);
  background: var(--bo-color-surface);
}

.bo-homepage-catalog__dropzone.is-dragover {
  border-color: var(--bo-color-primary);
  background: var(--bo-color-primary-light, rgba(59, 130, 246, 0.1));
  border-style: solid;
}

.bo-homepage-catalog__dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.bo-homepage-catalog__dropzone-content svg {
  width: 32px;
  height: 32px;
  color: var(--bo-color-text-muted);
}

.bo-homepage-catalog__dropzone-content p {
  margin: 0;
  color: var(--bo-color-text-muted);
  font-size: 0.875rem;
}

.bo-homepage-catalog__dropzone.is-dragover svg,
.bo-homepage-catalog__dropzone.is-dragover p {
  color: var(--bo-color-primary);
}

/* 
 * ============================================
 * CARD COMPONENT SYSTEM
 * ============================================
 * Usage:
 * <div class="bo-card">
 *   <div class="bo-card__header">
 *     <h3 class="bo-card__title">Title</h3>
 *     <div class="bo-card__actions">...</div>
 *   </div>
 *   <div class="bo-card__body">Content</div>
 *   <div class="bo-card__footer">Actions</div>
 * </div>
 */

.bo-card {
  background: var(--bo-color-surface);
  border-radius: var(--bo-radius-lg);
  border: var(--bo-border-width) solid var(--bo-color-border);
  box-shadow: var(--bo-shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--bo-transition-base);
}

.bo-card:hover {
  box-shadow: var(--bo-shadow-md);
}

.bo-card--elevated {
  box-shadow: var(--bo-shadow-lg);
}

.bo-card--flat {
  box-shadow: none;
  border-color: var(--bo-color-border-light);
}

.bo-card--loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.bo-card--loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bo-color-surface);
  opacity: 0.5;
  z-index: 1;
}

.bo-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bo-spacing-md);
  padding: var(--bo-spacing-base) var(--bo-spacing-lg);
  border-bottom: var(--bo-border-width) solid var(--bo-color-border);
}

.bo-card__header--no-border {
  border-bottom: none;
}

.bo-card__title {
  margin: 0;
  font-size: var(--bo-font-size-base);
  font-weight: var(--bo-font-weight-semibold);
  color: var(--bo-color-text);
  line-height: var(--bo-line-height-tight);
}

.bo-card__subtitle {
  margin: var(--bo-spacing-xs) 0 0;
  font-size: var(--bo-font-size-sm);
  font-weight: var(--bo-font-weight-normal);
  color: var(--bo-color-text-muted);
  line-height: var(--bo-line-height-normal);
}

.bo-card__actions {
  display: flex;
  align-items: center;
  gap: var(--bo-spacing-sm);
  flex-shrink: 0;
}

.bo-card__body {
  padding: var(--bo-spacing-lg);
}

.bo-card__body--compact {
  padding: var(--bo-spacing-base);
}

.bo-card__body--tight {
  padding: var(--bo-spacing-md);
}

.bo-card__body--no-padding {
  padding: 0;
}

.bo-card__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--bo-spacing-md);
  padding: var(--bo-spacing-md) var(--bo-spacing-lg);
  border-top: var(--bo-border-width) solid var(--bo-color-border);
  background: var(--bo-color-bg);
}

.bo-card__footer--space-between {
  justify-content: space-between;
}

/* Card Sections (collapsible/expandable areas within cards) */
.bo-card-section {
  margin-top: var(--bo-spacing-lg);
  display: grid;
  gap: var(--bo-spacing-md);
}

.bo-card-section:first-child {
  margin-top: 0;
}

.bo-card-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bo-spacing-sm);
}

.bo-card-section__header h4 {
  margin: 0;
  font-size: var(--bo-font-size-base);
  font-weight: var(--bo-font-weight-semibold);
  color: var(--bo-color-text);
}

.bo-card-section__body {
  display: grid;
  gap: var(--bo-spacing-sm);
}

/* === TABS SYSTEM === */
.bo-tabs {
  display: flex;
  gap: 2px;
  background: var(--bo-color-border);
  border-radius: var(--bo-radius-md);
  padding: 2px;
  position: relative;
  z-index: 1;
}

.bo-tab {
  flex: 1 1 auto;
  min-width: fit-content;
  padding: var(--bo-spacing-xs) var(--bo-spacing-md);
  background: transparent;
  border: none;
  border-radius: calc(var(--bo-radius-md) - 2px);
  font-size: var(--bo-font-size-sm);
  font-weight: var(--bo-font-weight-medium);
  color: var(--bo-color-text-muted);
  cursor: pointer;
  transition: all var(--bo-transition-base);
  text-align: center;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  user-select: none;
  white-space: nowrap;
}

.bo-tab:hover {
  color: var(--bo-color-text);
  background: rgba(59, 130, 246, 0.05);
}

.bo-tab.is-active {
  background: var(--bo-color-bg-card);
  color: var(--bo-color-primary);
  font-weight: var(--bo-font-weight-semibold);
  box-shadow: var(--bo-shadow-sm);
  z-index: 3;
}

.bo-tab-content {
  display: none;
}

.bo-tab-content.is-active {
  display: block;
}

.bo-tab-content__actions {
  margin-bottom: var(--bo-spacing-md);
  display: flex;
  justify-content: flex-end;
}

/* Empty States */
.bo-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--bo-spacing-2xl) var(--bo-spacing-lg);
  text-align: center;
  color: var(--bo-color-text-muted);
}

.bo-empty__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--bo-spacing-md);
  opacity: 0.3;
}

.bo-empty__title {
  margin: 0 0 var(--bo-spacing-sm);
  font-size: var(--bo-font-size-lg);
  font-weight: var(--bo-font-weight-semibold);
  color: var(--bo-color-text);
}

.bo-empty__description {
  margin: 0 0 var(--bo-spacing-lg);
  font-size: var(--bo-font-size-sm);
  max-width: 400px;
}

.bo-empty.is-hidden {
  display: none;
}


/* 
 * ============================================
 * PANEL & LAYOUT SYSTEM
 * ============================================
 * Optimisé pour réduire les espaces vides
 * Layout intelligent en colonnes selon le contenu
 */

.bo-panel {
  display: flex;
  flex-direction: column;
  gap: var(--bo-spacing-lg);
  max-width: var(--bo-content-max-width);
  margin: 0 auto;
}

/* Layout 2 colonnes pour desktop (Feature Image + JSON côte à côte) */
.bo-panel__split {
  display: grid;
  grid-template-columns: minmax(320px, 400px) 1fr;
  gap: var(--bo-spacing-lg);
  align-items: start;
}

.bo-panel__split--reverse {
  grid-template-columns: 1fr minmax(320px, 400px);
}

/* Grille compacte pour les contrôles */
.bo-panel__controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--bo-spacing-md);
}

/* Grille 3 colonnes pour infos séjour (lieu/durée/âges) */
.bo-panel__grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--bo-spacing-md);
}

/* Grille compacte pour sections répétitives */
.bo-panel__compact {
  display: grid;
  gap: var(--bo-spacing-sm);
}

/* Container pour sections avec max-width */
.bo-section-container {
  max-width: 800px;
}

/* 
 * ============================================
 * LAYOUT UTILITIES - GRAND ÉCRAN
 * ============================================
 * Classes pour optimiser l'utilisation de l'espace
 * sur les grands écrans (≥1280px activé via media query)
 */

/* Layout 2 colonnes: Feature + Infos séjour */
.bo-panel__top {
  display: grid;
  gap: var(--bo-spacing-lg);
}

/* Grille pour meta info séjour (Prix + Dates) */
.bo-sejour-meta-grid {
  display: grid;
  gap: var(--bo-spacing-lg);
}

/* Grille 2 colonnes pour activités */
.bo-activities-grid {
  display: grid;
  gap: var(--bo-spacing-sm);
}

/* Layout Programme + Sidebar (Infos + Formalités) */
/* Container JSON */
.bo-json-container {
  width: 100%;
}

/* Layout guide/tutoriels */
.bo-guide-layout {
  display: grid;
  gap: var(--bo-spacing-lg);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--bo-spacing-xs);
}

.form-field label {
  font-weight: 600;
  color: var(--bo-color-secondary);
}

.form-field__inline {
  display: flex;
  align-items: center;
  gap: var(--bo-spacing-xs);
}

.form-field--rename .form-field__inline .input {
  flex: 1;
}

.form-field__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--bo-color-secondary);
}

.form-field__toggle input {
  accent-color: var(--bo-color-primary);
}

.badge-draft {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: var(--bo-color-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.input,
.select,
.textarea {
  width: 100%;
  padding: var(--bo-spacing-sm);
  border-radius: var(--bo-radius-md);
  border: 1px solid var(--bo-color-border);
  background: #fff;
  color: var(--bo-color-secondary);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.select--multi {
  min-height: 140px;
}

.bo-filters {
  display: grid;
  gap: var(--bo-spacing-md);
  margin-top: var(--bo-spacing-md);
  margin-bottom: var(--bo-spacing-md);
}

.bo-toggle-group {
  display: flex;
  flex-direction: column;
  gap: var(--bo-spacing-sm);
  padding: var(--bo-spacing-md);
  border-radius: var(--bo-radius-md);
  border: var(--bo-border);
  background: var(--bo-color-surface);
  box-shadow: var(--bo-shadow-soft);
}

.bo-toggle-group__title {
  font-weight: 600;
  color: var(--bo-color-secondary);
}

.bo-checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bo-spacing-xs);
}

.checkbox-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(25, 35, 61, 0.14);
  background: rgba(25, 35, 61, 0.05);
  font-weight: 600;
  color: var(--bo-color-secondary);
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.checkbox-pill input {
  accent-color: var(--bo-color-primary);
}

.checkbox-pill:hover,
.checkbox-pill:focus-within {
  border-color: var(--bo-color-primary);
  background: rgba(34, 80, 244, 0.12);
}

.checkbox-pill.is-active {
  border-color: var(--bo-color-primary);
  background: rgba(34, 80, 244, 0.18);
  color: var(--bo-color-primary);
}

.checkbox-pill input[type="radio"] {
  margin: 0;
}

.bo-category-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bo-spacing-xs);
}

.bo-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bo-spacing-sm);
  margin-bottom: var(--bo-spacing-md);
  align-items: center;
}

.bo-toolbar__title-group {
  display: flex;
  align-items: center;
  gap: var(--bo-spacing-sm);
  flex: 1;
  min-width: 300px;
  margin-left: auto;
}

.bo-toolbar__title-group .input {
  flex: 1;
  min-width: 200px;
}

/* Presence Indicator */
.bo-presence-indicator {
  display: flex;
  align-items: center;
  gap: var(--bo-spacing-xs);
  padding: 0.4rem 0.8rem;
  background: var(--bo-color-info-light);
  border: 1px solid var(--bo-color-info);
  border-radius: var(--bo-radius-md);
  color: var(--bo-color-info);
  font-size: 0.85rem;
  font-weight: 500;
  animation: slideInFromRight 0.3s ease-out;
  position: relative;
  overflow: hidden;
}

.bo-presence-indicator[hidden] {
  display: none;
}

.bo-presence-indicator__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--bo-color-info);
  color: white;
  border-radius: 50%;
  flex-shrink: 0;
}

.bo-presence-indicator__avatar svg {
  width: 14px;
  height: 14px;
}

.bo-presence-indicator__text {
  font-weight: 500;
  white-space: nowrap;
}

.bo-presence-indicator__pulse {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: var(--bo-color-success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}



.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--bo-color-primary);
  box-shadow: 0 0 0 3px rgba(34, 80, 244, 0.2);
}

.textarea {
  min-height: 320px;
  font-family: 'JetBrains Mono', 'Fira Code', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  line-height: 1.5;
  resize: vertical;
}

.textarea.is-readonly {
  background: rgba(24, 44, 88, 0.05);
  cursor: not-allowed;
}

.textarea-lg {
  min-height: 200px;
}

.textarea-md {
  min-height: 160px;
}

.textarea-sm {
  min-height: 120px;
}

.card {
  background: var(--bo-color-surface);
  border: var(--bo-border);
  border-radius: var(--bo-radius-md);
  box-shadow: var(--bo-shadow-soft);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--bo-spacing-md) var(--bo-spacing-lg);
  border-bottom: var(--bo-border);
  background: rgba(20, 30, 50, 0.02);
}

.card__header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--bo-color-secondary);
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: var(--bo-spacing-md);
  padding: var(--bo-spacing-lg);
}

.bo-panel__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--bo-spacing-lg);
  align-items: flex-start;
}

@media (min-width: 1100px) {
  .bo-panel--sejour .bo-panel__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .bo-panel--sejour [data-card="feature"] {
    grid-column: span 5;
  }

  .bo-panel--sejour [data-card="sejour-meta"] {
    grid-column: span 7;
  }

  .bo-panel--sejour [data-card="sejour-programme"] {
    grid-column: 1 / -1;
  }

  .bo-panel--sejour [data-card="sejour-infos"],
  .bo-panel--sejour [data-card="sejour-formalites"],
  .bo-panel--sejour [data-card="json"] {
    grid-column: span 4;
  }

  .bo-panel--guide .bo-panel__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .bo-panel--guide [data-card="feature"] {
    grid-column: span 4;
  }

  .bo-panel--guide [data-card="guide-summary"],
  .bo-panel--guide [data-card="guide-downloads"] {
    grid-column: span 4;
  }

  .bo-panel--guide [data-card="guide-steps"] {
    grid-column: 1 / -1;
  }

  .bo-panel--guide [data-card="guide-faq"] {
    grid-column: 1 / -1;
  }

  .bo-panel--guide [data-card="json"] {
    grid-column: span 4;
  }
}

/* 
 * ============================================
 * FEATURE IMAGE / MEDIA PREVIEW
 * ============================================
 * Version optimisée avec ratio 16:9 et états clairs
 */

.bo-media-preview {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--bo-radius-lg);
  overflow: hidden;
  background: var(--bo-color-bg);
  border: 2px dashed var(--bo-color-border);
  transition: all var(--bo-transition-base);
}

.bo-media-preview:hover {
  border-color: var(--bo-color-border-strong);
}

.bo-media-preview--compact {
  aspect-ratio: 4 / 3;
}

.bo-media-preview__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--bo-transition-base);
}

.bo-media-preview__img.is-placeholder {
  opacity: 0;
}

.bo-media-preview__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--bo-spacing-sm);
  color: var(--bo-color-text-muted);
  font-weight: var(--bo-font-weight-medium);
  font-size: var(--bo-font-size-sm);
  text-align: center;
  padding: var(--bo-spacing-md);
}

.bo-media-preview__placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.3;
}

.bo-media-actions {
  display: flex;
  align-items: center;
  gap: var(--bo-spacing-sm);
  flex-wrap: wrap;
}

.bo-media-url {
  display: grid;
  gap: var(--bo-spacing-sm);
}

.bo-media-url__row {
  display: flex;
  align-items: center;
  gap: var(--bo-spacing-sm);
}

/* 
 * ============================================
 * GALLERY UNIFIED SYSTEM
 * ============================================
 * Galerie fusionnée (JSON + server) avec checkboxes
 * Grid responsive et actions en hover
 */

.bo-gallery-unified {
  display: grid;
  gap: var(--bo-spacing-lg);
}

.bo-gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bo-spacing-md);
}

.bo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--bo-spacing-md);
}

.bo-gallery-item {
  position: relative;
  display: flex;
  flex-direction: column;
  border: var(--bo-border-width) solid var(--bo-color-border);
  border-radius: var(--bo-radius-md);
  overflow: hidden;
  background: var(--bo-color-surface);
  transition: all var(--bo-transition-base);
}

.bo-gallery-item:hover {
  border-color: var(--bo-color-primary);
  box-shadow: var(--bo-shadow-md);
}

.bo-gallery-item--excluded {
  opacity: 0.4;
  filter: grayscale(100%);
}

.bo-gallery-item--excluded:hover {
  opacity: 0.6;
  filter: grayscale(50%);
}

.bo-gallery-item__preview {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bo-color-bg);
  overflow: hidden;
}

.bo-gallery-item__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--bo-transition-base);
}

.bo-gallery-item:hover .bo-gallery-item__preview img {
  transform: scale(1.05);
}

.bo-gallery-item__checkbox {
  position: absolute;
  top: var(--bo-spacing-sm);
  right: var(--bo-spacing-sm);
  width: 24px;
  height: 24px;
  accent-color: var(--bo-color-primary);
  cursor: pointer;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--bo-radius-sm);
  box-shadow: var(--bo-shadow-sm);
}

.bo-gallery-item__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--bo-spacing-xs);
  background: rgba(15, 23, 42, 0.75);
  opacity: 0;
  transition: opacity var(--bo-transition-base);
  z-index: 1;
}

.bo-gallery-item:hover .bo-gallery-item__overlay {
  opacity: 1;
}

.bo-gallery-item__actions {
  display: flex;
  gap: var(--bo-spacing-xs);
  padding: var(--bo-spacing-sm);
  background: var(--bo-color-surface);
  border-top: var(--bo-border-width) solid var(--bo-color-border);
}

.bo-gallery-item__label {
  display: block;
  padding: var(--bo-spacing-sm);
  font-size: var(--bo-font-size-xs);
  color: var(--bo-color-text-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bo-gallery-item__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: var(--bo-color-bg);
  transition: transform var(--bo-transition-base);
}

.bo-gallery-item:hover .bo-gallery-item__thumb {
  transform: scale(1.05);
}

.bo-gallery-item__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: var(--bo-radius-sm);
  background: var(--bo-color-danger);
  color: white;
  cursor: pointer;
  transition: all var(--bo-transition-base);
}

.bo-gallery-item__remove:hover {
  background: #dc2626;
  transform: scale(1.1);
}

.bo-gallery-item__order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 var(--bo-spacing-sm);
  background: var(--bo-color-primary);
  color: white;
  border-radius: var(--bo-radius-sm);
  font-weight: 700;
  font-size: var(--bo-font-size-sm);
}

.bo-homepage-season__gallery {
  margin-top: var(--bo-spacing-md);
  border: 1.5px dashed var(--bo-color-border);
  border-radius: 12px;
  padding: var(--bo-spacing-md);
  background: var(--bo-color-surface);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.bo-homepage-season__gallery.is-dragover {
  border-color: var(--bo-color-primary);
  background: var(--bo-color-primary-alpha, rgba(59, 130, 246, 0.08));
}

.bo-homepage-season__gallery-hint {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: var(--bo-spacing-md);
  color: var(--bo-color-text-muted);
}

.bo-homepage-season__gallery-hint svg {
  flex-shrink: 0;
  color: var(--bo-color-primary);
}

.bo-homepage-season__gallery-hint strong {
  color: var(--bo-color-text);
}

.bo-homepage-season__gallery-actions {
  margin-top: var(--bo-spacing-md);
}

.bo-gallery-empty {
  grid-column: 1 / -1;
  padding: var(--bo-spacing-3xl) var(--bo-spacing-lg);
  text-align: center;
  color: var(--bo-color-text-muted);
}

.bo-gallery-empty__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--bo-spacing-lg);
  opacity: 0.2;
}

.bo-gallery-empty__title {
  margin: 0 0 var(--bo-spacing-sm);
  font-size: var(--bo-font-size-xl);
  font-weight: var(--bo-font-weight-semibold);
  color: var(--bo-color-text);
}

.bo-gallery-empty__description {
  margin: 0 0 var(--bo-spacing-lg);
  font-size: var(--bo-font-size-sm);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* 
 * ============================================
 * JSON EDITOR ENHANCED
 * ============================================
 * Mode guidé vs manuel, readonly state, validation
 */

.bo-json-editor {
  display: grid;
  gap: var(--bo-spacing-md);
}

.bo-json-mode-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bo-spacing-md);
  padding: var(--bo-spacing-md);
  background: var(--bo-color-bg);
  border-radius: var(--bo-radius-md);
  border: var(--bo-border-width) solid var(--bo-color-border);
}

.bo-json-mode-indicator {
  display: flex;
  align-items: center;
  gap: var(--bo-spacing-sm);
  font-size: var(--bo-font-size-sm);
  font-weight: var(--bo-font-weight-medium);
  color: var(--bo-color-text-muted);
}

.bo-json-status {
  display: inline-flex;
  align-items: center;
  gap: var(--bo-spacing-xs);
  padding: var(--bo-spacing-xs) var(--bo-spacing-md);
  border-radius: var(--bo-radius-full);
  font-size: var(--bo-font-size-xs);
  font-weight: var(--bo-font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bo-json-status--valid {
  background: var(--bo-color-success-light);
  color: var(--bo-color-success);
}

.bo-json-status--invalid {
  background: var(--bo-color-danger-light);
  color: var(--bo-color-danger);
}

.bo-json-status--syncing {
  background: var(--bo-color-info-light);
  color: var(--bo-color-info);
}

.textarea--json {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
  min-height: 300px;
  max-height: 600px;
  resize: vertical;
  tab-size: 2;
}

.textarea--json[readonly] {
  background: repeating-linear-gradient(
    0deg,
    var(--bo-color-bg) 0px,
    var(--bo-color-bg) 19px,
    rgba(0, 0, 0, 0.02) 19px,
    rgba(0, 0, 0, 0.02) 20px
  );
  cursor: not-allowed;
}

.bo-json-actions {
  display: flex;
  align-items: center;
  gap: var(--bo-spacing-sm);
}



.bo-media-url__row .input {
  flex: 1;
}

.bo-media-url__hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--bo-color-muted);
  min-height: 1.2em;
}

.bo-media-primary {
  display: grid;
  gap: var(--bo-spacing-md);
}

.bo-media-extensions {
  margin-top: var(--bo-spacing-lg);
  padding-top: var(--bo-spacing-lg);
  border-top: 1px solid var(--bo-color-border);
  display: grid;
  gap: var(--bo-spacing-lg);
}

.bo-media-extensions .bo-card-section:first-child {
  margin-top: 0;
}

.bo-card-section {
  margin-top: var(--bo-spacing-lg);
  display: grid;
  gap: var(--bo-spacing-md);
}

.bo-card-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bo-spacing-sm);
}

.bo-card-section__header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.bo-card-section__body {
  display: grid;
  gap: var(--bo-spacing-sm);
}

.bo-input-file {
  display: none;
}

.input-hint {
  font-size: 0.85rem;
  color: var(--bo-color-muted);
}

.validation-message {
  min-height: 1.5rem;
  font-size: 0.9rem;
}

.validation-message--success {
  color: #1e9e55;
}

.validation-message--error {
  color: #c81e35;
}

.bo-panel__footer {
  display: flex;
  gap: var(--bo-spacing-md);
  flex-wrap: wrap;
}


/* 
 * ============================================
 * BUTTON COMPONENT SYSTEM
 * ============================================
 * Variants: primary, secondary, danger, ghost, outline
 * Sizes: small, base, large
 * States: default, hover, active, disabled, loading
 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--bo-spacing-sm);
  padding: 0 var(--bo-spacing-lg);
  height: var(--bo-input-height);
  border-radius: var(--bo-radius-full);
  font-size: var(--bo-font-size-base);
  font-weight: var(--bo-font-weight-semibold);
  font-family: var(--bo-font-family);
  line-height: 1;
  border: var(--bo-border-width) solid transparent;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  transition: all var(--bo-transition-base);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--bo-shadow-focus);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Primary Button */
.btn-primary {
  background: var(--bo-color-primary);
  color: var(--bo-color-text-inverted);
  box-shadow: var(--bo-shadow-sm);
}

.btn-primary:hover:not(:disabled) {
  background: var(--bo-color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--bo-shadow-md);
}

.btn-primary:active:not(:disabled) {
  background: var(--bo-color-primary-active);
  transform: translateY(0);
  box-shadow: var(--bo-shadow-sm);
}

/* Secondary Button */
.btn-secondary {
  background: var(--bo-color-primary-light);
  color: var(--bo-color-primary);
  border-color: transparent;
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bo-color-primary-alpha);
  color: var(--bo-color-primary-hover);
}

.btn-secondary:active:not(:disabled) {
  background: var(--bo-color-primary-alpha);
}

/* Danger Button */
.btn-danger {
  background: var(--bo-color-danger);
  color: var(--bo-color-text-inverted);
  box-shadow: var(--bo-shadow-sm);
}

.btn-danger:hover:not(:disabled) {
  background: var(--bo-color-danger-hover);
  transform: translateY(-1px);
  box-shadow: var(--bo-shadow-md);
}

.btn-danger:focus-visible {
  box-shadow: var(--bo-shadow-focus-danger);
}

/* Outline Button */
.btn-outline {
  background: transparent;
  color: var(--bo-color-text);
  border-color: var(--bo-color-border-strong);
}

.btn-outline:hover:not(:disabled) {
  background: var(--bo-color-bg);
  border-color: var(--bo-color-primary);
  color: var(--bo-color-primary);
}

/* Ghost Button */
.btn-ghost {
  background: transparent;
  color: var(--bo-color-text-muted);
  border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
  background: var(--bo-color-bg);
  color: var(--bo-color-text);
}

/* Success/Tertiary Button */
.btn-tertiary {
  background: var(--bo-color-success-light);
  color: var(--bo-color-success);
  border-color: transparent;
}

.btn-tertiary:hover:not(:disabled) {
  background: var(--bo-color-success-alpha);
}

/* Button Sizes */
.btn-small,
.btn-sm {
  height: var(--bo-input-height-sm);
  padding: 0 var(--bo-spacing-md);
  font-size: var(--bo-font-size-sm);
}

.btn-large,
.btn-lg {
  height: var(--bo-input-height-lg);
  padding: 0 var(--bo-spacing-xl);
  font-size: var(--bo-font-size-lg);
}

.btn-tiny {
  height: 28px;
  padding: 0 var(--bo-spacing-sm);
  font-size: var(--bo-font-size-xs);
}

/* Icon Button */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--bo-input-height);
  height: var(--bo-input-height);
  padding: 0;
  border-radius: var(--bo-radius-full);
  background: transparent;
  border: var(--bo-border-width) solid var(--bo-color-border);
  color: var(--bo-color-text-muted);
  cursor: pointer;
  transition: all var(--bo-transition-base);
}

.btn-icon svg {
  width: 20px;
  height: 20px;
}

.btn-icon:hover:not(:disabled) {
  background: var(--bo-color-bg);
  border-color: var(--bo-color-border-strong);
  color: var(--bo-color-text);
}

.btn-icon:focus-visible {
  outline: none;
  box-shadow: var(--bo-shadow-focus);
}

.btn-icon-sm {
  width: var(--bo-input-height-sm);
  height: var(--bo-input-height-sm);
}

.btn-icon-sm svg {
  width: 16px;
  height: 16px;
}

/* Loading State */
.btn--loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn--loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Button Groups */
.btn-group {
  display: inline-flex;
  gap: var(--bo-spacing-sm);
}

.btn-group--attached {
  gap: 0;
}

.btn-group--attached .btn {
  border-radius: 0;
}

.btn-group--attached .btn:first-child {
  border-top-left-radius: var(--bo-radius-full);
  border-bottom-left-radius: var(--bo-radius-full);
}

.btn-group--attached .btn:last-child {
  border-top-right-radius: var(--bo-radius-full);
  border-bottom-right-radius: var(--bo-radius-full);
}

.btn-group--attached .btn:not(:last-child) {
  border-right-width: 0;
}

/* 
 * ============================================
 * FORM INPUT SYSTEM
 * ============================================
 * Components: input, textarea, select
 * States: default, focus, error, disabled, readonly
 * Labels, hints, validation messages
 */

/* Form Field Container */
.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--bo-spacing-sm);
}

.form-field__inline {
  display: flex;
  align-items: center;
  gap: var(--bo-spacing-sm);
}

.form-field__inline .input,
.form-field__inline .select {
  flex: 1;
}

/* Labels */
.form-field label,
.bo-label {
  display: block;
  font-size: var(--bo-font-size-sm);
  font-weight: var(--bo-font-weight-semibold);
  color: var(--bo-color-text);
  line-height: var(--bo-line-height-tight);
}

.bo-label--required::after {
  content: '*';
  color: var(--bo-color-danger);
  margin-left: var(--bo-spacing-xs);
}

/* Input Base Styles */
.input,
.select,
.textarea {
  width: 100%;
  padding: 0 var(--bo-spacing-base);
  height: var(--bo-input-height);
  font-family: var(--bo-font-family);
  font-size: var(--bo-font-size-base);
  line-height: var(--bo-line-height-normal);
  color: var(--bo-color-text);
  background: var(--bo-color-surface);
  border: var(--bo-border-width) solid var(--bo-color-border);
  border-radius: var(--bo-radius-md);
  transition: all var(--bo-transition-base);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--bo-color-text-subtle);
}

.input:hover:not(:disabled):not(:focus),
.select:hover:not(:disabled):not(:focus),
.textarea:hover:not(:disabled):not(:focus) {
  border-color: var(--bo-color-border-strong);
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--bo-color-primary);
  box-shadow: var(--bo-shadow-focus);
}

.input:disabled,
.select:disabled,
.textarea:disabled {
  background: var(--bo-color-bg);
  color: var(--bo-color-text-muted);
  cursor: not-allowed;
  opacity: 0.6;
}

.input[readonly],
.textarea[readonly] {
  background: var(--bo-color-bg);
  border-color: var(--bo-color-border-light);
  cursor: default;
}

/* Textarea */
.textarea {
  min-height: 120px;
  padding: var(--bo-spacing-md) var(--bo-spacing-base);
  resize: vertical;
  line-height: var(--bo-line-height-relaxed);
}

.textarea--tall {
  min-height: 240px;
}

.textarea--code {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
  font-size: var(--bo-font-size-sm);
  line-height: var(--bo-line-height-relaxed);
}

/* Select */
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%2364748b' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--bo-spacing-md) center;
  padding-right: var(--bo-spacing-xl);
  cursor: pointer;
}

.select:disabled {
  cursor: not-allowed;
}

/* Search Input */
.bo-search-wrapper {
  position: relative;
  margin-bottom: var(--bo-spacing-sm);
}

.input--search {
  padding-left: calc(var(--bo-spacing-md) + 20px);
  padding-right: var(--bo-spacing-md);
  background: var(--bo-color-bg-card);
  border: 1px solid var(--bo-color-border);
  transition: all 0.2s;
}

.input--search:focus {
  background: var(--bo-color-bg-main);
  border-color: var(--bo-color-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.input--search::placeholder {
  color: var(--bo-color-text-secondary);
}

.bo-search-icon {
  position: absolute;
  left: var(--bo-spacing-md);
  top: 50%;
  transform: translateY(-50%);
  color: var(--bo-color-text-secondary);
  pointer-events: none;
  transition: color 0.2s;
}

.input--search:focus ~ .bo-search-icon {
  color: var(--bo-color-primary);
}

/* Input Sizes */
.input-sm,
.select-sm {
  height: var(--bo-input-height-sm);
  font-size: var(--bo-font-size-sm);
}

.input-lg,
.select-lg {
  height: var(--bo-input-height-lg);
  font-size: var(--bo-font-size-lg);
}

/* Error State */
.form-field--error .input,
.form-field--error .select,
.form-field--error .textarea,
.input--error,
.select--error,
.textarea--error {
  border-color: var(--bo-color-danger);
}

.form-field--error .input:focus,
.form-field--error .select:focus,
.form-field--error .textarea:focus,
.input--error:focus,
.select--error:focus,
.textarea--error:focus {
  box-shadow: var(--bo-shadow-focus-danger);
}

/* Success State */
.form-field--success .input,
.form-field--success .select,
.form-field--success .textarea,
.input--success,
.select--success,
.textarea--success {
  border-color: var(--bo-color-success);
}

/* Input Hints */
.input-hint,
.form-hint {
  font-size: var(--bo-font-size-sm);
  color: var(--bo-color-text-muted);
  line-height: var(--bo-line-height-normal);
}

/* Validation Messages */
.validation-message {
  min-height: 1.25rem;
  font-size: var(--bo-font-size-sm);
  font-weight: var(--bo-font-weight-medium);
  line-height: var(--bo-line-height-normal);
}

.validation-message--success {
  color: var(--bo-color-success);
}

.validation-message--error {
  color: var(--bo-color-danger);
}

.validation-message--warning {
  color: var(--bo-color-warning);
}

.validation-message--info {
  color: var(--bo-color-info);
}

/* Checkbox & Radio */
.form-field__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--bo-spacing-sm);
  font-weight: var(--bo-font-weight-medium);
  color: var(--bo-color-text);
  cursor: pointer;
}

.form-field__toggle input[type="checkbox"],
.form-field__toggle input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--bo-color-primary);
}

/* Input File (hidden but accessible) */
.bo-input-file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Input Group (prefix/suffix) */
.input-group {
  display: flex;
  align-items: stretch;
}

.input-group .input {
  border-radius: 0;
}

.input-group .input:first-child {
  border-top-left-radius: var(--bo-radius-md);
  border-bottom-left-radius: var(--bo-radius-md);
}

.input-group .input:last-child {
  border-top-right-radius: var(--bo-radius-md);
  border-bottom-right-radius: var(--bo-radius-md);
}

.input-group__addon {
  display: flex;
  align-items: center;
  padding: 0 var(--bo-spacing-md);
  background: var(--bo-color-bg);
  border: var(--bo-border-width) solid var(--bo-color-border);
  color: var(--bo-color-text-muted);
  font-size: var(--bo-font-size-sm);
  white-space: nowrap;
}

.input-group__addon:first-child {
  border-right: none;
  border-top-left-radius: var(--bo-radius-md);
  border-bottom-left-radius: var(--bo-radius-md);
}

.input-group__addon:last-child {
  border-left: none;
  border-top-right-radius: var(--bo-radius-md);
  border-bottom-right-radius: var(--bo-radius-md);
}


.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
}

.badge--neutral {
  background: rgba(27, 37, 59, 0.1);
  color: var(--bo-color-muted);
}

.badge--success {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}

.badge--warning {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
}

.badge--error {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}

.bo-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: var(--bo-spacing-xs);
}

.bo-checkbox-item {
  display: flex;
  align-items: center;
  gap: var(--bo-spacing-xs);
}

.bo-checkbox-item input[type="checkbox"],
.bo-checkbox-item input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--bo-color-primary);
}

.bo-checkbox-item label {
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--bo-color-secondary);
}

.bo-create-section {
  display: flex;
  flex-direction: column;
  gap: var(--bo-spacing-md);
}

.card__header-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.card__header-actions {
  display: flex;
  align-items: center;
  gap: var(--bo-spacing-sm);
  flex-wrap: wrap;
}

.card__subtitle {
  margin: 0;
  color: var(--bo-color-muted);
  font-size: 0.9rem;
}

.bo-empty {
  padding: var(--bo-spacing-md);
  border: 1px dashed rgba(25, 35, 61, 0.18);
  border-radius: var(--bo-radius-md);
  color: var(--bo-color-muted);
  font-size: 0.9rem;
  text-align: center;
  background: rgba(20, 30, 50, 0.02);
}

.bo-step-list,
.bo-faq-list,
.bo-download-list,
.bo-session-list,
.bo-chip-list,
.bo-formalite-list,
.bo-gallery-list,
.bo-programme-list {
  display: flex;
  flex-direction: column;
  gap: var(--bo-spacing-md);
}

.bo-step {
  border: 1px solid rgba(25, 35, 61, 0.18);
  border-radius: var(--bo-radius-md);
  padding: var(--bo-spacing-md);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.bo-step__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bo-spacing-sm);
  margin-bottom: var(--bo-spacing-sm);
}

.bo-step__title {
  font-weight: 600;
  color: var(--bo-color-secondary);
}

.bo-step__actions {
  display: flex;
  gap: var(--bo-spacing-xs);
}

.bo-step__body {
  display: flex;
  flex-direction: column;
  gap: var(--bo-spacing-sm);
}

/* Champs désactivés dans les étapes (title/icon gérés par le sommaire) */
.bo-step__field-disabled {
  position: relative;
}

.bo-step__field-disabled .input,
.bo-step__field-disabled .textarea {
  background: rgba(25, 35, 61, 0.04);
  color: rgba(25, 35, 61, 0.5);
  cursor: not-allowed;
  pointer-events: none;
}

.bo-step__field-disabled label {
  color: rgba(25, 35, 61, 0.5);
}

/* Tooltip d'aide */
.bo-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: var(--bo-spacing-xs);
}

.bo-tooltip__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(25, 35, 61, 0.1);
  color: rgba(25, 35, 61, 0.6);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: help;
  transition: all 0.2s ease;
}

.bo-tooltip__trigger:hover {
  background: var(--bo-color-primary);
  color: white;
}

.bo-tooltip__content {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  right: auto;
  transform: none;
  padding: var(--bo-spacing-sm) var(--bo-spacing-md);
  background: var(--bo-color-secondary);
  color: white;
  font-size: 0.85rem;
  line-height: 1.4;
  border-radius: var(--bo-radius-sm);
  white-space: nowrap;
  box-shadow: var(--bo-shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
}

.bo-tooltip__content::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 10px;
  right: auto;
  transform: none;
  border: 6px solid transparent;
  border-top-color: var(--bo-color-secondary);
}

.bo-tooltip__trigger:hover + .bo-tooltip__content,
.bo-tooltip:hover .bo-tooltip__content {
  opacity: 1;
}

/* Layout pour sections du sommaire */
.bo-section-list {
  display: flex;
  flex-direction: column;
  gap: var(--bo-spacing-md);
}

.bo-section {
  display: flex;
  align-items: flex-start;
  gap: var(--bo-spacing-sm);
  padding: var(--bo-spacing-sm);
  border: 1px solid rgba(25, 35, 61, 0.18);
  border-radius: var(--bo-radius-md);
  background: rgba(255, 255, 255, 0.9);
}

.bo-section__fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--bo-spacing-sm);
}

.bo-section__row {
  display: flex;
  gap: var(--bo-spacing-sm);
  align-items: flex-end;
}

.bo-section__icon {
  width: 80px;
}

.bo-section__title {
  flex: 1;
}

.bo-section__actions {
  display: flex;
  gap: var(--bo-spacing-xs);
}

.bo-list {
  display: flex;
  flex-direction: column;
  gap: var(--bo-spacing-xs);
}

.bo-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--bo-spacing-xs);
}

.bo-list__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--bo-spacing-xs);
}

.bo-list__item .textarea {
  flex: 1;
}

.bo-step__item-meta {
  display: flex;
  flex-direction: column;
  gap: var(--bo-spacing-xs);
}

.bo-step__item-meta label {
  font-weight: 600;
  font-size: 0.9rem;
}

.bo-step__image-preview {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.5rem;
  border: 1px dashed rgba(25, 35, 61, 0.2);
  border-radius: var(--bo-radius-sm);
  background: rgba(25, 35, 61, 0.05);
}

.bo-step__image-preview img {
  max-width: 140px;
  max-height: 110px;
  border-radius: var(--bo-radius-sm);
  object-fit: cover;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(25, 35, 61, 0.12);
  background: rgba(25, 35, 61, 0.04);
  color: var(--bo-color-muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-icon:hover,
.btn-icon:focus-visible {
  background: rgba(200, 30, 53, 0.08);
  color: #c81e35;
}

.btn-icon svg {
  width: 16px;
  height: 16px;
}

.bo-entry {
  display: flex;
  flex-direction: column;
  gap: var(--bo-spacing-sm);
  border: 1px solid rgba(25, 35, 61, 0.18);
  border-radius: var(--bo-radius-md);
  padding: var(--bo-spacing-md);
  background: rgba(255, 255, 255, 0.92);
}

.bo-entry__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bo-spacing-sm);
}

.bo-entry__title {
  font-weight: 600;
  color: var(--bo-color-secondary);
}

.form-grid {
  display: grid;
  gap: var(--bo-spacing-sm);
}

.form-grid + .form-field {
  margin-top: var(--bo-spacing-md);
}

.form-grid--two {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--bo-spacing-sm);
}

.badge--sync {
  background: rgba(34, 80, 244, 0.12);
  color: var(--bo-color-primary);
}

.bo-programme-step {
  border: 1px solid rgba(25, 35, 61, 0.18);
  border-radius: var(--bo-radius-md);
  padding: var(--bo-spacing-md);
  background: rgba(255, 255, 255, 0.92);
}

.bo-programme-step__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bo-spacing-sm);
  margin-bottom: var(--bo-spacing-sm);
}

.bo-programme-step__title {
  font-weight: 600;
  color: var(--bo-color-secondary);
}

.bo-gallery-item img {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: var(--bo-radius-md);
  border: 1px solid rgba(25, 35, 61, 0.12);
}

/* Styles pour la galerie unifiée */
.bo-gallery-item {
  display: flex;
  flex-direction: column;
  gap: var(--bo-spacing-sm);
  padding: var(--bo-spacing-md);
  border: 1px solid rgba(25, 35, 61, 0.18);
  border-radius: var(--bo-radius-md);
  background: rgba(255, 255, 255, 0.92);
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.bo-gallery-item.is-excluded {
  opacity: 0.5;
  border-color: rgba(200, 30, 53, 0.3);
  background: rgba(200, 30, 53, 0.05);
}

.bo-gallery-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bo-spacing-sm);
  flex-wrap: wrap;
}

.bo-gallery-item__title {
  flex: 1;
  min-width: 0;
}

.bo-gallery-item__checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--bo-color-secondary);
  cursor: pointer;
  user-select: none;
}

.bo-gallery-item__checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--bo-color-primary);
}

.bo-gallery-item__badges {
  display: flex;
  align-items: center;
  gap: var(--bo-spacing-xs);
}

.badge-included {
  background: rgba(30, 158, 85, 0.12);
  color: #1e9e55;
}

.badge-excluded {
  background: rgba(200, 30, 53, 0.12);
  color: #c81e35;
}

.badge-server {
  background: rgba(34, 80, 244, 0.12);
  color: var(--bo-color-primary);
}

.bo-gallery-item__body {
  display: flex;
  flex-direction: column;
  gap: var(--bo-spacing-sm);
}

.bo-gallery-item__image {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: var(--bo-radius-md);
  border: 1px solid rgba(25, 35, 61, 0.12);
  background: linear-gradient(135deg, rgba(247, 249, 252, 0.8) 0%, rgba(240, 243, 248, 0.9) 100%);
}

.bo-gallery-item__info {
  display: flex;
  align-items: center;
  gap: var(--bo-spacing-sm);
}

.bo-gallery-item__filename {
  font-size: 0.85rem;
  color: var(--bo-color-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.bo-gallery-item__actions {
  display: flex;
  align-items: center;
  gap: var(--bo-spacing-xs);
  flex-wrap: wrap;
}

/* ========================================
   Toasts v2.0 - Système de notifications amélioré
   ======================================== */
.toast-container {
  position: fixed;
  right: var(--bo-spacing-lg);
  bottom: var(--bo-spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--bo-spacing-sm);
  z-index: 1000;
  pointer-events: none;
}

.toast {
  min-width: 300px;
  max-width: 380px;
  padding: 0;
  border-radius: var(--bo-radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  background: var(--bo-color-surface);
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--bo-color-secondary);
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.toast--visible {
  opacity: 1;
  transform: translateX(0);
}

.toast--leaving {
  opacity: 0;
  transform: translateX(400px);
}

.toast--v2 {
  display: flex;
  align-items: flex-start;
  gap: var(--bo-spacing-sm);
  padding: var(--bo-spacing-md);
}

.toast__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 2px;
}

.toast__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.toast__content {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.5;
  padding-top: 2px;
}

.toast__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: currentColor;
  opacity: 0.3;
  transform-origin: left;
  animation: toast-progress 3.8s linear forwards;
}

@keyframes toast-progress {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

/* Type variants */
.toast--success {
  border-left: 4px solid #10b981;
  color: #047857;
}

.toast--success .toast__icon {
  color: #10b981;
}

.toast--error {
  border-left: 4px solid #ef4444;
  color: #dc2626;
}

.toast--error .toast__icon {
  color: #ef4444;
}

.toast--warning {
  border-left: 4px solid #f59e0b;
  color: #d97706;
}

.toast--warning .toast__icon {
  color: #f59e0b;
}

.toast--info {
  border-left: 4px solid #3b82f6;
  color: #2563eb;
}

.toast--info .toast__icon {
  color: #3b82f6;
}

/* Responsive */
@media (max-width: 500px) {
  .toast-container {
    right: var(--bo-spacing-md);
    bottom: var(--bo-spacing-md);
    left: var(--bo-spacing-md);
  }
  
  .toast {
    min-width: auto;
    max-width: none;
  }
}

.bo-modal[hidden] {
  display: none;
}

.bo-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--bo-spacing-lg);
}

.bo-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 19, 34, 0.35);
  backdrop-filter: blur(3px);
}

.bo-modal__dialog {
  position: relative;
  max-width: 520px;
  width: 100%;
  background: var(--bo-color-surface);
  border-radius: var(--bo-radius-md);
  box-shadow: var(--bo-shadow-soft);
  padding: var(--bo-spacing-xl);
  display: grid;
  gap: var(--bo-spacing-md);
}

.bo-modal__header h2 {
  margin: 0;
  font-size: 1.4rem;
}

.bo-modal__subtitle {
  margin: 0;
  color: var(--bo-color-muted);
  font-size: 0.95rem;
}

.bo-modal__form {
  display: grid;
  gap: var(--bo-spacing-md);
}

.bo-modal__type {
  margin: 0;
  font-weight: 600;
  color: var(--bo-color-secondary);
}

.bo-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--bo-spacing-sm);
}

.bo-modal__footer .btn {
  min-width: 140px;
}

/* Search Modal */
.bo-search-modal__dialog {
  max-width: 640px;
  padding: 0;
  overflow: hidden;
}

.bo-search-modal__input-wrapper {
  display: flex;
  align-items: center;
  gap: var(--bo-spacing-sm);
  padding: var(--bo-spacing-lg);
  border-bottom: 1px solid var(--bo-color-border);
}

.bo-search-modal__icon {
  color: var(--bo-color-text-muted);
  flex-shrink: 0;
}

.bo-search-modal__input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1rem;
  color: var(--bo-color-text);
  outline: none;
}

.bo-search-modal__input::placeholder {
  color: var(--bo-color-text-muted);
}

.bo-search-modal__shortcut {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: var(--bo-color-bg-elevated);
  border: 1px solid var(--bo-color-border);
  border-radius: 4px;
  color: var(--bo-color-text-muted);
  flex-shrink: 0;
}

.bo-search-modal__filters {
  display: flex;
  gap: var(--bo-spacing-xs);
  padding: var(--bo-spacing-md) var(--bo-spacing-lg);
  border-bottom: 1px solid var(--bo-color-border);
  background: var(--bo-color-bg);
}

.bo-search-filter {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--bo-color-text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--bo-radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.bo-search-filter:hover {
  color: var(--bo-color-text);
  background: var(--bo-color-bg-elevated);
}

.bo-search-filter.is-active {
  color: var(--bo-color-primary);
  background: var(--bo-color-primary-light);
  border-color: var(--bo-color-primary);
}

.bo-search-modal__results {
  max-height: 400px;
  overflow-y: auto;
  padding: var(--bo-spacing-sm);
}

.bo-search-modal__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--bo-spacing-xxl);
  color: var(--bo-color-text-muted);
  text-align: center;
}

.bo-search-modal__empty svg {
  margin-bottom: var(--bo-spacing-md);
  opacity: 0.3;
}

.bo-search-modal__empty p {
  margin: 0;
  font-size: 0.95rem;
}

.bo-search-result {
  display: flex;
  align-items: flex-start;
  gap: var(--bo-spacing-md);
  padding: var(--bo-spacing-md);
  border-radius: var(--bo-radius-md);
  cursor: pointer;
  transition: background 0.2s ease;
}

.bo-search-result:hover,
.bo-search-result.is-selected {
  background: var(--bo-color-bg-elevated);
}

.bo-search-result__thumb {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: var(--bo-radius-sm);
  object-fit: cover;
  background: var(--bo-color-bg);
}

.bo-search-result__content {
  flex: 1;
  min-width: 0;
}

.bo-search-result__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bo-color-text);
  margin: 0 0 0.25rem 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bo-search-result__highlight {
  background: var(--bo-color-warning-light);
  color: var(--bo-color-warning);
  padding: 0.125rem 0.25rem;
  border-radius: 2px;
  font-weight: 600;
}

.bo-search-result__meta {
  display: flex;
  align-items: center;
  gap: var(--bo-spacing-sm);
  font-size: 0.85rem;
  color: var(--bo-color-text-muted);
  margin-bottom: 0.25rem;
}

.bo-search-result__type {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.4rem;
  background: var(--bo-color-primary-light);
  color: var(--bo-color-primary);
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.bo-search-result__excerpt {
  font-size: 0.9rem;
  color: var(--bo-color-text-secondary);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}

.bo-search-modal__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--bo-spacing-lg);
  padding: var(--bo-spacing-md) var(--bo-spacing-lg);
  border-top: 1px solid var(--bo-color-border);
  background: var(--bo-color-bg);
}

.bo-search-modal__hints {
  display: flex;
  align-items: center;
  gap: var(--bo-spacing-md);
  font-size: 0.8rem;
  color: var(--bo-color-text-muted);
}

.bo-search-modal__hints kbd {
  padding: 0.2rem 0.4rem;
  font-size: 0.7rem;
}

/* Settings Modal */
.bo-settings-section {
  padding: var(--bo-spacing-xl) 0;
  border-bottom: 1px solid var(--bo-color-border);
}

.bo-settings-section:last-child {
  border-bottom: none;
}

.bo-settings-section__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 var(--bo-spacing-lg) 0;
  color: var(--bo-color-text);
}

.bo-settings-section .form-field {
  margin-bottom: var(--bo-spacing-lg);
}

.bo-settings-section .form-field:last-child {
  margin-bottom: 0;
}

.form-field__hint {
  margin-top: var(--bo-spacing-xs);
  font-size: 0.9rem;
  color: var(--bo-color-text-secondary);
}

/* Settings Tabs */
.bo-settings-tabs {
  display: flex;
  gap: var(--bo-spacing-xs);
  padding: 0 var(--bo-spacing-xl);
  border-bottom: 2px solid var(--bo-color-border);
  margin-bottom: var(--bo-spacing-lg);
}

.bo-settings-tab {
  display: flex;
  align-items: center;
  gap: var(--bo-spacing-xs);
  padding: var(--bo-spacing-md) var(--bo-spacing-lg);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--bo-color-text-muted);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: -2px;
}

.bo-settings-tab:hover {
  color: var(--bo-color-text);
  background: var(--bo-color-bg-elevated);
}

.bo-settings-tab.is-active {
  color: var(--bo-color-primary);
  border-bottom-color: var(--bo-color-primary);
}

.bo-settings-tab svg {
  width: 20px;
  height: 20px;
}

.bo-settings-panel {
  display: none;
}

.bo-settings-panel.is-active {
  display: block;
}

/* Activity Panel */
.bo-activity-header {
  margin-bottom: var(--bo-spacing-xl);
}

.bo-activity-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--bo-spacing-md);
  margin-bottom: var(--bo-spacing-lg);
}

.bo-activity-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--bo-spacing-lg);
  background: var(--bo-color-bg-elevated);
  border-radius: var(--bo-radius-md);
  text-align: center;
}

.bo-activity-stat__value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--bo-color-primary);
  line-height: 1;
  margin-bottom: var(--bo-spacing-xs);
}

.bo-activity-stat__label {
  font-size: 0.85rem;
  color: var(--bo-color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bo-activity-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bo-spacing-xs);
}

.bo-activity-filter {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--bo-color-text-muted);
  background: transparent;
  border: 1px solid var(--bo-color-border);
  border-radius: var(--bo-radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.bo-activity-filter:hover {
  color: var(--bo-color-text);
  border-color: var(--bo-color-primary);
}

.bo-activity-filter.is-active {
  color: var(--bo-color-primary);
  background: var(--bo-color-primary-light);
  border-color: var(--bo-color-primary);
}

.bo-activity-timeline {
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: var(--bo-spacing-lg);
}

.bo-activity-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--bo-spacing-xxl);
  color: var(--bo-color-text-muted);
  text-align: center;
}

.bo-activity-empty svg {
  margin-bottom: var(--bo-spacing-md);
  opacity: 0.3;
}

.bo-activity-empty p {
  margin: 0;
  font-size: 0.95rem;
}

.bo-activity-item {
  display: flex;
  gap: var(--bo-spacing-md);
  padding: var(--bo-spacing-md);
  border-left: 3px solid var(--bo-color-border);
  margin-left: var(--bo-spacing-md);
  position: relative;
  transition: all 0.2s ease;
}

.bo-activity-item:hover {
  background: var(--bo-color-bg-elevated);
  border-left-color: var(--bo-color-primary);
}

.bo-activity-item::before {
  content: '';
  position: absolute;
  left: -7.5px;
  top: var(--bo-spacing-md);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bo-color-bg);
  border: 3px solid var(--bo-color-border);
  transition: all 0.2s ease;
}

.bo-activity-item:hover::before {
  border-color: var(--bo-color-primary);
}

.bo-activity-item--create::before {
  border-color: var(--bo-color-success);
}

.bo-activity-item--update::before {
  border-color: var(--bo-color-primary);
}

.bo-activity-item--delete::before {
  border-color: var(--bo-color-danger);
}

.bo-activity-item--publish::before {
  border-color: var(--bo-color-warning);
}

.bo-activity-item--duplicate::before {
  border-color: var(--bo-color-info);
}

.bo-activity-item__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--bo-radius-sm);
  background: var(--bo-color-bg-elevated);
}

.bo-activity-item--create .bo-activity-item__icon {
  background: var(--bo-color-success-light);
  color: var(--bo-color-success);
}

.bo-activity-item--update .bo-activity-item__icon {
  background: var(--bo-color-primary-light);
  color: var(--bo-color-primary);
}

.bo-activity-item--delete .bo-activity-item__icon {
  background: var(--bo-color-danger-light);
  color: var(--bo-color-danger);
}

.bo-activity-item--publish .bo-activity-item__icon {
  background: var(--bo-color-warning-light);
  color: var(--bo-color-warning);
}

.bo-activity-item--duplicate .bo-activity-item__icon {
  background: var(--bo-color-info-light);
  color: var(--bo-color-info);
}

.bo-activity-item__icon svg {
  width: 20px;
  height: 20px;
}

.bo-activity-item__content {
  flex: 1;
  min-width: 0;
}

.bo-activity-item__action {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bo-color-text);
  margin: 0 0 0.25rem 0;
}

.bo-activity-item__post {
  font-size: 0.9rem;
  color: var(--bo-color-text-secondary);
  margin: 0 0 0.25rem 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bo-activity-item__time {
  font-size: 0.8rem;
  color: var(--bo-color-text-muted);
}

.bo-activity-footer {
  display: flex;
  justify-content: center;
  padding-top: var(--bo-spacing-md);
  border-top: 1px solid var(--bo-color-border);
}

body.bo-modal-open {
  overflow: hidden;
}

/* Modale galerie styles */
.bo-modal--gallery,
.bo-modal--settings {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--bo-spacing-lg);
}

.bo-modal--gallery.is-hidden,
.bo-modal--settings.is-hidden {
  display: none;
}

.bo-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 19, 34, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1201;
}

.bo-modal--gallery .bo-modal__content,
.bo-modal--settings .bo-modal__content {
  position: relative;
  z-index: 1202;
  max-width: 1200px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--bo-color-surface);
  border-radius: var(--bo-radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.bo-modal--settings .bo-modal__content {
  max-width: 700px;
}

.bo-modal__content--medium {
  max-width: 600px;
}

.bo-duplicate-tags {
  margin-top: var(--bo-spacing-lg);
}

.bo-duplicate-tags h3 {
  margin: 0 0 var(--bo-spacing-sm) 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--bo-color-text);
}

.bo-duplicate-tags__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--bo-spacing-sm);
  margin-top: var(--bo-spacing-md);
}

.bo-duplicate-tag {
  display: flex;
  align-items: center;
  gap: var(--bo-spacing-sm);
  padding: var(--bo-spacing-sm);
  background: var(--bo-color-bg-light);
  border-radius: var(--bo-radius-sm);
  transition: background-color 0.2s;
}

.bo-duplicate-tag:hover {
  background: var(--bo-color-bg-hover);
}

.bo-duplicate-tag input[type="checkbox"] {
  margin: 0;
}

.bo-duplicate-tag__label {
  flex: 1;
  font-size: 0.9rem;
  color: var(--bo-color-text);
}

.bo-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--bo-spacing-lg) var(--bo-spacing-xl);
  border-bottom: var(--bo-border);
  background: var(--bo-color-surface);
}

.bo-modal__header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bo-color-secondary);
}

.bo-modal__header .btn-icon {
  width: 40px;
  height: 40px;
}

.bo-modal__content--wide {
  width: 90vw;
  max-width: 1200px;
}

.bo-gallery-tabs {
  display: flex;
  gap: var(--bo-spacing-xs);
  padding: 0 var(--bo-spacing-lg);
  border-bottom: 1px solid var(--bo-color-border);
  background: var(--bo-color-surface);
}

.bo-gallery-tab {
  display: flex;
  align-items: center;
  gap: var(--bo-spacing-xs);
  padding: var(--bo-spacing-md) var(--bo-spacing-lg);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--bo-color-text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.bo-gallery-tab:hover {
  color: var(--bo-color-text);
  background: rgba(34, 80, 244, 0.05);
}

.bo-gallery-tab.is-active {
  color: var(--bo-color-primary);
  border-bottom-color: var(--bo-color-primary);
  background: rgba(34, 80, 244, 0.08);
}

.bo-gallery-tab svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.bo-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--bo-color-border);
  color: var(--bo-color-text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.bo-gallery-tab.is-active .bo-tab-badge {
  background: var(--bo-color-primary);
  color: white;
}

.bo-modal__toolbar {
  display: flex;
  flex-direction: column;
  gap: var(--bo-spacing-sm);
  padding: var(--bo-spacing-md) var(--bo-spacing-lg);
  border-bottom: var(--bo-border);
  background: var(--bo-color-bg);
}

.bo-modal__toolbar-actions {
  display: flex;
  align-items: center;
  gap: var(--bo-spacing-sm);
  flex-wrap: wrap;
}

.bo-modal__toolbar-hint {
  color: var(--bo-color-muted);
  font-size: 0.9rem;
}

.bo-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--bo-spacing-lg);
  transition: background-color 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.bo-modal__body.is-dragover {
  background: linear-gradient(135deg, rgba(34, 80, 244, 0.05) 0%, rgba(34, 80, 244, 0.1) 100%);
  border: 2px dashed var(--bo-color-primary);
  border-radius: var(--bo-radius-md);
}

.bo-modal__body.is-dragover::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 0%, rgba(34, 80, 244, 0.05) 100%);
}

.bo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--bo-spacing-lg);
}

.bo-gallery-grid__item {
  position: relative;
  border: 1px solid var(--bo-color-border);
  border-radius: var(--bo-radius-md);
  background: var(--bo-color-surface);
  overflow: hidden;
  cursor: grab;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.bo-gallery-grid__item:hover {
  box-shadow: var(--bo-shadow-soft);
  transform: translateY(-2px);
}

.bo-gallery-grid__item.is-selected {
  border-color: var(--bo-color-primary);
  border-width: 2px;
  box-shadow: 0 0 0 3px rgba(34, 80, 244, 0.1);
}

.bo-gallery-grid__item.is-dragging {
  opacity: 0.4;
  cursor: grabbing;
  transform: scale(0.95);
  box-shadow: var(--bo-shadow-lg);
}

.bo-gallery-grid__item.is-drag-over {
  border-color: var(--bo-color-primary);
  border-width: 2px;
  background: rgba(34, 80, 244, 0.05);
  transform: scale(1.02);
  box-shadow: 0 0 0 3px rgba(34, 80, 244, 0.2);
}

.bo-gallery-grid__item-drag-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--bo-color-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  cursor: grab;
  z-index: 5;
  color: var(--bo-color-text-secondary);
  box-shadow: var(--bo-shadow-soft);
  pointer-events: none;
}

.bo-gallery-grid__item:hover .bo-gallery-grid__item-drag-handle {
  opacity: 1;
  pointer-events: auto;
}

.bo-gallery-grid__item.is-dragging .bo-gallery-grid__item-drag-handle {
  cursor: grabbing;
}

.bo-gallery-grid__item-checkbox {
  position: absolute;
  top: var(--bo-spacing-sm);
  left: var(--bo-spacing-sm);
  z-index: 10;
}

.bo-gallery-grid__item-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--bo-color-primary);
}

.bo-gallery-grid__item-image {
  width: 100%;
  height: auto;
  min-height: 200px;
  max-height: 350px;
  object-fit: contain;
  background: linear-gradient(135deg, rgba(247, 249, 252, 0.8) 0%, rgba(240, 243, 248, 0.9) 100%);
  display: block;
  padding: var(--bo-spacing-sm);
}

.bo-gallery-grid__item-actions {
  position: absolute;
  top: var(--bo-spacing-sm);
  right: var(--bo-spacing-sm);
  display: flex;
  gap: var(--bo-spacing-xs);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.bo-gallery-grid__item:hover .bo-gallery-grid__item-actions {
  opacity: 1;
}

.bo-gallery-grid__item-footer {
  padding: var(--bo-spacing-sm) var(--bo-spacing-md);
  background: linear-gradient(180deg, rgba(247, 249, 252, 0.95) 0%, rgba(240, 243, 248, 0.98) 100%);
  border-top: 1px solid var(--bo-color-border);
  display: flex;
  flex-direction: column;
  gap: var(--bo-spacing-sm);
  min-height: 48px;
}

.bo-gallery-grid__item-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bo-spacing-sm);
}

.bo-gallery-grid__item-url {
  width: 100%;
}

.bo-url-input {
  width: 100%;
  padding: var(--bo-spacing-xs) var(--bo-spacing-sm);
  font-size: 0.8rem;
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  color: var(--bo-color-text-secondary);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--bo-color-border);
  border-radius: var(--bo-radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.bo-url-input:hover {
  background: white;
  border-color: var(--bo-color-primary);
}

.bo-url-input:focus {
  outline: none;
  border-color: var(--bo-color-primary);
  box-shadow: 0 0 0 3px rgba(34, 80, 244, 0.1);
}

.bo-gallery-grid__item-buttons {
  display: flex;
  gap: var(--bo-spacing-xs);
  flex-wrap: wrap;
}

.bo-gallery-grid__item-filename {
  font-size: 0.85rem;
  color: var(--bo-color-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.bo-gallery-grid__item-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--bo-color-primary);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
}

.btn-icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: var(--bo-color-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-icon-action:hover {
  background: rgba(200, 30, 53, 0.95);
  color: white;
  transform: scale(1.1);
}

.btn-icon-action svg {
  width: 18px;
  height: 18px;
}

/* Responsive pour la modale galerie */
@media (max-width: 900px) {
  .bo-gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .bo-modal--gallery {
    padding: var(--bo-spacing-sm);
  }
  
  .bo-modal--gallery .bo-modal__content {
    max-height: 95vh;
  }
  
  .bo-modal__header {
    padding: var(--bo-spacing-md) var(--bo-spacing-lg);
  }
  
  .bo-modal__header h2 {
    font-size: 1.2rem;
  }
  
  .bo-modal__toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .bo-modal__toolbar .btn {
    width: 100%;
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 
 * ============================================
 * RESPONSIVE BREAKPOINTS
 * ============================================
 * Desktop: ≥1100px - Sidebar 260px + content grid 2-3 col
 * Tablet:  768-1100px - Sidebar collapsible + content grid 2 col
 * Mobile:  <768px - Sidebar overlay + content 1 col
 */

/* Large desktop: optimiser pour écrans larges */
/* Large desktop: optimiser pour écrans larges ≥1280px */
@media (min-width: 1280px) {
  .bo-main {
    padding: var(--bo-spacing-2xl) var(--bo-spacing-3xl);
  }
  
  .bo-panel {
    max-width: var(--bo-content-max-width);
  }
  
  /* Layout 3 colonnes: Feature Image + Informations séjour + Infos/Formalités */
  .bo-panel__top {
    display: grid;
    grid-template-columns: 540px 1fr 540px;
    gap: var(--bo-spacing-xl);
    align-items: stretch;
  }
  
  /* Limiter largeur de la card Feature Image */
  .bo-panel__top > .bo-card--media {
    max-width: 540px;
    grid-column: 1;
  }
  
  /* Limiter largeur de la card Informations séjour */
  .bo-panel__top > .bo-card--summary[data-section="sejour"] {
    max-width: 1100px;
    grid-column: 2;
  }
  
  /* Card Infos pratiques/Formalités à droite (avec tabs) - séjours uniquement */
  .bo-panel__top > .bo-card--sejour-texts[data-section="sejour"] {
    grid-column: 3;
  }
  
  /* === Layout GUIDES (3 colonnes) === */
  
  /* Card FAQ/Téléchargements (colonne 2 pour guides) */
  .bo-panel__top > .bo-card--faq[data-section="guide"] {
    grid-column: 2;
  }
  
  /* Card Sommaire (colonne 3 pour guides) */
  .bo-panel__top > .bo-card--summary[data-section="guide"][data-card="guide-sommaire"] {
    grid-column: 3;
  }
  
  /* Card Étapes déplacée hors du grid - en pleine largeur en dessous */
  .bo-card--steps[data-section="guide"][data-card="guide-steps"] {
    max-width: var(--bo-content-max-width);
    margin-top: var(--bo-spacing-xl);
  }
  
  /* Feature image plus compacte sur grand écran */
  .bo-panel__top .bo-media-preview {
    aspect-ratio: 4 / 3;
    max-width: 540px;
  }
  
  /* Dans Informations séjour: optimiser la grille Lieu/Durée/Âges + Prix */
  .bo-card--summary .form-grid--two {
    display: grid;
    grid-template-columns: 1fr 160px 160px;
    gap: var(--bo-spacing-md);
  }
  
  /* Section Prix: 2 colonnes pour Montant + Note */
  .bo-card--summary .bo-card-section .form-grid--two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--bo-spacing-md);
  }
  
  /* Coup de coeur: réduire hauteur */
  .bo-card--summary .textarea-sm {
    min-height: 80px;
  }
  
  /* Activités + Dates côte à côte au lieu de Prix + Dates */
  .bo-sejour-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--bo-spacing-lg);
  }
  
  /* Liste des activités en 2 colonnes */
  .bo-sejour-meta-grid .bo-chip-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--bo-spacing-sm);
  }
  
  /* Annuler le grid 2-col pour Activités seules */
  .bo-activities-grid {
    display: block;
  }
  
  /* Activités: 2 colonnes pour les points DANS la section */
  
  /* JSON editor plus compact à droite */
  .bo-json-container {
    max-width: 600px;
  }
  
  .bo-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
  
  /* Tutoriels: layout optimisé aussi */
  .bo-panel--guide .bo-guide-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--bo-spacing-xl);
  }
}

/* Desktop moyen: réduire légèrement */
@media (max-width: 1280px) {
  .bo-panel__split {
    grid-template-columns: minmax(300px, 380px) 1fr;
  }
}

/* Tablette landscape: sidebar plus petite */
@media (max-width: 1100px) {
  :root {
    --bo-sidebar-width: 220px;
  }
  
  .bo-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  
  .bo-sidebar {
    padding: var(--bo-spacing-lg) var(--bo-spacing-md);
  }
  
  .bo-main {
    padding: var(--bo-spacing-xl) var(--bo-spacing-lg);
  }
  
  .bo-panel__split {
    grid-template-columns: 1fr;
  }
  
  .bo-panel__grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .bo-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

/* Tablette portrait: sidebar overlay */
@media (max-width: 768px) {
  .bo-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .bo-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    transform: translateX(-100%);
    transition: transform var(--bo-transition-base);
    z-index: var(--bo-z-fixed);
    box-shadow: var(--bo-shadow-xl);
  }

  .bo-sidebar.is-open {
    transform: translateX(0);
  }
  
  .bo-sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: var(--bo-color-overlay);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--bo-transition-base);
    z-index: calc(var(--bo-z-fixed) - 1);
  }
  
  .bo-sidebar-overlay.is-visible {
    opacity: 1;
    pointer-events: all;
  }

  .sidebar-toggle {
    display: inline-flex;
  }

  .sidebar-trigger {
    display: inline-flex;
  }
  
  .bo-main {
    padding: var(--bo-spacing-lg);
  }
  
  .bo-main__header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .bo-main__title {
    font-size: var(--bo-font-size-xl);
  }
  
  .bo-panel__controls {
    grid-template-columns: 1fr;
  }
  
  .bo-panel__grid-3 {
    grid-template-columns: 1fr;
  }
  
  .bo-card__header {
    padding: var(--bo-spacing-base);
  }
  
  .bo-card__body {
    padding: var(--bo-spacing-base);
  }
  
  .bo-card__footer {
    padding: var(--bo-spacing-sm) var(--bo-spacing-base);
    flex-direction: column;
    align-items: stretch;
  }
  
  .bo-card__footer .btn {
    width: 100%;
  }
  
  .bo-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  
  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn-group .btn {
    width: 100%;
  }
}

/* Mobile: optimisations supplémentaires */
@media (max-width: 640px) {
  .bo-main {
    padding: var(--bo-spacing-md);
  }
  
  .bo-main__title {
    font-size: var(--bo-font-size-lg);
  }
  
  .bo-card {
    border-radius: var(--bo-radius-md);
  }
  
  .bo-card__header,
  .bo-card__body,
  .bo-card__footer {
    padding: var(--bo-spacing-md);
  }
  
  .bo-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--bo-spacing-sm);
  }
  
  .bo-media-preview {
    aspect-ratio: 4 / 3;
  }
  
  .btn {
    font-size: var(--bo-font-size-sm);
    height: var(--bo-input-height-sm);
    padding: 0 var(--bo-spacing-md);
  }
  
  .input,
  .select,
  .textarea {
    font-size: var(--bo-font-size-base);
    height: var(--bo-input-height);
  }
  
  /* Améliorer la lisibilité du JSON sur mobile */
  .textarea--json {
    font-size: 12px;
    min-height: 240px;
  }

  .sidebar-trigger span {
    width: 18px;
  }

  .bo-sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(17, 27, 65, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1050;
  }

  /* Select stylisé */
  .bo-select-wrapper {
    position: relative;
  }

  .bo-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233b5998' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 36px;
    cursor: pointer;
  }

  .bo-select:focus {
    border-color: #3b5998;
    box-shadow: 0 0 0 3px rgba(59, 89, 152, 0.1);
  }

  .bo-select option {
    padding: 8px;
  }


  .bo-sidebar-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
  }

  .bo-main {
    padding: var(--bo-spacing-lg);
  }

  .bo-main__header {
    position: sticky;
    top: 0;
    background: linear-gradient(180deg, rgba(247, 249, 252, 0.94) 0%, rgba(247, 249, 252, 0.9) 100%);
    backdrop-filter: blur(6px);
    z-index: 5;
    padding: var(--bo-spacing-sm) 0;
    margin: 0;
  }

  body.bo-sidebar-open {
    overflow: hidden;
  }

  .bo-panel__controls {
    grid-template-columns: 1fr;
  }

  .bo-panel__grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Responsive v2.0 - Toolbar & Cards
   ======================================== */

/* Toolbar responsive - Tablette */
@media (max-width: 1024px) {
  .bo-toolbar {
    gap: var(--bo-spacing-xs);
  }
  
  .bo-toolbar__title-group {
    width: 100%;
    min-width: unset;
    order: 10;
    margin-left: 0;
  }
  
  .btn {
    font-size: 0.9rem;
    padding: 0 var(--bo-spacing-sm);
  }
}

/* Toolbar responsive - Mobile */
@media (max-width: 768px) {
  .bo-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: var(--bo-spacing-sm);
  }
  
  .bo-toolbar .btn {
    width: 100%;
    justify-content: center;
  }
  
  .bo-toolbar__title-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  .bo-toolbar__title-group .input {
    width: 100%;
  }
  
  .bo-toolbar__title-group .btn {
    width: 100%;
  }
  
  /* Réorganiser l'ordre des boutons pour mobile */
  .bo-toolbar [data-action="save"] {
    order: 1;
  }
  
  .bo-toolbar [data-action="toggle-status"] {
    order: 2;
  }
  
  .bo-toolbar [data-action="create-post"] {
    order: 3;
  }
  
  .bo-toolbar [data-action="view-post"] {
    order: 4;
  }
  
  .bo-toolbar [data-action="view-sejours-page"],
  .bo-toolbar [data-action="view-guides-page"] {
    order: 5;
  }
  
  .bo-toolbar [data-action="undo"] {
    order: 6;
  }
  
  .bo-toolbar [data-action="delete-post"] {
    order: 7;
  }
  
  .bo-toolbar__title-group {
    order: 0;
  }
}

/* Cards responsive - Mobile optimisé */
@media (max-width: 640px) {
  .bo-panel__top {
    gap: var(--bo-spacing-md);
  }
  
  .card {
    padding: var(--bo-spacing-md);
  }
  
  .card__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--bo-spacing-sm);
  }
  
  .card__header-actions {
    width: 100%;
    flex-direction: column;
  }
  
  .card__header-actions .btn {
    width: 100%;
  }
  
  .form-grid--two {
    grid-template-columns: 1fr;
  }
  
  .bo-sejour-meta-grid {
    grid-template-columns: 1fr;
  }
  
  .bo-sejour-bottom-grid {
    grid-template-columns: 1fr;
  }
  
  /* Réduire padding des sections */
  .bo-card-section {
    padding: var(--bo-spacing-sm) 0;
  }
  
  .bo-card-section__header {
    flex-direction: column;
    gap: var(--bo-spacing-xs);
  }
  
  .bo-card-section__header .btn {
    width: 100%;
  }
  
  /* Optimiser les listes d'items */
  .bo-session-item,
  .bo-chip-item,
  .bo-formalite-item,
  .bo-step-item,
  .bo-section-item {
    padding: var(--bo-spacing-sm);
  }
  
  /* Tabs responsive */
  .bo-tabs {
    flex-wrap: wrap;
    gap: var(--bo-spacing-xs);
  }
  
  .bo-tab {
    flex: 1;
    min-width: 100px;
    font-size: 0.9rem;
    padding: var(--bo-spacing-xs) var(--bo-spacing-sm);
  }
}

/* Extra small devices - Optimisations finales */
@media (max-width: 500px) {
  .bo-toolbar .btn {
    font-size: 0.85rem;
    height: 42px;
  }
  
  /* Statistiques en colonne sur très petits écrans */
  .bo-home__stats {
    grid-template-columns: 1fr;
  }
  
  .bo-stat-card {
    padding: var(--bo-spacing-md);
  }
  
  .bo-stat-card__icon {
    width: 48px;
    height: 48px;
  }
  
  .bo-stat-card__value {
    font-size: 1.75rem;
  }
  
  .bo-home__detailed-stats {
    grid-template-columns: 1fr;
  }
  
  .bo-detailed-stat-card__grid {
    grid-template-columns: 1fr;
  }
  
  .bo-stat-item__value {
    font-size: 1.5rem;
  }
  
  /* Afficher tooltips sur boutons (future) */
  .btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1000;
  }
  
  /* Réduire encore la taille des éléments */
  .input,
  .select,
  .textarea {
    font-size: 0.9rem;
  }
  
  .badge {
    font-size: 0.75rem;
    padding: 2px 8px;
  }
  
  /* Simplifier la galerie */
  .bo-gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--bo-spacing-xs);
  }
  
  /* Modal plein écran sur très petit écran */
  .bo-modal {
    padding: 0;
  }
  
  .bo-modal__dialog {
    max-width: none;
    width: 100%;
    height: 100%;
    border-radius: 0;
    padding: var(--bo-spacing-md);
  }
  
  .bo-modal--gallery .bo-modal__content {
    max-width: none;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   COMPARE MODAL - Vue de comparaison de versions
   ═══════════════════════════════════════════════════════════════════════════ */

.bo-compare-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--bo-spacing-md);
}

.bo-compare-modal[hidden] {
  display: none;
}

.bo-compare-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.bo-compare-modal__container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  max-height: 90vh;
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.bo-compare-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--bo-spacing-lg);
  border-bottom: 1px solid var(--color-border);
}

.bo-compare-modal__title h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-dark);
}

.bo-compare-modal__subtitle {
  margin: var(--bo-spacing-xs) 0 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.bo-compare-modal__body {
  flex: 1;
  overflow: hidden;
  padding: var(--bo-spacing-lg);
}

.bo-compare-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--bo-spacing-md);
  height: 100%;
}

.bo-compare-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.bo-compare-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--bo-spacing-md);
  background: var(--color-background);
  border-bottom: 1px solid var(--color-border);
}

.bo-compare-panel__header h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-dark);
}

.bo-compare-panel__content {
  flex: 1;
  overflow: auto;
  background: #fafafa;
}

.bo-compare-code {
  margin: 0;
  padding: var(--bo-spacing-md);
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--color-dark);
}

/* Lignes de diff */
.bo-diff-line {
  display: block;
  padding: 2px 8px;
  margin: 0 calc(-1 * var(--bo-spacing-md));
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.bo-diff-line--added {
  background: rgba(34, 197, 94, 0.15);
  color: #166534;
}

.bo-diff-line--removed {
  background: rgba(239, 68, 68, 0.15);
  color: #991b1b;
}

.bo-diff-line--changed {
  background: rgba(251, 191, 36, 0.15);
  color: #92400e;
}

.bo-diff-line:hover {
  background: rgba(59, 130, 246, 0.1);
}

.bo-diff-line--added:hover {
  background: rgba(34, 197, 94, 0.25);
}

.bo-diff-line--removed:hover {
  background: rgba(239, 68, 68, 0.25);
}

.bo-diff-line--changed:hover {
  background: rgba(251, 191, 36, 0.25);
}

/* Indicateur de restauration */
.bo-diff-line::before {
  content: '';
  display: inline-block;
  width: 20px;
  text-align: center;
  margin-right: var(--bo-spacing-xs);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.bo-diff-line--removed::before {
  content: '←';
  opacity: 0.5;
}

.bo-diff-line--removed:hover::before {
  opacity: 1;
}

.bo-compare-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--bo-spacing-sm);
  padding: var(--bo-spacing-lg);
  border-top: 1px solid var(--color-border);
}

/* Responsive */
@media (max-width: 1024px) {
  .bo-compare-split {
    grid-template-columns: 1fr;
  }
  
  .bo-compare-panel__header {
    position: sticky;
    top: 0;
    z-index: 1;
  }
}

@media (max-width: 640px) {
  .bo-compare-modal {
    padding: 0;
  }

  .bo-compare-modal__container {
    max-height: 100vh;
    border-radius: 0;
  }
}

/* ========================================
   Colonies Config Page
   ======================================== */

.bo-view--colonies {
  padding: var(--bo-spacing-xl);
}

.bo-colonies__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--bo-spacing-xl);
  padding-bottom: var(--bo-spacing-xl);
  border-bottom: 1px solid var(--bo-color-border);
}

.bo-colonies__header h2 {
  font-size: var(--bo-font-size-2xl);
  font-weight: var(--bo-font-weight-semibold);
  margin-bottom: var(--bo-spacing-sm);
  color: var(--bo-color-text);
}

.bo-colonies__header p {
  color: var(--bo-color-text-muted);
  font-size: var(--bo-font-size-base);
}

.bo-colonies__actions {
  display: flex;
  gap: var(--bo-spacing-md);
}

/* Preview Section */
.bo-colonies__preview {
  background: var(--bo-color-primary-light);
  border: 1px solid var(--bo-color-border);
  border-radius: var(--bo-radius-lg);
  padding: var(--bo-spacing-lg);
  margin-bottom: var(--bo-spacing-xl);
}

.bo-colonies__preview-text h3 {
  font-size: var(--bo-font-size-lg);
  font-weight: var(--bo-font-weight-semibold);
  margin-bottom: var(--bo-spacing-sm);
  color: var(--bo-color-text);
}

.bo-colonies__preview-text p {
  color: var(--bo-color-text-muted);
  margin-bottom: var(--bo-spacing-base);
}

.bo-colonies__preview-chips {
  display: flex;
  gap: var(--bo-spacing-md);
  margin-bottom: var(--bo-spacing-base);
  flex-wrap: wrap;
}

/* Colonies Cards */
.bo-colonies-card {
  margin-bottom: var(--bo-spacing-xl);
}

/* Seasons Section */
.bo-colonies-seasons {
  display: flex;
  flex-direction: column;
  gap: var(--bo-spacing-xl);
}

.bo-colonies-season {
  padding: var(--bo-spacing-lg);
  background: var(--bo-color-bg);
  border: 1px solid var(--bo-color-border);
  border-radius: var(--bo-radius-md);
}

.bo-colonies-season__header {
  margin-bottom: var(--bo-spacing-lg);
}

.bo-colonies-season__header h4 {
  font-size: var(--bo-font-size-xl);
  font-weight: var(--bo-font-weight-semibold);
  margin-bottom: var(--bo-spacing-xs);
  color: var(--bo-color-text);
}

.bo-colonies-season__header p {
  color: var(--bo-color-text-muted);
  font-size: var(--bo-font-size-sm);
}

/* Gallery Section */
.bo-colonies-season__gallery {
  margin-top: var(--bo-spacing-base);
}

.bo-colonies-season__gallery-actions {
  display: flex;
  gap: var(--bo-spacing-md);
  margin-top: var(--bo-spacing-base);
}

/* Age Ranges List */
.bo-age-ranges-list,
.bo-destinations-list {
  display: flex;
  flex-direction: column;
  gap: var(--bo-spacing-base);
  margin-top: var(--bo-spacing-base);
}

.bo-age-range-item,
.bo-destination-item,
.bo-cta-item {
  display: flex;
  gap: var(--bo-spacing-base);
  padding: var(--bo-spacing-base);
  background: var(--bo-color-bg);
  border: 1px solid var(--bo-color-border);
  border-radius: var(--bo-radius-md);
  align-items: flex-start;
}

.bo-age-range-item__content,
.bo-destination-item__content,
.bo-cta-item__content {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--bo-spacing-base);
}

.bo-colonies-hero-ctas {
  display: flex;
  flex-direction: column;
  gap: var(--bo-spacing-base);
  margin-bottom: var(--bo-spacing-base);
}

.bo-age-range-item__info {
  grid-column: 1 / -1;
  display: flex;
  gap: var(--bo-spacing-sm);
  margin-top: var(--bo-spacing-sm);
}

/* Empty States */
.bo-empty {
  padding: var(--bo-spacing-xl);
  text-align: center;
  color: var(--bo-color-text-muted);
  font-style: italic;
  background: var(--bo-color-bg);
  border: 1px dashed var(--bo-color-border);
  border-radius: var(--bo-radius-md);
}

.bo-empty.is-hidden,
.bo-empty[hidden] {
  display: none;
}

/* Photocolo */
.bo-photocolo {
  display: flex;
  flex-direction: column;
  gap: var(--bo-spacing-lg);
}

.bo-photocolo__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--bo-spacing-md);
}

.bo-photocolo__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bo-spacing-sm);
}

.bo-photocolo__form {
  display: flex;
  flex-direction: column;
  gap: var(--bo-spacing-lg);
}

.bo-photocolo__grid {
  display: grid;
  gap: var(--bo-spacing-lg);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.bo-photocolo__panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--bo-spacing-md);
}

.bo-photocolo__panel-header {
  align-items: flex-start;
  gap: var(--bo-spacing-md);
}

.bo-photocolo__panel .card__body {
  display: flex;
  flex-direction: column;
  gap: var(--bo-spacing-md);
}

.bo-photocolo__seasons {
  display: flex;
  flex-direction: column;
  gap: var(--bo-spacing-md);
}

.bo-photocolo-season {
  border: 1px solid var(--bo-color-border);
  border-radius: var(--bo-radius-md);
  padding: 0;
  background: var(--bo-color-surface, #fff);
  overflow: hidden;
}

.bo-photocolo-season summary {
  list-style: none;
  cursor: pointer;
  padding: var(--bo-spacing-md) var(--bo-spacing-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bo-spacing-md);
  background: #f8fafc;
}

.bo-photocolo-season summary::-webkit-details-marker {
  display: none;
}

.bo-photocolo-season[open] summary {
  border-bottom: 1px solid var(--bo-color-border);
}

.bo-photocolo-season__title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bo-photocolo-season__title span:first-child {
  font-size: 1.05rem;
  font-weight: 600;
}

.bo-photocolo-season__title span:last-child {
  font-size: 0.875rem;
  color: var(--bo-color-text-muted);
}

.bo-photocolo-season__remove {
  color: var(--bo-color-danger);
}

.bo-photocolo-season__content {
  padding: var(--bo-spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--bo-spacing-md);
}

.bo-photocolo-sejours {
  display: flex;
  flex-direction: column;
  gap: var(--bo-spacing-md);
  margin-bottom: var(--bo-spacing-md);
}

.bo-photocolo-sejour {
  border: 1px solid var(--bo-color-border);
  border-radius: var(--bo-radius-md);
  padding: var(--bo-spacing-md);
  background: #f9fafb;
}

.bo-photocolo-sejour__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--bo-spacing-sm);
}

.bo-photocolo-sejour__title {
  font-weight: 600;
  color: var(--bo-color-text);
}

.bo-photocolo-add {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bo-spacing-sm);
}

.bo-photocolo-add .select {
  flex: 1;
  min-width: 200px;
}

/* Legal pages */
.bo-view--legal .card {
  margin-bottom: var(--bo-spacing-lg);
}

.bo-legal {
  display: flex;
  flex-direction: column;
  gap: var(--bo-spacing-lg);
}

.bo-legal__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--bo-spacing-md);
}

.bo-legal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bo-spacing-sm);
}

.bo-legal__form {
  display: flex;
  flex-direction: column;
  gap: var(--bo-spacing-lg);
}

.bo-legal-list,
.bo-legal-sections {
  display: flex;
  flex-direction: column;
  gap: var(--bo-spacing-md);
}

.bo-legal-card,
.bo-legal-section {
  border: 1px solid var(--bo-color-border);
  border-radius: var(--bo-radius-md);
  padding: var(--bo-spacing-md);
  background: var(--bo-color-surface, #fff);
}

.bo-legal-card__grid,
.bo-legal-section__grid {
  display: grid;
  gap: var(--bo-spacing-sm);
}

.bo-legal-card__grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.bo-legal-section__grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.bo-legal-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bo-spacing-xs);
  margin-bottom: var(--bo-spacing-sm);
}

.bo-legal-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.bo-legal-section textarea {
  min-height: 140px;
}

@media (max-width: 720px) {
  .bo-legal__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ========================================
   FAQ, Contact, Aide, About Config Pages Headers
   ======================================== */

.bo-faq__header,
.bo-contact__header,
.bo-aide__header,
.bo-about__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--bo-spacing-xl);
  padding-bottom: var(--bo-spacing-xl);
  border-bottom: 1px solid var(--bo-color-border);
}

.bo-faq__header h2,
.bo-contact__header h2,
.bo-aide__header h2,
.bo-about__header h2 {
  font-size: var(--bo-font-size-2xl);
  font-weight: var(--bo-font-weight-bold);
  margin-bottom: var(--bo-spacing-xs);
  color: var(--bo-color-text);
}

.bo-faq__header p,
.bo-contact__header p,
.bo-aide__header p,
.bo-about__header p {
  color: var(--bo-color-text-muted);
  font-size: var(--bo-font-size-base);
}

.bo-faq__actions,
.bo-contact__actions,
.bo-aide__actions,
.bo-about__actions {
  display: flex;
  gap: var(--bo-spacing-md);
}

/* Responsive */
@media (max-width: 768px) {
  .bo-colonies__header,
  .bo-faq__header,
  .bo-contact__header,
  .bo-aide__header,
  .bo-about__header {
    flex-direction: column;
  }

  .bo-colonies__actions,
  .bo-faq__actions,
  .bo-contact__actions,
  .bo-aide__actions,
  .bo-about__actions {
    width: 100%;
    flex-direction: column;
  }

  .bo-colonies__preview-chips {
    flex-wrap: wrap;
  }

  .bo-age-range-item,
  .bo-destination-item {
    flex-direction: column;
  }
}

/* ============================================
 * WYSIWYG EDITOR (Mini-éditeur HTML)
 * ============================================ */

.bo-wysiwyg-wrapper {
  border: 1px solid var(--bo-color-border);
  border-radius: var(--bo-radius-md);
  overflow: hidden;
  background: var(--bo-color-surface);
}

.bo-wysiwyg-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px;
  background: var(--bo-color-bg);
  border-bottom: 1px solid var(--bo-color-border);
  flex-wrap: wrap;
}

.bo-wysiwyg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--bo-color-border);
  border-radius: var(--bo-radius-sm);
  background: var(--bo-color-surface);
  color: var(--bo-color-text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.bo-wysiwyg-btn:hover {
  background: var(--bo-color-primary-light);
  border-color: var(--bo-color-primary);
  color: var(--bo-color-primary);
}

.bo-wysiwyg-btn:active {
  transform: translateY(1px);
}

.bo-wysiwyg-btn.is-active {
  background: var(--bo-color-primary);
  border-color: var(--bo-color-primary);
  color: var(--bo-color-text-inverted);
}

.bo-wysiwyg-separator {
  width: 1px;
  height: 24px;
  background: var(--bo-color-border);
  margin: 0 4px;
}

.bo-wysiwyg-editor {
  min-height: 120px;
  max-height: 400px;
  padding: 12px 16px;
  font-family: var(--bo-font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--bo-color-text);
  overflow-y: auto;
  outline: none;
}

.bo-wysiwyg-editor:focus {
  box-shadow: inset 0 0 0 2px var(--bo-color-primary-light);
}

.bo-wysiwyg-editor:empty:before {
  content: "Saisissez le contenu de la section...";
  color: var(--bo-color-text-subtle);
  font-style: italic;
}

/* Style du contenu dans l'éditeur */
.bo-wysiwyg-editor p {
  margin: 0 0 12px 0;
}

.bo-wysiwyg-editor p:last-child {
  margin-bottom: 0;
}

.bo-wysiwyg-editor ul,
.bo-wysiwyg-editor ol {
  margin: 0 0 12px 0;
  padding-left: 24px;
}

.bo-wysiwyg-editor li {
  margin-bottom: 4px;
}

.bo-wysiwyg-editor a {
  color: var(--bo-color-primary);
  text-decoration: underline;
}

.bo-wysiwyg-editor a:hover {
  color: var(--bo-color-primary-hover);
}

.bo-wysiwyg-editor strong {
  font-weight: 600;
}

.bo-wysiwyg-editor em {
  font-style: italic;
}

.bo-wysiwyg-editor u {
  text-decoration: underline;
}

/* Custom Grid for FAQ */
.bo-faq-custom-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 1100px) {
  .bo-faq-custom-grid {
    grid-template-columns: 1fr 1fr; /* Changed from 350px 1fr to 1fr 1fr for better balance */
  }
  
  .slot-faq-settings {
    grid-column: 1;
    /* Sticky settings column for long questions list */
    position: sticky;
    top: 1rem;
  }
  
  .slot-faq-questions {
    grid-column: 2;
  }
}
.bo-custom-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.bo-custom-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.bo-custom-modal__content {
  background: var(--bo-color-surface);
  border-radius: var(--bo-radius-lg);
  box-shadow: var(--bo-shadow-xl);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform 0.2s ease;
}

.bo-custom-modal.is-open .bo-custom-modal__content {
  transform: translateY(0);
}

.bo-custom-modal__header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--bo-color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bo-custom-modal__header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.bo-custom-modal__close {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  color: var(--bo-color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bo-custom-modal__close:hover {
  background: var(--bo-color-bg);
  color: var(--bo-color-text);
}

.bo-custom-modal__body {
  padding: 1.5rem;
}

/* === CROP MODAL & CROPPERJS STYLES === */
.bo-modal--crop .bo-modal__content {
  max-width: 1000px;
  width: 90vw;
  height: 90vh;
  display: flex;
  flex-direction: column;
}

.bo-crop-body {
  background: #222;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.bo-crop-container {
  max-width: 100%;
  max-height: 100%;
}

#bo-crop-image {
  display: block;
  max-width: 100%;
}

/* Minimal CropperJS CSS */
.cropper-container{direction:ltr;font-size:0;line-height:0;position:relative;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.cropper-container img{display:block;min-width:0!important;max-width:none!important;min-height:0!important;max-height:none!important;width:100%;height:100%;image-orientation:0deg}.cropper-wrap-box,.cropper-canvas,.cropper-drag-box,.cropper-crop-box,.cropper-modal{position:absolute;top:0;right:0;bottom:0;left:0}.cropper-wrap-box{overflow:hidden}.cropper-drag-box{opacity:0;background-color:#fff}.cropper-modal{opacity:.5;background-color:#000}.cropper-view-box{display:block;overflow:hidden;width:100%;height:100%;outline:1px solid #39f;outline-color:rgba(51,153,255,.75)}.cropper-dashed{position:absolute;display:block;opacity:.5;border:0 dashed #eee}.cropper-dashed.dashed-h{top:33.33333%;left:0;width:100%;height:33.33333%;border-top-width:1px;border-bottom-width:1px}.cropper-dashed.dashed-v{top:0;left:33.33333%;width:33.33333%;height:100%;border-right-width:1px;border-left-width:1px}.cropper-center{position:absolute;top:50%;left:50%;display:block;width:0;height:0;opacity:.75}.cropper-center:before,.cropper-center:after{position:absolute;display:block;content:' ';background-color:#eee}.cropper-center:before{top:0;left:-3px;width:7px;height:1px}.cropper-center:after{top:-3px;left:0;width:1px;height:7px}.cropper-face,.cropper-line,.cropper-point{position:absolute;display:block;width:100%;height:100%;opacity:.1}.cropper-face{top:0;left:0;background-color:#fff}.cropper-line{background-color:#39f}.cropper-line.line-e{top:0;right:-3px;width:5px;cursor:e-resize}.cropper-line.line-n{top:-3px;left:0;height:5px;cursor:n-resize}.cropper-line.line-w{top:0;left:-3px;width:5px;cursor:w-resize}.cropper-line.line-s{bottom:-3px;left:0;height:5px;cursor:s-resize}.cropper-point{width:5px;height:5px;opacity:.75;background-color:#39f}.cropper-point.point-e{top:50%;right:-3px;margin-top:-3px;cursor:e-resize}.cropper-point.point-n{top:-3px;left:50%;margin-left:-3px;cursor:n-resize}.cropper-point.point-w{top:50%;left:-3px;margin-top:-3px;cursor:w-resize}.cropper-point.point-s{bottom:-3px;left:50%;margin-left:-3px;cursor:s-resize}.cropper-point.point-ne{top:-3px;right:-3px;cursor:ne-resize}.cropper-point.point-nw{top:-3px;left:-3px;cursor:nw-resize}.cropper-point.point-sw{bottom:-3px;left:-3px;cursor:sw-resize}.cropper-point.point-se{bottom:-3px;right:-3px;cursor:se-resize}

