/* ==========================================================================
   MarocPsy — Formations, Ateliers Pratiques & Masterclasses (formation.css)
   Design Pédagogique & Académique
   Isolation modulaire des programmes de formation, ateliers continus et webinaires
   ========================================================================== */

.sg-shell {
  --sg-teal: #70588d;
  --sg-teal-dark: #5c4676;
  --sg-teal-light: #f3f0f8;
  --sg-teal-border: #ddd4e9;
  --sg-navy: #1e293b;
  --sg-ink: #0f172a;
  --sg-ink-soft: #334155;
  --sg-muted: #64748b;
  --sg-line: #e2e8f0;
  --sg-line-light: #f1f5f9;
  --sg-card-bg: #ffffff;
  --sg-radius-sm: 8px;
  --sg-radius-md: 12px;
  --sg-radius-lg: 16px;
  --sg-radius-xl: 20px;
  --sg-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --sg-shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.07);
  --sg-shadow-lg: 0 16px 36px -6px rgba(15, 23, 42, 0.11);
  --sg-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --sg-danger: #dc2626;

  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 24px 64px;
  color: var(--sg-ink);
  line-height: 1.6;
  font-family: var(--sg-font);
}

[dir="rtl"] .sg-shell {
  font-family: "IBM Plex Sans Arabic", Tahoma, "Segoe UI", Arial, sans-serif;
}

.sg-shell * {
  box-sizing: border-box;
}

.sg-shell [hidden] {
  display: none !important;
}

/* Typographie & titres */
.sg-shell :where(h1, h2, h3, h4) {
  color: var(--sg-ink);
  letter-spacing: -0.015em;
  font-weight: 800;
  margin-top: 0;
}

[dir="rtl"] .sg-shell :where(h1, h2, h3) {
  letter-spacing: 0;
}

.sg-shell :where(p) {
  margin: 0 0 14px;
}

.sg-shell a {
  color: var(--sg-teal-dark);
  text-decoration: none;
  transition: color 0.15s ease;
}

.sg-shell a:hover {
  color: var(--sg-teal);
}

.sg-shell :is(a, button, input, select, textarea):focus-visible {
  outline: 3px solid #70588d;
  outline-offset: 2px;
}

/* Boutons universels */
.sg-shell .sg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--sg-radius-md);
  border: 1.5px solid transparent;
  background: #365b91;
  color: #ffffff !important;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.4;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: none;
}

.sg-shell .sg-button:hover {
  background: #294775;
  border-color: #294775;
  transform: translateY(-1px);
}

.sg-shell .sg-secondary {
  background: #ffffff;
  color: var(--sg-ink-soft) !important;
  border-color: var(--sg-line);
  box-shadow: var(--sg-shadow-sm);
}

.sg-shell .sg-secondary:hover {
  background: var(--sg-line-light);
  color: var(--sg-ink) !important;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.sg-shell .sg-ghost-btn {
  background: transparent;
  color: var(--sg-muted) !important;
  border-color: transparent;
  box-shadow: none;
}

.sg-shell .sg-ghost-btn:hover {
  background: var(--sg-line-light);
  color: var(--sg-ink) !important;
}

.sg-shell button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Messages d'alerte & notifications */
.sg-notice, .sg-error {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--sg-radius-md);
  margin-bottom: 24px;
  font-size: 0.92rem;
  font-weight: 600;
}

.sg-notice {
  background: #f5f0fb;
  border: 1px solid #dcd1ed;
  color: #3b2852;
}

.sg-notice i {
  color: #70588d;
  font-size: 1.1rem;
}

.sg-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.sg-error i {
  color: #ef4444;
  font-size: 1.1rem;
}

.sg-alert-warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

/* Fil d'Ariane */
.sg-shell .sg-breadcrumbs,
.sg-breadcrumbs.psy-profile-breadcrumbs {
  margin: 4px 0 14px !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  font-size: 0.77rem !important;
  line-height: 1.5 !important;
  color: #6b7c86 !important;
  padding: 0 2px !important;
}

.sg-shell .sg-breadcrumbs a,
.sg-breadcrumbs.psy-profile-breadcrumbs a {
  color: #607481 !important;
  text-decoration: none !important;
  padding-block: 4px !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  align-items: center !important;
}

.sg-shell .sg-breadcrumbs a:hover,
.sg-breadcrumbs.psy-profile-breadcrumbs a:hover {
  text-decoration: underline !important;
  color: #274064 !important;
}

.sg-shell .sg-breadcrumbs .sg-breadcrumb-sep,
.sg-breadcrumbs.psy-profile-breadcrumbs .psy-breadcrumb-divider {
  color: #a5b2b9 !important;
  font-size: 0.82rem !important;
}

.sg-shell .sg-breadcrumbs .sg-breadcrumb-current,
.sg-breadcrumbs.psy-profile-breadcrumbs .psy-breadcrumb-current {
  color: #233e49 !important;
  font-weight: 650 !important;
  max-width: 380px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   1. HERO SECTION FORMATIONS & PROGRAMMES
   ========================================================================== */
.sg-hero,
.sg-hero.sg-hero-programs {
  --hero-accent: #74628f;
  --hero-soft: #f3f0f8;
  --hero-line: #ddd4e9;
  --sg-hero-image: url('../img/formations.webp');
  background-color: #f3f7fb;
  background-image: none;
  border: 1px solid #d5e0ec;
  border-inline-start: 4px solid #365b91;
  border-radius: 0 !important;
  padding: 28px 30px;
  min-height: 220px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 5px 20px rgba(38, 61, 91, 0.04);
  position: relative;
  isolation: isolate;
}

.sg-hero.sg-hero-programs::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--sg-hero-image);
  background-size: cover;
  background-position: right center;
  opacity: 1;
  transform: none;
  pointer-events: none;
}

.sg-hero.sg-hero-programs::after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.58) 36%, rgba(255, 255, 255, 0.22) 66%, rgba(255, 255, 255, 0.04) 100%);
  pointer-events: none;
}

[dir="rtl"] .sg-hero.sg-hero-programs::before {
  transform: scaleX(-1);
}

[dir="rtl"] .sg-hero.sg-hero-programs::after {
  background: linear-gradient(270deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.58) 36%, rgba(255, 255, 255, 0.22) 66%, rgba(255, 255, 255, 0.04) 100%);
}

.sg-hero-content {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 2;
  max-width: 70%;
}

.sg-hero-head-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.sg-hero-programs .sg-hero-badge {
  order: -1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e8eff8;
  border: 1px solid #c5d5e8;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: #365b91;
}

.sg-hero-title {
  color: #203653;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 800;
}

.sg-hero-subtitle {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #586b83;
  margin: 0 0 14px;
  max-width: 58ch;
  font-weight: 500;
}

.sg-trust-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.sg-hero-programs .sg-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  background: #ffffff;
  border: 1px solid #d2deec;
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--sg-ink-soft);
}

.sg-hero-programs .sg-trust-pill i {
  color: #526f97;
  font-size: 0.8rem;
}

.sg-hero-side {
  flex-shrink: 0;
  align-self: flex-end;
  position: relative;
  z-index: 2;
}

.sg-hero-pro-btn {
  white-space: nowrap;
  min-height: 40px !important;
  padding: 8px 16px !important;
  font-size: 0.78rem !important;
  background: #365b91 !important;
  color: #ffffff !important;
  border: 1px solid #365b91 !important;
  box-shadow: none !important;
  border-radius: 6px !important;
  cursor: pointer;
  transition: all 0.2s ease !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
}

.sg-hero-pro-btn:hover {
  background: #294775 !important;
  border-color: #294775 !important;
}

.sg-hero-pro-btn i,
.sg-hero-pro-btn span {
  color: inherit !important;
}

/* ==========================================================================
   2. RECHERCHE & FILTRES FORMATIONS (GRILLE COMPACTE 4 COLONNES)
   ========================================================================== */
.sg-filter-card {
  background: #ffffff;
  border: 1.5px solid var(--sg-line);
  border-radius: var(--sg-radius-lg);
  padding: 20px 22px;
  margin-bottom: 22px;
  box-shadow: var(--sg-shadow-md);
}

.sg-filters.sg-filters-programs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 14px;
  align-items: flex-end;
}

.sg-filters.sg-filters-programs .sg-toggle-field .sg-toggle-box {
  width: 100%;
  height: 44px;
  justify-content: center;
}

.sg-filters.sg-filters-programs .sg-filter-actions {
  width: 100%;
}

.sg-filters.sg-filters-programs .sg-submit-btn {
  flex: 1;
  height: 44px;
}

.sg-filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  position: relative;
}

.sg-filter-field label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--sg-muted);
}

.sg-input-wrap, .sg-select-wrap, .sg-city-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.sg-input-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-size: 0.9rem;
  pointer-events: none;
  z-index: 2;
}

[dir="rtl"] .sg-input-icon {
  left: auto;
  right: 14px;
}

.sg-select-arrow {
  position: absolute;
  right: 14px;
  color: #94a3b8;
  font-size: 0.75rem;
  pointer-events: none;
}

[dir="rtl"] .sg-select-arrow {
  right: auto;
  left: 14px;
}

.sg-shell :is(input:not([type=checkbox]), select, textarea) {
  width: 100%;
  border: 1.5px solid var(--sg-line);
  border-radius: var(--sg-radius-md);
  background: #ffffff;
  padding: 10px 14px 10px 38px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--sg-ink);
  min-height: 44px;
  transition: all 0.15s ease;
  appearance: none;
}

[dir="rtl"] .sg-shell :is(input:not([type=checkbox]), select, textarea) {
  padding: 10px 38px 10px 14px;
}

.sg-select-wrap select {
  padding-right: 34px;
  cursor: pointer;
}

[dir="rtl"] .sg-select-wrap select {
  padding-right: 38px;
  padding-left: 34px;
}

.sg-shell :is(input, select, textarea):focus {
  border-color: #365b91;
  box-shadow: 0 0 0 3px rgba(54, 91, 145, 0.15);
  outline: none;
}

/* Autocomplete Ville pour ateliers en présentiel */
.sg-city-search-input {
  padding-right: 36px !important;
  text-overflow: ellipsis;
}

[dir="rtl"] .sg-city-search-input {
  padding-right: 38px !important;
  padding-left: 36px !important;
}

.sg-city-clear-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.78rem;
  z-index: 3;
  transition: all 0.15s ease;
}

[dir="rtl"] .sg-city-clear-btn {
  right: auto;
  left: 8px;
}

.sg-city-clear-btn:hover {
  background: #fee2e2;
  color: #dc2626;
}

.sg-city-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 260px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--sg-radius-md);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
  z-index: 60;
  overflow: hidden;
}

.sg-city-opt-all {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f8fafc;
  border: none;
  border-bottom: 1px solid var(--sg-line);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  color: #365b91;
  cursor: pointer;
  text-align: start;
  transition: background 0.15s ease;
}

.sg-city-opt-all:hover,
.sg-city-opt-all.is-selected {
  background: #edf3fc;
}

.sg-city-opt-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  max-height: 230px;
  overflow-y: auto;
}

.sg-city-opt-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  font-size: 0.88rem;
  color: var(--sg-ink-soft);
  cursor: pointer;
  transition: background 0.12s ease;
}

.sg-city-opt-item:hover,
.sg-city-opt-item.is-active {
  background: #f1f5f9;
  color: #365b91;
}

.sg-city-opt-item.is-selected {
  background: #edf3fc;
  color: #365b91;
  font-weight: 700;
}

.sg-city-opt-sub {
  font-size: 0.72rem;
  color: #94a3b8;
}

.sg-city-empty {
  padding: 14px;
  font-size: 0.84rem;
  color: #94a3b8;
  text-align: center;
}

.sg-toggle-field {
  display: flex;
  align-items: flex-end;
}

.sg-toggle-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  background: #f8fafc;
  border: 1.5px solid var(--sg-line);
  border-radius: var(--sg-radius-md);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--sg-ink-soft);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.sg-toggle-box input {
  width: 16px;
  height: 16px;
  accent-color: #365b91;
  cursor: pointer;
}

.sg-filter-actions {
  display: flex;
  gap: 8px;
}

.sg-submit-btn {
  height: 44px;
  padding: 0 18px !important;
}

.sg-reset-btn {
  height: 44px;
  width: 44px;
  padding: 0 !important;
  color: #94a3b8 !important;
}

.sg-reset-btn:hover {
  color: #dc2626 !important;
  background: #fee2e2 !important;
  border-color: #fecaca !important;
}

/* Quick Topic Chips */
.sg-quick-topics {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--sg-line-light);
  overflow-x: auto;
  scrollbar-width: thin;
}

.sg-quick-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sg-muted);
  white-space: nowrap;
}

.sg-chips-track {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
}

.sg-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--sg-line);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sg-ink-soft);
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.sg-chip:hover {
  background: #f3f0f8;
  border-color: #dcd1ed;
  color: #5c4676;
}

.sg-chip.is-active {
  background: #5c4676;
  border-color: #5c4676;
  color: #ffffff;
}

/* Barre d'état des résultats */
.sg-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.sg-results-count {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--sg-ink-soft);
}

.sg-results-count strong {
  color: var(--sg-ink);
  font-weight: 800;
}

.sg-active-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.sg-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: #f1f5f9;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--sg-ink-soft);
}

.sg-tag-pill a {
  color: #94a3b8;
  font-size: 0.72rem;
}

.sg-tag-pill a:hover {
  color: #dc2626;
}

.sg-clear-all {
  font-size: 0.8rem;
  font-weight: 700;
  color: #dc2626;
  margin-inline-start: 6px;
}

/* ==========================================================================
   3. CARTES DES FORMATIONS (GRILLE & CARDS)
   ========================================================================== */
.sg-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.sg-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1.5px solid var(--sg-line);
  border-radius: 0;
  padding: 24px;
  box-shadow: var(--sg-shadow-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.sg-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: var(--sg-shadow-lg);
}

.sg-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.sg-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
}

.sg-tag,
.sg-tag-type,
.sg-tag-topic,
.sg-tag-audience {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f3f5f8;
  color: #526174;
  border: 1px solid #dce3eb;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.sg-tag i,
.sg-tag-type i,
.sg-tag-topic i,
.sg-tag-audience i,
.sg-tag-format i {
  font-size: 0.76rem;
  flex-shrink: 0;
}

.sg-tag-type-formation,
.sg-tag-type-workshop,
.sg-tag-type-masterclass,
.sg-tag-type-program {
  background: #f3f5f8;
  color: #526174;
  border-color: #dce3eb;
}

.sg-tag-format {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.35;
  border: 1px solid #d7e0eb;
  background: #f3f6fa;
  color: #52667d;
}

.sg-tag-format-online {
  background: #edf4fc;
  color: #315d91;
  border-color: #c7d9ec;
}

.sg-tag-format-in_person {
  background: #f2f4f7;
  color: #526174;
  border-color: #d7dfe8;
}

.sg-tag-format-mixed,
.sg-tag-format-by_group {
  background: #f3f6fa;
  color: #52667d;
  border-color: #d7e0eb;
}

/* BADGES D'INCLUSION PÉDAGOGIQUE (Attestation, PDF, Replay) */
.sg-perks-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.sg-perks-hero {
  margin: -4px 0 18px;
}

.sg-perk-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.3;
  border: 1px solid transparent;
}

.sg-perk-badge i {
  font-size: 0.8rem;
  flex-shrink: 0;
}

.sg-perk-cert {
  background: #faf5e8;
  border-color: #e7d9ae;
  color: #7e6424;
}

.sg-perk-cert i {
  color: #907129;
}

.sg-perk-pdf {
  background: #f4f6f8;
  border-color: #dce2e9;
  color: #526174;
}

.sg-perk-pdf i {
  color: #64748b;
}

.sg-perk-replay {
  background: #edf4fc;
  border-color: #c7d9ec;
  color: #315d91;
}

.sg-perk-replay i {
  color: #315d91;
}

/* Statuts d'inscription */
.sg-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.sg-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.sg-status-open {
  background: #ecfdf5;
  color: #166534;
  border: 1px solid #b9e5c8;
}

.sg-status-open .sg-status-dot {
  background: #29a566;
  box-shadow: 0 0 0 2px rgba(41, 165, 102, 0.14);
}

.sg-status-waitlist {
  background: #fff7e6;
  color: #92400e;
  border: 1px solid #f2cf86;
}

.sg-status-closed {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #d7dee8;
}

/* Titre & extrait */
.sg-card-title {
  font-size: 1.22rem;
  line-height: 1.35;
  margin: 0 0 8px;
  font-weight: 800;
}

.sg-card-title a {
  color: var(--sg-ink);
  transition: color 0.15s ease;
}

.sg-card-title a:hover {
  color: #365b91;
}

.sg-excerpt {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #475569;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Formateur / Intervenant */
.sg-host {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid var(--sg-line-light);
  border-radius: var(--sg-radius-md);
  margin-bottom: 16px;
}

.sg-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 1.5px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

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

.sg-avatar-fallback {
  font-size: 0.85rem;
  font-weight: 800;
  color: #365b91;
}

.sg-host-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.sg-host-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--sg-muted);
}

.sg-host-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--sg-ink) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sg-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #166534;
  background: #ecfdf5;
  border: 1px solid #b9e5c8;
  padding: 1px 6px;
  border-radius: 999px;
  margin-inline-start: 6px;
}

.sg-verified-badge i,
.sg-verified-icon {
  color: #166534;
}

/* Faits clés / Horaires / Cohortes */
.sg-card-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--sg-line-light);
}

.sg-fact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #475569;
  min-width: 0;
}

.sg-fact-item i {
  color: #64748b;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.sg-fact-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sg-card .sg-fact-date {
  background: #fbf4ed;
  border: 1px solid #edddca;
  border-radius: 5px;
  padding: 5px 7px;
}

.sg-card .sg-fact-date i {
  color: #9a6132;
}

.sg-card .sg-fact-date .sg-fact-text {
  color: #784b29;
  font-weight: 650;
}

/* Footer de carte */
.sg-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.sg-price-badge {
  display: inline-flex;
  flex-direction: column;
}

.sg-price-badge small {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--sg-muted);
  text-transform: uppercase;
}

.sg-price-badge strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--sg-ink);
}

.sg-price-free {
  background: #ecfdf5;
  color: #166534;
  border: 1px solid #b9e5c8;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sg-price-free i,
.sg-price-free-large,
.sg-price-free-large i,
.sg-free-text {
  color: #166534;
}

.sg-card .sg-card-action {
  border-radius: 0 !important;
  background: #326bc0;
  color: #ffffff !important;
  border: 1px solid #326bc0;
  box-shadow: none !important;
  min-height: 38px;
  padding: 8px 16px;
  font-size: 0.86rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  margin-inline-start: auto;
  text-decoration: none !important;
}

.sg-card .sg-card-action:hover {
  background: #285aa4;
  border-color: #285aa4;
  color: #ffffff !important;
}

/* ==========================================================================
   4. DETAIL D'UNE FORMATION (FICHE COMPLETE)
   ========================================================================== */
.sg-detail-hero,
.sg-program-detail-hero {
  background: #f7f9fc;
  border: 1.5px solid var(--sg-line);
  border-top: 3px solid #809abc;
  border-radius: 0 !important;
  padding: 32px 36px;
  margin-bottom: 24px;
  box-shadow: var(--sg-shadow-md);
}

.sg-program-detail-hero .sg-detail-title {
  color: #294775;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.25;
  margin: 14px 0 20px;
}

.sg-detail-host-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.sg-avatar-lg {
  width: 52px;
  height: 52px;
}

.sg-avatar-lg .sg-avatar-fallback {
  font-size: 1.05rem;
}

.sg-host-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sg-host-name-lg {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--sg-ink) !important;
}

.sg-view-profile-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: #365b91 !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
}

.sg-view-profile-link:hover {
  text-decoration: underline;
}

.sg-mobile-join {
  display: none;
  margin-inline-start: auto;
}

/* Highlights Grid Formations */
.sg-highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.sg-highlight-card {
  background: #ffffff;
  border: 1.5px solid var(--sg-line);
  border-radius: var(--sg-radius-lg);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--sg-shadow-sm);
}

.sg-highlights-grid .sg-highlight-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--sg-radius-md);
  background: #f0f4fa;
  color: #526b91;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.sg-highlights-grid .sg-highlight-date {
  border-color: #e5d6c4;
  background: #fffcf8;
}

.sg-highlights-grid .sg-highlight-date .sg-highlight-icon {
  background: #f7ecdf;
  color: #965c2e;
}

.sg-highlights-grid .sg-highlight-date .sg-highlight-info strong {
  color: #784b29;
}

.sg-highlight-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}

.sg-highlight-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--sg-muted);
  margin-bottom: 3px;
}

.sg-highlight-info strong {
  font-size: 0.96rem;
  color: var(--sg-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sg-highlight-info small {
  font-size: 0.76rem;
  color: var(--sg-muted);
  margin-top: 2px;
}

/* Grille Détail (2 colonnes) */
.sg-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: start;
}

.sg-panel {
  background: #ffffff;
  border: 1.5px solid var(--sg-line);
  border-radius: var(--sg-radius-xl);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--sg-shadow-sm);
}

.sg-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--sg-line-light);
}

.sg-panel-icon {
  color: #365b91;
  font-size: 1.15rem;
}

.sg-panel-header h2 {
  font-size: 1.28rem;
  margin: 0;
}

.sg-prose {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--sg-ink-soft);
  word-wrap: break-word;
}

/* OBJECTIFS PÉDAGOGIQUES (Spécifique aux Formations) */
.sg-objectives-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.sg-objective-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sg-ink-soft);
  line-height: 1.45;
}

.sg-objective-item i {
  color: #365b91;
  font-size: 0.95rem;
  margin-top: 3px;
  flex-shrink: 0;
}

/* SYLLABUS / PROGRAMME DÉTAILLÉ (Spécifique aux Formations) */
.sg-syllabus-list {
  display: grid;
  gap: 12px;
}

.sg-syllabus-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid var(--sg-line);
  border-inline-start: 3.5px solid #365b91;
  border-radius: var(--sg-radius-md);
}

.sg-syllabus-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #edf3fc;
  border: 1px solid #a2c1ed;
  color: #153b70;
  font-size: 0.82rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.sg-syllabus-text {
  font-size: 0.93rem;
  color: var(--sg-ink);
  font-weight: 600;
  line-height: 1.55;
}

/* Callout déontologique & engagement */
.sg-privacy-callout {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 12px 16px;
  background: #edf3fc;
  border: 1px solid #a2c1ed;
  border-radius: var(--sg-radius-md);
  font-size: 0.86rem;
  color: #132c4e;
  font-weight: 600;
  line-height: 1.45;
}

.sg-privacy-callout i {
  color: #153b70;
  font-size: 1rem;
  flex-shrink: 0;
}

.sg-privacy-callout p {
  margin: 0;
}

/* Table des faits structurée */
.sg-facts-table {
  display: grid;
  gap: 0;
  margin: 0;
}

.sg-fact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--sg-line-light);
  gap: 18px;
}

.sg-fact-row:last-child {
  border-bottom: none;
}

.sg-fact-row dt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sg-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.sg-fact-row dt i {
  color: #365b91;
  font-size: 0.85rem;
  width: 16px;
  text-align: center;
}

.sg-fact-row dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--sg-ink);
  text-align: end;
  max-width: 65%;
  word-break: break-word;
}

/* ==========================================================================
   5. SIDEBAR D'INSCRIPTION (#participer)
   ========================================================================== */
.sg-detail-aside {
  position: sticky;
  top: 90px;
}

.sg-join {
  background: #ffffff;
  border: 2px solid var(--sg-teal-border);
  box-shadow: var(--sg-shadow-md);
  border-radius: var(--sg-radius-xl);
  padding: 28px;
  scroll-margin-top: 110px;
}

.sg-join-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--sg-line-light);
  margin-bottom: 18px;
}

.sg-join-price-wrap {
  display: flex;
  flex-direction: column;
}

.sg-join-price-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sg-muted);
}

.sg-join-price {
  font-size: 1.45rem;
  color: var(--sg-ink);
  font-weight: 800;
  line-height: 1.2;
}

.sg-join-price small {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sg-muted);
}

.sg-price-free-large {
  color: #143768;
  font-size: 1.3rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sg-price-free-large i {
  color: #2059a9;
}

.sg-trust-bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: var(--sg-radius-md);
  border: 1px solid var(--sg-line);
}

.sg-bullet-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sg-ink-soft);
}

.sg-bullet-item i {
  color: #365b91;
  font-size: 0.85rem;
}

.sg-join-title {
  font-size: 1.2rem;
  margin: 0 0 16px;
}

.sg-form {
  display: grid;
  gap: 16px;
}

.sg-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sg-form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sg-ink-soft);
}

.sg-textarea-wrap {
  position: relative;
}

.sg-textarea-wrap textarea {
  padding: 10px 14px !important;
  min-height: 84px;
  resize: vertical;
}

.sg-input-help {
  font-size: 0.76rem;
  color: var(--sg-muted);
  margin: 4px 0 0;
  line-height: 1.4;
}

.sg-check-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin-top: 4px;
}

.sg-check-consent input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: #365b91;
  flex-shrink: 0;
  cursor: pointer;
}

.sg-consent-text {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--sg-ink-soft);
}

.sg-join-btn {
  width: 100%;
  height: 48px;
  font-size: 1rem !important;
  margin-top: 6px;
}

.sg-closed-notice {
  text-align: center;
  padding: 24px 16px;
  background: #f8fafc;
  border-radius: var(--sg-radius-md);
  border: 1px dashed var(--sg-line);
}

.sg-closed-notice i {
  font-size: 2rem;
  color: #94a3b8;
  margin-bottom: 8px;
}

.sg-closed-notice p {
  margin: 0;
  font-weight: 600;
  color: var(--sg-muted);
}

.sg-shell .sg-privacy-note,
.sg-privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--sg-muted);
  margin: 18px 0 0 !important;
  padding-top: 14px;
  border-top: 1px solid var(--sg-line-light);
  line-height: 1.5;
}

.sg-shell .sg-privacy-note i,
.sg-privacy-note i {
  color: #94a3b8;
  margin-top: 3px;
  flex-shrink: 0;
}

/* ==========================================================================
   6. SUIVI DE DEMANDE (REQUEST.PHP)
   ========================================================================== */
.sg-tracking-wrap {
  max-width: 740px;
  margin: 0 auto;
}

.sg-tracking-card {
  padding: 36px 40px;
}

.sg-tracking-header {
  text-align: center;
  margin-bottom: 28px;
}

.sg-tracking-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.sg-tracking-accepted .sg-tracking-badge {
  background: #edf3fc;
  color: #102d55;
  border: 1px solid #71a1e4;
}

.sg-tracking-pending .sg-tracking-badge {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.sg-tracking-declined .sg-tracking-badge {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.sg-tracking-cancelled .sg-tracking-badge {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.sg-tracking-title {
  font-size: 1.5rem;
  margin: 0 0 8px;
}

.sg-tracking-group-title {
  font-size: 1.05rem;
  color: var(--sg-muted);
  font-weight: 600;
  margin: 0;
}

.sg-stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0;
  position: relative;
}

.sg-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.sg-step-marker {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border: 2px solid #cbd5e1;
  color: #94a3b8;
  font-weight: 800;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.sg-step.is-complete .sg-step-marker {
  background: #365b91;
  border-color: #365b91;
  color: #ffffff;
}

.sg-step.is-active .sg-step-marker {
  background: #ffffff;
  border-color: #365b91;
  color: #365b91;
  box-shadow: 0 0 0 4px rgba(54, 91, 145, 0.15);
}

.sg-step-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
  line-height: 1.3;
}

.sg-step.is-complete .sg-step-label,
.sg-step.is-active .sg-step-label {
  color: var(--sg-ink);
}

.sg-tracking-intro {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--sg-ink-soft);
  text-align: center;
  margin: 0 auto 24px;
  max-width: 580px;
}

.sg-link-box {
  background: #f8fafc;
  border: 1.5px solid var(--sg-line);
  border-radius: var(--sg-radius-lg);
  padding: 20px;
  margin-bottom: 24px;
}

.sg-link-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sg-link-label-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sg-ink-soft);
}

.sg-copy-input-wrap {
  display: flex;
  gap: 8px;
}

.sg-copy-input-wrap input {
  padding: 10px 14px !important;
  font-size: 0.86rem !important;
  background: #f8fafc !important;
  color: #334155 !important;
  border-color: #cbd5e1 !important;
  font-family: monospace;
}

.sg-copy-btn {
  flex-shrink: 0;
  padding: 10px 18px !important;
  min-height: 46px !important;
}

.sg-copy-btn.is-copied {
  background: #365b91 !important;
  color: #ffffff !important;
  border-color: #365b91 !important;
}

/* Informations pratiques acceptées / Accès Webinaire ou Salle */
.sg-practical-card {
  margin: 28px 0;
  padding: 24px;
  background: linear-gradient(135deg, #edf3fc 0%, #f1f6fc 100%);
  border: 2px solid #71a1e4;
  border-radius: var(--sg-radius-lg);
}

.sg-practical-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.sg-practical-icon {
  font-size: 1.6rem;
  color: #194582;
  margin-top: 2px;
}

.sg-practical-header h3 {
  font-size: 1.15rem;
  margin: 0 0 4px;
  color: #102d55;
}

.sg-practical-time {
  margin: 0;
  font-size: 0.95rem;
  color: #143768;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sg-practical-detail {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #abc7ef;
}

.sg-practical-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #102d55;
  margin-bottom: 6px;
}

.sg-practical-content {
  margin: 0;
  font-size: 0.95rem;
  color: #132c4e;
  font-weight: 600;
}

.sg-video-btn {
  margin-top: 6px;
  background: #194582 !important;
  font-size: 0.95rem !important;
}

.sg-video-btn:hover {
  background: #143768 !important;
}

.sg-cancel-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--sg-line-light);
  display: flex;
  justify-content: center;
}

.sg-cancel-btn {
  color: #dc2626 !important;
  border-color: #fca5a5 !important;
}

.sg-cancel-btn:hover {
  background: #fef2f2 !important;
  color: #b91c1c !important;
  border-color: #f87171 !important;
}

.sg-tracking-footer {
  margin-top: 24px;
  text-align: center;
}

.sg-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #365b91;
}

/* ==========================================================================
   7. SECTIONS EDUCATIVES & CALLOUT PRO
   ========================================================================== */
.sg-how {
  padding: 40px 0 20px;
}

.sg-how-header {
  text-align: center;
  margin-bottom: 28px;
}

.sg-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #365b91;
  background: #edf3fc;
  border: 1px solid #a2c1ed;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.sg-how-header h2 {
  font-size: 1.6rem;
  margin: 0;
}

.sg-how-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.sg-how-card {
  background: #ffffff;
  border: 1.5px solid var(--sg-line);
  border-radius: var(--sg-radius-lg);
  padding: 22px 22px;
  box-shadow: var(--sg-shadow-sm);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sg-how-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sg-shadow-md);
  border-color: #cbd5e1;
}

.sg-how-step-num {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 2rem;
  font-weight: 900;
  color: #f1f5f9;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

[dir="rtl"] .sg-how-step-num {
  right: auto;
  left: 18px;
}

.sg-how-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-inline-end: 28px;
}

.sg-how-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--sg-radius-md);
  background: #edf3fc;
  color: #365b91;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.12rem;
  flex-shrink: 0;
}

.sg-how-card h3 {
  font-size: 1.02rem;
  margin: 0 0 8px;
  color: var(--sg-ink);
  line-height: 1.3;
}

.sg-how-card-head h3 {
  margin: 0;
}

.sg-how-card p {
  font-size: 0.88rem;
  color: var(--sg-ink-soft);
  margin: 0;
  line-height: 1.55;
}

/* Callout Professionnel Formateur */
.sg-callout {
  margin-top: 36px;
  padding: 32px 36px;
  background: #f5f8fc;
  border: 1px solid #dce5ef;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: #334155;
  box-shadow: none;
}

.sg-callout-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--sg-radius-lg);
  background: #eaf0f8;
  color: #526f97;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.sg-callout-content {
  flex: 1;
}

.sg-callout-content h2 {
  font-size: 1.35rem;
  color: #294775;
  margin: 0 0 6px;
}

.sg-callout-content p {
  margin: 0;
  font-size: 0.94rem;
  color: #607086;
  max-width: 620px;
  line-height: 1.5;
}

.sg-shell .sg-callout-btn,
.sg-shell .sg-callout .sg-callout-btn,
.sg-shell .sg-button.sg-callout-btn,
.sg-callout-btn {
  background: #eaf1fb !important;
  color: #31558b !important;
  border: 1px solid #c5d5ec !important;
  box-shadow: none !important;
  transform: none !important;
}

.sg-shell .sg-callout-btn:hover,
.sg-shell .sg-callout .sg-callout-btn:hover,
.sg-shell .sg-button.sg-callout-btn:hover,
.sg-callout-btn:hover {
  background: #dfe9f7 !important;
  color: #294775 !important;
}

/* État vide */
.sg-empty {
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: var(--sg-radius-xl);
  padding: 56px 24px;
  text-align: center;
  margin-bottom: 48px;
}

.sg-empty-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #edf3fc;
  color: #365b91;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 18px;
}

.sg-empty h2 {
  font-size: 1.35rem;
  margin: 0 0 8px;
}

.sg-empty p {
  max-width: 500px;
  margin: 0 auto 22px;
  color: var(--sg-muted);
  font-size: 0.92rem;
}

/* ==========================================================================
   8. FORMULAIRES PRATICIEN & ADMIN DE GESTION DES FORMATIONS
   ========================================================================== */
.sg-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sg-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.sg-panel legend {
  padding: 0 8px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--sg-ink);
}

.sg-narrow {
  max-width: 680px;
  margin: 20px auto;
}

.sg-field-error {
  color: #dc2626;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 3px;
}

.sg-panel.sg-actions > label {
  flex: 1;
  min-width: 190px;
}

/* Onglets multilingues */
.sg-i18n-panel legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sg-i18n-panel legend i {
  color: #365b91;
}

.sg-i18n-intro {
  margin: 0 0 16px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.sg-lang-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sg-line);
}

.sg-lang-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  color: var(--sg-ink-soft);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.sg-lang-tab:hover {
  border-color: #365b91;
  color: #294775;
  background: #f1f6fc;
}

.sg-lang-tab.is-active {
  background: #294775;
  border-color: #294775;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(41, 71, 117, 0.18);
}

.sg-lang-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.08);
  color: inherit;
}

.sg-lang-tab.is-active .sg-lang-code {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.sg-lang-err-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sg-danger);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
}

.sg-lang-pane[hidden] {
  display: none !important;
}

/* ==========================================================================
   9. RESPONSIVE DESIGN & MOBILE OPTIMISATIONS
   ========================================================================== */
@media (max-width: 1200px) {
  .sg-filters.sg-filters-programs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 950px) {
  .sg-grid {
    grid-template-columns: 1fr;
  }
  .sg-highlights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sg-detail-grid {
    grid-template-columns: 1fr;
  }
  .sg-detail-aside {
    position: static;
  }
  .sg-how-cards {
    grid-template-columns: 1fr;
  }
  .sg-callout {
    flex-direction: column;
    text-align: center;
    padding: 28px;
  }
  .sg-callout-icon {
    margin: 0 auto;
  }
  .sg-objectives-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .sg-shell {
    padding: 12px 14px 48px;
  }
  .sg-hero.sg-hero-programs {
    padding: 20px 18px;
    min-height: 0;
    gap: 16px;
    border-radius: 0 !important;
    flex-direction: column;
    align-items: stretch;
  }
  .sg-hero-programs .sg-hero-content {
    max-width: 100%;
  }
  .sg-hero.sg-hero-programs::before {
    opacity: 0.34;
  }
  .sg-hero-programs .sg-hero-title {
    font-size: 1.35rem;
  }
  .sg-hero-programs .sg-hero-subtitle {
    font-size: 0.85rem;
    margin-bottom: 12px;
  }
  .sg-hero-programs .sg-hero-side {
    align-self: flex-start;
  }
  .sg-hero-programs .sg-hero-pro-btn {
    min-height: 40px !important;
  }
  .sg-hero-programs .sg-trust-pill {
    font-size: 0.68rem;
    padding: 4px 7px;
  }
  .sg-detail-hero {
    padding: 20px 18px;
  }
  .sg-detail-title {
    font-size: 1.45rem;
  }
  .sg-panel {
    padding: 20px 18px;
  }
  .sg-tracking-card {
    padding: 24px 18px;
  }
}

@media (max-width: 640px) {
  .sg-filters.sg-filters-programs {
    grid-template-columns: 1fr;
  }
  .sg-filters.sg-filters-programs .sg-filter-field {
    grid-column: span 1 !important;
  }
  .sg-filters.sg-filters-programs .sg-toggle-field .sg-toggle-box {
    width: 100%;
  }
  .sg-filters.sg-filters-programs .sg-submit-btn {
    width: 100%;
  }
  .sg-card {
    padding: 18px;
  }
  .sg-card-facts {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .sg-callout {
    padding: 20px 16px;
    margin-top: 22px;
    gap: 14px;
    border-radius: var(--sg-radius-lg);
  }
  .sg-callout-icon {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }
  .sg-callout-content h2 {
    font-size: 1.15rem;
  }
  .sg-callout-content p {
    font-size: 0.85rem;
  }
  .sg-callout-btn {
    width: 100%;
  }
  .sg-mobile-join {
    display: inline-flex;
    width: 100%;
    margin-top: 10px;
  }
  .sg-stepper {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .sg-copy-input-wrap {
    flex-direction: column;
  }
  .sg-copy-btn {
    width: 100%;
  }
  .sg-lang-tabs {
    flex-direction: column;
  }
  .sg-form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Mobile programme details : fiche formateur et options */
  .sg-program-detail-hero {
    padding: 16px;
    margin-bottom: 14px;
  }
  .sg-program-detail-hero > .sg-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .sg-program-detail-hero .sg-tags {
    width: 100%;
    gap: 5px;
    flex-wrap: wrap;
  }
  .sg-program-detail-hero .sg-tag {
    font-size: 0.68rem;
    padding: 4px 7px;
    max-width: 100%;
    line-height: 1.45;
  }
  .sg-program-detail-hero .sg-tag-format {
    order: 3;
  }
  .sg-program-detail-hero .sg-status-pill {
    font-size: 0.68rem;
    padding: 5px 9px;
    line-height: 1.4;
  }
  .sg-program-detail-hero .sg-detail-title {
    font-size: 1.25rem;
    line-height: 1.45;
    margin: 12px 0;
  }
  .sg-program-detail-hero .sg-perks-hero {
    gap: 5px;
    margin-block: 0 12px;
  }
  .sg-program-detail-hero .sg-perk-badge {
    font-size: 0.68rem;
    padding: 4px 7px;
  }
  .sg-program-detail-hero .sg-detail-host-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    gap: 10px 12px;
  }
  .sg-program-detail-hero .sg-avatar-lg {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }
  .sg-program-detail-hero .sg-avatar-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .sg-program-detail-hero .sg-host-meta {
    min-width: 0;
  }
  .sg-program-detail-hero .sg-host-sub {
    font-size: 0.68rem;
  }
  .sg-program-detail-hero .sg-host-title-line {
    gap: 5px;
  }
  .sg-program-detail-hero .sg-host-name-lg {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  .sg-program-detail-hero .sg-verified-badge {
    font-size: 0.62rem;
    padding: 3px 6px;
    line-height: 1.4;
  }
  .sg-program-detail-hero .sg-view-profile-link {
    font-size: 0.73rem;
    line-height: 1.5;
  }
  .sg-program-detail-hero .sg-mobile-join {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 0.82rem;
    margin: 4px 0 0;
    box-sizing: border-box;
  }
  .sg-program-highlights {
    gap: 8px;
    margin-bottom: 14px;
  }
  .sg-program-highlights .sg-highlight-card {
    padding: 12px;
    gap: 10px;
    border-radius: 12px;
  }
  .sg-program-highlights .sg-highlight-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 9px;
    font-size: 0.95rem;
  }
  .sg-program-highlights .sg-highlight-label {
    font-size: 0.65rem;
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: none;
  }
  .sg-program-highlights .sg-highlight-info strong {
    font-size: 0.88rem;
    line-height: 1.5;
  }
  .sg-program-highlights .sg-highlight-info small {
    font-size: 0.75rem;
    line-height: 1.6;
    margin-top: 3px;
  }
}

@media (max-width: 460px) {
  .sg-highlights-grid {
    grid-template-columns: 1fr;
  }
  .sg-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .sg-card-action {
    width: 100%;
    margin-inline-start: 0;
  }
}
