/* ==========================================================================
   MarocPsy — Groupes de Soutien & Espace Communautaire
   Design Médical & UX Apaisante (Teal / Ardoise / Bienveillance)
   ========================================================================== */

.sg-shell {
  --sg-teal: #1a4787;
  --sg-teal-dark: #153b70;
  --sg-teal-light: #f1f6fc;
  --sg-teal-border: #d1e0f6;
  --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;

  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 de base */
.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 #215aab;
  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: var(--sg-teal);
  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: 0 2px 8px rgba(26,71,135, 0.22);
}

.sg-shell .sg-button:hover {
  background: var(--sg-teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(26,71,135, 0.32);
}

.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 */
.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: #edf3fc;
  border: 1px solid #abc7ef;
  color: #102d55;
}

.sg-notice i {
  color: #2059a9;
  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 (Style minimaliste identique à Villes & Profils Praticiens) */
.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;
  gap: 0 !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 (CATALOGUE) — VERSION COMPACTE & OPTIMISÉE
   ========================================================================== */
.sg-hero {
  background-color: #ffffff;
  background-image: 
    linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.94) 30%, rgba(255, 255, 255, 0.65) 52%, rgba(255, 255, 255, 0.10) 75%, transparent 100%),
    url('../img/groupesoutien.webp');
  background-position: center left, right center;
  background-size: cover;
  background-repeat: no-repeat;
  border: 1px solid rgba(26,71,135, 0.18);
  border-left: 3.5px solid var(--sg-teal);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 4px 18px -4px rgba(15, 23, 42, 0.05);
  position: relative;
  overflow: hidden;
  min-height: 190px;
}

[dir="rtl"] .sg-hero {
  border-left: 1px solid rgba(26,71,135, 0.18);
  border-right: 3.5px solid var(--sg-teal);
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  --sg-hero-image: url('../img/groupesoutien.webp');
  background-image: none;
}

.sg-hero-programs {
  background-image: 
    linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.94) 30%, rgba(255, 255, 255, 0.65) 52%, rgba(255, 255, 255, 0.10) 75%, transparent 100%),
    url('../img/formations.webp');
}

[dir="rtl"] .sg-hero-programs {
  --sg-hero-image: url('../img/formations.webp');
  background-image: none;
}

[dir="rtl"] .sg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.94) 30%, rgba(255, 255, 255, 0.65) 52%, rgba(255, 255, 255, 0.10) 75%, transparent 100%),
    var(--sg-hero-image);
  background-position: center left, right center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scaleX(-1);
  pointer-events: none;
}

.sg-hero::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33,90,171, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

[dir="rtl"] .sg-hero::after {
  right: auto;
  left: -50px;
}

.sg-hero-content {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.sg-hero-head-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.sg-hero-badge-wrap {
  margin-bottom: 6px;
}

.sg-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  border: 1px solid #a2c1ed;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #153b70;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.sg-hero-title {
  font-size: clamp(1.4rem, 2.3vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--sg-ink);
  font-weight: 800;
}

.sg-hero-subtitle {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #334155;
  margin: 0 0 14px;
  max-width: 700px;
  font-weight: 500;
}

.sg-trust-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.sg-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sg-ink-soft);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.sg-trust-pill i {
  color: var(--sg-teal);
  font-size: 0.8rem;
}

.sg-hero-side {
  flex-shrink: 0;
  align-self: flex-start;
  position: relative;
  z-index: 2;
}

.sg-hero-pro-btn {
  white-space: nowrap;
  min-height: 40px !important;
  padding: 8px 16px !important;
  font-size: 0.85rem !important;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(8px);
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.2s ease !important;
}

.sg-hero-pro-btn:hover {
  background: #ffffff !important;
  border-color: #94a3b8 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* ==========================================================================
   2. RECHERCHE & FILTRES MODERNES (AVEC VILLE PAR RECHERCHE)
   ========================================================================== */
.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 {
  display: grid;
  grid-template-columns: 1.6fr 1.35fr 1.1fr 1fr 0.9fr auto auto;
  gap: 10px;
  align-items: flex-end;
}

.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: var(--sg-teal);
  box-shadow: 0 0 0 3px rgba(26,71,135, 0.15);
  outline: none;
}

/* Champ Ville par Recherche (Autocomplete) */
.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: var(--sg-teal-dark);
  cursor: pointer;
  text-align: start;
  transition: background 0.15s ease;
}

.sg-city-opt-all:hover,
.sg-city-opt-all.is-selected {
  background: var(--sg-teal-light);
}

.sg-city-opt-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.sg-city-opt-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--sg-ink);
  transition: background 0.12s ease;
}

.sg-city-opt-item:hover,
.sg-city-opt-item.is-active {
  background: #f1f5f9;
}

.sg-city-opt-item.is-selected {
  background: var(--sg-teal-light);
  color: var(--sg-teal-dark);
  font-weight: 700;
}

.sg-city-opt-name {
  font-weight: 600;
}

.sg-city-opt-sub {
  font-size: 0.76rem;
  color: var(--sg-muted);
}

.sg-city-empty {
  padding: 14px;
  text-align: center;
  font-size: 0.84rem;
  color: var(--sg-muted);
}

.sg-toggle-field {
  align-self: flex-end;
  min-width: 0;
}

.sg-check-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  width: 100%;
  min-width: 0;
}

.sg-check-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sg-toggle-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 14px;
  border: 1.5px solid var(--sg-line);
  border-radius: var(--sg-radius-md);
  background: #ffffff;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--sg-ink-soft);
  transition: all 0.15s ease;
  white-space: nowrap;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.sg-toggle-box span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.sg-toggle-box i {
  color: var(--sg-muted);
  transition: color 0.15s ease;
}

.sg-check-toggle input:checked + .sg-toggle-box {
  background: var(--sg-teal-light);
  border-color: #669ae2;
  color: #153b70;
}

.sg-check-toggle input:checked + .sg-toggle-box i {
  color: var(--sg-teal);
}

.sg-filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sg-submit-btn {
  height: 46px;
}

.sg-reset-btn {
  height: 46px;
  padding: 10px 14px !important;
}

/* Quick Topic Chips */
.sg-quick-topics {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--sg-line-light);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sg-quick-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sg-muted);
  white-space: nowrap;
}

.sg-chips-track {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.sg-chips-track::-webkit-scrollbar {
  display: none;
}

.sg-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--sg-line-light);
  border: 1px solid transparent;
  color: var(--sg-ink-soft) !important;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.sg-chip i {
  font-size: 0.8rem;
  color: var(--sg-muted);
}

.sg-chip:hover {
  background: #e2e8f0;
  color: var(--sg-ink) !important;
  transform: translateY(-1px);
}

.sg-chip.is-active {
  background: var(--sg-teal-light);
  border-color: #669ae2;
  color: var(--sg-teal-dark) !important;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(26,71,135, 0.12);
}

.sg-chip.is-active i {
  color: var(--sg-teal);
}

/* Note d'information sur la participation & rôle d'intermédiaire */
.sg-intermediary-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 16px;
  margin-bottom: 18px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-inline-start: 3.5px solid var(--sg-teal);
  border-radius: var(--sg-radius-sm);
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--sg-ink-soft);
}

.sg-intermediary-note p {
  margin: 0;
}

.sg-intermediary-note strong {
  color: var(--sg-ink);
  font-weight: 700;
}

.sg-intermediary-icon {
  color: var(--sg-teal);
  font-size: 0.95rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.sg-intermediary-note-compact {
  padding: 10px 12px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  line-height: 1.45;
  background: var(--sg-teal-light);
  border-color: #a2c1ed;
}

/* Barre d'état des résultats */
.sg-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
  padding: 0 4px;
}

.sg-results-count {
  font-size: 0.95rem;
  color: var(--sg-ink-soft);
}

.sg-results-count strong {
  color: var(--sg-teal-dark);
  font-size: 1.1rem;
}

.sg-active-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.sg-active-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sg-muted);
}

.sg-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid var(--sg-line);
  color: var(--sg-ink) !important;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.sg-tag-pill i {
  font-size: 0.7rem;
  color: var(--sg-muted);
}

.sg-tag-pill:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c !important;
}

.sg-tag-pill:hover i {
  color: #ef4444;
}

.sg-clear-all {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sg-teal-dark) !important;
  margin-inline-start: 6px;
}

.sg-clear-all:hover {
  text-decoration: underline;
}

/* ==========================================================================
   3. CARTES DES GROUPES (GRILLE)
   ========================================================================== */
.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-topic,
.sg-tag-type,
.sg-tag-audience {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  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-topic i,
.sg-tag-type i,
.sg-tag-audience i,
.sg-tag-format i {
  font-size: 0.76rem;
  flex-shrink: 0;
}

.sg-tag-type {
  background: var(--sg-teal-light);
  color: var(--sg-teal-dark);
  border-color: #a2c1ed;
}

.sg-tag-audience {
  background: #f8fafc;
  color: #475569;
  border-color: #e2e8f0;
}

.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 transparent;
}

.sg-tag-format-online {
  background: #edf3fc;
  color: #143768;
  border-color: #abc7ef;
}

.sg-tag-format-in_person {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.sg-tag-format-mixed {
  background: #f5f3ff;
  color: #6d28d9;
  border-color: #ddd6fe;
}

/* Badges d'inclusion (Attestation, Supports 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: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}

.sg-perk-cert i {
  color: #d97706;
}

.sg-perk-pdf {
  background: #f0f9ff;
  color: #0369a1;
  border-color: #bae6fd;
}

.sg-perk-pdf i {
  color: #0284c7;
}

.sg-perk-replay {
  background: #faf5ff;
  color: #6b21a8;
  border-color: #e9d5ff;
}

.sg-perk-replay i {
  color: #7c3aed;
}

.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: #edf3fc;
  color: #102d55;
  border: 1px solid #abc7ef;
}

.sg-status-open .sg-status-dot {
  background: #2059a9;
  box-shadow: 0 0 0 2px rgba(32,89,169, 0.35);
  animation: sgPulse 2s infinite;
}

@keyframes sgPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.sg-status-waitlist {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.sg-status-waitlist .sg-status-dot {
  background: #f59e0b;
}

.sg-status-closed {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

.sg-status-closed .sg-status-dot {
  background: #94a3b8;
}

.sg-card-title {
  font-size: 1.2rem;
  line-height: 1.38;
  margin: 0 0 14px;
}

.sg-card-title a {
  color: var(--sg-ink);
  text-decoration: none;
  transition: color 0.15s ease;
}

.sg-card:hover .sg-card-title a {
  color: var(--sg-teal-dark);
}

/* Host / Praticien */
.sg-host {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.sg-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #e0f2fe;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sg-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a4787, #153b70);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.sg-host-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
  gap: 2px;
}

.sg-host-sub {
  font-size: 0.74rem;
  color: var(--sg-muted);
  font-weight: 500;
}

.sg-host-name {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--sg-ink) !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sg-verified-icon {
  color: #1a4787;
  font-size: 0.84rem;
  flex-shrink: 0;
}

.sg-excerpt {
  font-size: 0.89rem;
  color: var(--sg-ink-soft);
  line-height: 1.6;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Faits clés / Info items */
.sg-card-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  padding: 14px 0;
  border-top: 1px solid var(--sg-line-light);
  border-bottom: 1px solid var(--sg-line-light);
  margin-bottom: 18px;
}

.sg-fact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--sg-ink-soft);
  min-width: 0;
}

.sg-fact-item i {
  color: var(--sg-teal);
  font-size: 0.9rem;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

.sg-fact-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

/* Footer de carte */
.sg-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 2px;
}

.sg-price-badge {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 1.08rem;
  color: var(--sg-ink);
  font-weight: 800;
  min-width: 0;
}

.sg-price-badge small {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sg-muted);
}

.sg-price-free {
  background: #edf3fc;
  border: 1px solid #abc7ef;
  color: #102d55;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sg-price-free i {
  color: #2059a9;
}

.sg-card-action {
  padding: 9px 16px !important;
  font-size: 0.86rem !important;
  min-height: 40px !important;
  border-radius: var(--sg-radius-md) !important;
  margin-inline-start: auto;
}

.sg-action-arrow {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

[dir="rtl"] .sg-action-arrow,
[dir="rtl"] .sg-back-arrow {
  transform: scaleX(-1);
}

.sg-card:hover .sg-action-arrow {
  transform: translateX(4px);
}

[dir="rtl"] .sg-card:hover .sg-action-arrow {
  transform: scaleX(-1) translateX(4px);
}

/* ==========================================================================
   4. DETAIL PAGE (FICHE GROUPE)
   ========================================================================== */
.sg-detail-hero {
  background: #ffffff;
  border: 1.5px solid var(--sg-line);
  border-radius: var(--sg-radius-xl);
  padding: 32px 36px;
  margin-bottom: 24px;
  box-shadow: var(--sg-shadow-md);
}

.sg-detail-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.25;
  margin: 14px 0 20px;
  color: var(--sg-ink);
}

.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-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #edf3fc;
  border: 1px solid #abc7ef;
  color: #102d55;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.sg-view-profile-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sg-teal-dark) !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 (4 boîtes en haut de fiche) */
.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-highlight-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--sg-radius-md);
  background: var(--sg-teal-light);
  color: var(--sg-teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.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: var(--sg-teal);
  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;
}

/* Audience Card */
.sg-audience-card {
  margin-top: 22px;
  background: var(--sg-teal-light);
  border: 1px solid #a2c1ed;
  border-radius: var(--sg-radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.sg-audience-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--sg-teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(26,71,135, 0.15);
}

.sg-audience-content h3 {
  font-size: 0.95rem;
  margin: 0 0 4px;
  color: #153b70;
}

.sg-audience-content p {
  font-size: 0.9rem;
  margin: 0;
  color: #132c4e;
  font-weight: 500;
}

/* 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: var(--sg-teal);
  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;
}

.sg-free-text {
  color: #143768;
  background: #edf3fc;
  border: 1px solid #abc7ef;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.82rem;
}

/* Charte de bienveillance */
.sg-charter-panel {
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

.sg-charter-grid {
  display: grid;
  gap: 16px;
}

.sg-charter-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  border-radius: var(--sg-radius-md);
  background: #f8fafc;
  border: 1px solid var(--sg-line);
}

.sg-charter-item-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--sg-radius-sm);
  background: #ffffff;
  color: var(--sg-teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.sg-charter-item h3 {
  font-size: 0.92rem;
  margin: 0 0 3px;
  color: var(--sg-ink);
}

.sg-charter-item p {
  font-size: 0.86rem;
  margin: 0;
  color: var(--sg-ink-soft);
  line-height: 1.5;
}

/* ==========================================================================
   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: #2059a9;
  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: var(--sg-teal);
  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 #abc7ef;
}

.sg-tracking-accepted .sg-tracking-badge i {
  color: #2059a9;
}

.sg-tracking-waitlist .sg-tracking-badge {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.sg-tracking-waitlist .sg-tracking-badge i {
  color: #f59e0b;
}

.sg-tracking-pending .sg-tracking-badge {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.sg-tracking-pending .sg-tracking-badge i {
  color: #3b82f6;
}

.sg-tracking-neutral .sg-tracking-badge {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.sg-tracking-title {
  font-size: 1.7rem;
  margin: 0 0 6px;
}

.sg-tracking-group-title {
  font-size: 1.2rem;
  color: var(--sg-teal-dark);
  margin: 0 0 12px;
}

.sg-tracking-intro {
  color: var(--sg-muted);
  max-width: 520px;
  margin: 0 auto;
  font-size: 0.95rem;
}

/* Stepper Visuel */
.sg-stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0;
  padding: 20px 14px;
  background: #f8fafc;
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius-lg);
  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: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.sg-step-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sg-muted);
}

.sg-step.is-complete .sg-step-marker {
  background: #2059a9;
  color: #ffffff;
}

.sg-step.is-complete .sg-step-label {
  color: #102d55;
  font-weight: 700;
}

.sg-step.is-active .sg-step-marker {
  background: var(--sg-teal);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(26,71,135, 0.2);
}

.sg-step.is-active .sg-step-label {
  color: var(--sg-teal-dark);
  font-weight: 700;
}

.sg-step.is-disabled .sg-step-marker {
  background: #e2e8f0;
  color: #94a3b8;
}

/* Boîte du lien privé */
.sg-link-box {
  margin: 24px 0;
  padding: 20px;
  background: #ffffff;
  border: 1.5px solid var(--sg-teal-border);
  border-radius: var(--sg-radius-lg);
  box-shadow: var(--sg-shadow-sm);
}

.sg-link-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sg-link-label-text {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--sg-ink-soft);
}

.sg-link-label-text i {
  color: var(--sg-teal);
}

.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: #2059a9 !important;
  color: #ffffff !important;
  border-color: #2059a9 !important;
}

/* Carte informations pratiques acceptées */
.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: var(--sg-teal-dark);
}

/* ==========================================================================
   7. SECTIONS INFORMATIVES CATALOGUE (COMMENT PARTICIPER & PRO CTA)
   ========================================================================== */
.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: var(--sg-teal-dark);
  background: var(--sg-teal-light);
  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: var(--sg-teal-light);
  color: var(--sg-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.12rem;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.sg-how-card-head .sg-how-icon {
  margin-bottom: 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;
}

/* ==========================================================================
   7B. FORMATIONS, ATELIERS & MASTERCLASSES (FILTRES, OBJECTIFS & MODULES)
   ========================================================================== */
.sg-filters.sg-filters-programs {
  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-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: var(--sg-teal);
  font-size: 0.95rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.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 var(--sg-teal);
  border-radius: var(--sg-radius-md);
}

.sg-syllabus-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sg-teal-light);
  border: 1px solid #a2c1ed;
  color: var(--sg-teal-dark);
  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;
}

.sg-privacy-callout {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 12px 16px;
  background: var(--sg-teal-light);
  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: var(--sg-teal-dark);
  font-size: 1rem;
  flex-shrink: 0;
}

.sg-privacy-callout p {
  margin: 0;
}

/* Callout Professionnel */
.sg-callout {
  margin-top: 36px;
  padding: 32px 36px;
  background: #f5f8fc;
  border: 1px solid #dce5ef;
  border-radius: var(--sg-radius-xl);
  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-callout-btn {
  background: #eaf1fb !important;
  color: #31558b !important;
  border-color: #c5d5ec !important;
  box-shadow: none !important;
}

.sg-callout-btn:hover {
  background: #dfe9f7 !important;
  transform: none !important;
}

/* État vide (Empty State) */
.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: var(--sg-teal-light);
  color: var(--sg-teal);
  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. COMPATIBILITÉ PRATICIEN & ADMIN (FORMULAIRES D'ÉDITION & GESTION)
   ========================================================================== */
.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;
}

/* ==========================================================================
   9. RESPONSIVE DESIGN (TABLETTES & MOBILES)
   ========================================================================== */
@media (max-width: 1200px) {
  .sg-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .sg-filters.sg-filters-programs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sg-filters:not(.sg-filters-programs) .sg-query {
    grid-column: 1 / 3;
  }
  .sg-filters:not(.sg-filters-programs) .sg-city-field {
    grid-column: 3 / 4;
  }
  .sg-filters:not(.sg-filters-programs) .sg-toggle-field {
    grid-column: 1 / -1;
  }
  .sg-filters:not(.sg-filters-programs) .sg-filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  .sg-highlights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 950px) {
  .sg-grid {
    grid-template-columns: 1fr;
  }
  .sg-detail-grid {
    grid-template-columns: 1fr;
  }
  .sg-detail-aside {
    position: static;
  }
  .sg-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 18px 20px;
    gap: 16px;
    background-image: 
      linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.88) 45%, rgba(255, 255, 255, 0.35) 75%, rgba(255, 255, 255, 0.08) 100%),
      url('../img/groupesoutien.webp');
    background-position: right center;
    background-size: cover;
  }
  [dir="rtl"] .sg-hero {
    background-position: left center;
    background-image: 
      linear-gradient(225deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.88) 45%, rgba(255, 255, 255, 0.35) 75%, rgba(255, 255, 255, 0.08) 100%),
      url('../img/groupesoutien.webp');
  }
  .sg-hero-programs {
    background-image: 
      linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.88) 45%, rgba(255, 255, 255, 0.35) 75%, rgba(255, 255, 255, 0.08) 100%),
      url('../img/formations.webp');
    background-position: right center;
    background-size: cover;
  }
  [dir="rtl"] .sg-hero-programs {
    background-position: left center;
    background-image: 
      linear-gradient(225deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.88) 45%, rgba(255, 255, 255, 0.35) 75%, rgba(255, 255, 255, 0.08) 100%),
      url('../img/formations.webp');
  }
  .sg-how-cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .sg-objectives-list {
    grid-template-columns: 1fr;
  }
  .sg-filter-card {
    padding: 16px 16px 14px;
    margin-bottom: 18px;
    border-radius: 14px;
  }
  .sg-filters:not(.sg-filters-programs) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .sg-filters:not(.sg-filters-programs) .sg-query,
  .sg-filters:not(.sg-filters-programs) .sg-city-field,
  .sg-filters:not(.sg-filters-programs) .sg-toggle-field,
  .sg-filters:not(.sg-filters-programs) .sg-filter-actions {
    grid-column: 1 / -1;
  }
  .sg-filters:not(.sg-filters-programs) .sg-filter-field:nth-of-type(5) {
    grid-column: 1 / -1;
  }
  .sg-filter-actions {
    display: flex;
    gap: 8px;
    width: 100%;
  }
  .sg-submit-btn,
  .sg-filters.sg-filters-programs .sg-submit-btn {
    flex: 1;
    width: 100%;
    min-height: 40px !important;
  }
}

@media (max-width: 680px) {
  .sg-shell .sg-breadcrumbs,
  .sg-breadcrumbs.psy-profile-breadcrumbs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: thin !important;
    white-space: nowrap !important;
    gap: 7px !important;
    padding-bottom: 4px !important;
  }
  .sg-shell .sg-breadcrumbs > *,
  .sg-breadcrumbs.psy-profile-breadcrumbs > * {
    flex-shrink: 0 !important;
  }
}

@media (max-width: 640px) {
  .sg-shell {
    padding: 10px 12px 42px;
  }
  .sg-hero {
    padding: 18px 16px 16px;
    margin-bottom: 14px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    gap: 12px;
    background-image: 
      linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.85) 45%, rgba(255, 255, 255, 0.30) 72%, rgba(255, 255, 255, 0.05) 100%),
      url('../img/groupesoutien.webp');
    background-position: right center;
    background-size: cover;
  }
  [dir="rtl"] .sg-hero {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    background-position: left center;
    background-image: 
      linear-gradient(225deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.85) 45%, rgba(255, 255, 255, 0.30) 72%, rgba(255, 255, 255, 0.05) 100%),
      url('../img/groupesoutien.webp');
  }
  .sg-hero-programs {
    background-image: 
      linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.85) 45%, rgba(255, 255, 255, 0.30) 72%, rgba(255, 255, 255, 0.05) 100%),
      url('../img/formations.webp');
    background-position: right center;
    background-size: cover;
  }
  [dir="rtl"] .sg-hero-programs {
    background-position: left center;
    background-image: 
      linear-gradient(225deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.85) 45%, rgba(255, 255, 255, 0.30) 72%, rgba(255, 255, 255, 0.05) 100%),
      url('../img/formations.webp');
  }
  .sg-hero-content {
    width: 100%;
  }
  .sg-hero-head-row {
    gap: 8px;
    margin-bottom: 6px;
  }
  .sg-hero-title {
    font-size: 1.25rem;
  }
  .sg-hero-badge {
    font-size: 0.65rem;
    padding: 2px 8px;
  }
  .sg-hero-subtitle {
    font-size: 0.82rem;
    line-height: 1.45;
    margin-bottom: 10px;
  }
  .sg-trust-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding-bottom: 2px;
    width: 100%;
  }
  .sg-trust-pills::-webkit-scrollbar {
    display: none;
  }
  .sg-trust-pill {
    flex-shrink: 0;
    padding: 3px 9px;
    font-size: 0.72rem;
  }
  .sg-hero-side {
    width: 100%;
  }
  .sg-hero-pro-btn {
    width: 100%;
    justify-content: center;
    min-height: 36px !important;
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
  }
  .sg-filter-card {
    padding: 12px 14px 10px;
    margin-bottom: 14px;
    border-radius: 12px;
    border: 1px solid var(--sg-line);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  }
  .sg-filters,
  .sg-filters.sg-filters-programs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .sg-query,
  .sg-city-field,
  .sg-toggle-field,
  .sg-filter-actions {
    grid-column: 1 / -1;
  }
  .sg-filters:not(.sg-filters-programs) .sg-filter-field:nth-of-type(5) {
    grid-column: 1 / -1;
  }
  .sg-filter-field {
    gap: 2px;
  }
  .sg-filter-field label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 1px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }
  .sg-shell :is(input:not([type=checkbox]), select, textarea) {
    min-height: 38px;
    height: 38px;
    padding: 6px 12px 6px 30px;
    font-size: 0.83rem;
    border-radius: 9px;
    border-color: #cbd5e1;
  }
  [dir="rtl"] .sg-shell :is(input:not([type=checkbox]), select, textarea) {
    padding: 6px 30px 6px 12px;
  }
  .sg-input-icon {
    left: 10px;
    font-size: 0.78rem;
  }
  [dir="rtl"] .sg-input-icon {
    left: auto;
    right: 10px;
  }
  .sg-select-arrow {
    right: 10px;
    font-size: 0.7rem;
  }
  [dir="rtl"] .sg-select-arrow {
    right: auto;
    left: 10px;
  }
  .sg-city-dropdown {
    min-width: 0;
  }
  .sg-toggle-box,
  .sg-filters.sg-filters-programs .sg-toggle-field .sg-toggle-box {
    width: 100%;
    height: 36px;
    padding: 0 10px;
    justify-content: center;
    font-size: 0.78rem;
    border-radius: 9px;
    white-space: normal;
    text-align: center;
    box-sizing: border-box;
    background: #f8fafc;
  }
  .sg-toggle-box span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }
  .sg-filter-actions {
    display: flex;
    gap: 8px;
    margin-top: 2px;
  }
  .sg-submit-btn,
  .sg-filters.sg-filters-programs .sg-submit-btn {
    flex: 1;
    height: 38px;
    min-height: 38px !important;
    font-size: 0.84rem !important;
    border-radius: 9px;
    font-weight: 700;
  }
  .sg-reset-btn {
    height: 38px;
    min-height: 38px !important;
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
    border-radius: 9px;
  }
  .sg-quick-topics {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e2e8f0;
    gap: 6px;
  }
  .sg-quick-label {
    display: none;
  }
  .sg-chips-track {
    width: 100%;
    gap: 5px;
    padding-bottom: 2px;
  }
  .sg-chip {
    padding: 4px 10px;
    font-size: 0.74rem;
    border-radius: 999px;
  }
  .sg-intermediary-note {
    padding: 9px 12px;
    margin-bottom: 12px;
    font-size: 0.78rem;
    line-height: 1.4;
    gap: 8px;
  }
  .sg-results-bar {
    margin-bottom: 14px;
    gap: 8px;
  }
  .sg-results-count {
    font-size: 0.86rem;
  }
  .sg-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
  }
  .sg-card {
    padding: 18px 16px;
    border-radius: 0;
  }
  .sg-card-header {
    margin-bottom: 12px;
    gap: 8px;
  }
  .sg-tags {
    gap: 5px;
  }
  .sg-tag,
  .sg-tag-topic,
  .sg-tag-type,
  .sg-tag-audience,
  .sg-tag-format {
    font-size: 0.72rem;
    padding: 3px 8px;
  }
  .sg-card-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }
  .sg-host {
    gap: 10px;
    margin-bottom: 12px;
  }
  .sg-avatar {
    width: 40px;
    height: 40px;
  }
  .sg-excerpt {
    font-size: 0.85rem;
    -webkit-line-clamp: 3;
    margin-bottom: 14px;
  }
  .sg-perks-row {
    gap: 6px;
    margin-bottom: 14px;
  }
  .sg-perk-badge {
    font-size: 0.72rem;
    padding: 4px 8px;
  }
  .sg-card-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
    padding: 12px 0;
    margin-bottom: 14px;
  }
  .sg-fact-item {
    font-size: 0.78rem;
    gap: 6px;
  }
  .sg-card-footer {
    gap: 10px;
  }
  .sg-price-badge {
    font-size: 1rem;
  }
  .sg-card-action {
    padding: 8px 14px !important;
    font-size: 0.82rem !important;
  }
  .sg-highlights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .sg-highlight-card {
    padding: 12px 14px;
    gap: 10px;
  }
  .sg-highlight-icon {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }
  .sg-highlight-info strong {
    font-size: 0.88rem;
  }
  .sg-detail-hero {
    padding: 20px 16px;
    border-radius: var(--sg-radius-lg);
  }
  .sg-detail-title {
    font-size: 1.4rem;
    margin: 12px 0 16px;
  }
  .sg-panel {
    padding: 18px 16px;
    border-radius: var(--sg-radius-lg);
  }
  .sg-panel-header {
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 12px;
  }
  .sg-panel-header h2 {
    font-size: 1.12rem;
  }
  .sg-fact-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 0;
  }
  .sg-fact-row dd {
    text-align: start;
    max-width: 100%;
    padding-inline-start: 24px;
  }
  .sg-syllabus-item {
    padding: 12px 14px;
    gap: 10px;
  }
  .sg-privacy-callout {
    align-items: flex-start;
    padding: 10px 12px;
    font-size: 0.8rem;
  }
  .sg-join {
    padding: 20px 16px;
    border-radius: var(--sg-radius-lg);
  }
  .sg-how {
    padding: 20px 0 10px;
  }
  .sg-how-header {
    margin-bottom: 18px;
  }
  .sg-how-header h2 {
    font-size: 1.3rem;
  }
  .sg-how-card {
    padding: 18px 16px;
  }
  .sg-how-card-head {
    gap: 10px;
    margin-bottom: 8px;
  }
  .sg-how-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    margin-bottom: 10px;
  }
  .sg-how-step-num {
    font-size: 1.65rem;
    top: 14px;
    right: 16px;
  }
  .sg-callout {
    flex-direction: column;
    align-items: flex-start;
    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;
  }
}

@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;
  }
}

/* ==========================================================================
   TRADUCTIONS MULTILINGUES (AR / EN) — FORMULAIRE PRATICIEN
   ========================================================================== */
.sg-i18n-panel legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sg-i18n-panel legend i {
  color: var(--sg-teal);
}

.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: var(--sg-teal);
  color: var(--sg-teal-dark);
  background: #f1f6fc;
}

.sg-lang-tab.is-active {
  background: var(--sg-teal-dark);
  border-color: var(--sg-teal-dark);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(21,59,112, 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;
}


/* Keep the mirrored Arabic image layer active at every responsive size. */
[dir="rtl"] .sg-hero { background-image: none; }
@media (max-width: 950px) {
  [dir="rtl"] .sg-hero::before {
    background-image: linear-gradient(135deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.88) 45%, rgba(255,255,255,.35) 75%, rgba(255,255,255,.08) 100%), var(--sg-hero-image);
    background-position: right center;
  }
}
@media (max-width: 640px) {
  [dir="rtl"] .sg-hero::before {
    background-image: linear-gradient(135deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.85) 45%, rgba(255,255,255,.30) 72%, rgba(255,255,255,.05) 100%), var(--sg-hero-image);
  }
}

/* Mobile programme details: keep the facilitator beside the photo and retain every option. */
@media(max-width:640px) {
  .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:.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:.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:.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:.68rem; }
  .sg-program-detail-hero .sg-host-title-line { gap:5px; }
  .sg-program-detail-hero .sg-host-name-lg { font-size:.95rem; line-height:1.5; }
  .sg-program-detail-hero .sg-verified-badge { font-size:.62rem; padding:3px 6px; line-height:1.4; }
  .sg-program-detail-hero .sg-view-profile-link { font-size:.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:.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:.95rem; }
  .sg-program-highlights .sg-highlight-label { font-size:.65rem; line-height:1.5; letter-spacing:0; text-transform:none; }
  .sg-program-highlights .sg-highlight-info strong { font-size:.88rem; line-height:1.5; }
  .sg-program-highlights .sg-highlight-info small { font-size:.75rem; line-height:1.6; margin-top:3px; }
}

/* Blue actions; green positive states; amber waiting; neutral descriptive labels. */
.sg-shell .sg-tag-topic,.sg-shell .sg-tag-audience{background:#f3f5f8;color:#526174;border-color:#dce3eb}
.sg-shell .sg-tag-format-online{background:#f3f5f8;color:#526174;border-color:#dce3eb}
.sg-shell .sg-tag-format-in_person{background:#f2f4f7;color:#526174;border-color:#d7dfe8}
.sg-shell .sg-tag-format-mixed,.sg-shell .sg-tag-format-by_group{background:#f3f5f8;color:#526174;border-color:#dce3eb}
.sg-shell .sg-tag-format-to_confirm{background:#f3f4f6;color:#64748b;border-color:#dce1e8}
.sg-shell .sg-tag-type-formation{background:#f3f5f8;color:#526174;border-color:#dce3eb}
.sg-shell .sg-tag-type-workshop{background:#f3f5f8;color:#526174;border-color:#dce3eb}
.sg-shell .sg-tag-type-masterclass,.sg-shell .sg-tag-type-program{background:#f3f5f8;color:#526174;border-color:#dce3eb}
.sg-shell .sg-status-open{background:#ecfdf5;color:#166534;border-color:#b9e5c8}
.sg-shell .sg-verified-badge{background:#ecfdf5;color:#166534;border-color:#b9e5c8}
.sg-shell .sg-verified-badge i,.sg-shell .sg-verified-icon{color:#166534}
.sg-shell .sg-status-open .sg-status-dot{background:#29a566;box-shadow:0 0 0 2px #29a56622}
.sg-shell .sg-status-waitlist{background:#fff7e6;color:#92400e;border-color:#f2cf86}
.sg-shell .sg-status-closed{background:#f1f5f9;color:#64748b;border-color:#d7dee8}
.sg-shell .sg-price-free{background:#ecfdf5;color:#166534;border-color:#b9e5c8}
.sg-shell .sg-price-free i,.sg-shell .sg-price-free-large,.sg-shell .sg-price-free-large i,.sg-shell .sg-free-text{color:#166534}
.sg-shell .sg-button{background:#365b91;border-color:#365b91;box-shadow:none}
.sg-shell .sg-button:hover{background:#294775;border-color:#294775;box-shadow:none}
.sg-shell .sg-card .sg-card-action{background:#eff4fb;color:#365b91!important;border-color:#cddcf1;box-shadow:none}
.sg-shell .sg-card .sg-card-action:hover{background:#365b91;color:#fff!important;border-color:#365b91}
.sg-shell .sg-highlights-grid .sg-highlight-icon{background:#f0f4fa;color:#526b91}

/* Public landing headers: blue for support, a restrained violet accent for learning. */
.sg-hero.sg-hero-groups,.sg-hero.sg-hero-programs{--hero-accent:#365b91;--hero-soft:#edf3fc;--hero-line:#ccdaed;--sg-hero-image:url('../img/groupesoutien.webp');background-color:#f8fafc;background-image:none;border:1px solid #d8e2ef;border-inline-start:4px solid var(--hero-accent);border-radius:16px;padding:28px 30px;min-height:220px;box-shadow:0 5px 20px #263d5b09;isolation:isolate}
.sg-hero.sg-hero-programs{--hero-accent:#74628f;--hero-soft:#f3f0f8;--hero-line:#ddd4e9;--sg-hero-image:url('../img/formations.webp');border-color:#e1dce9;border-inline-start-color:var(--hero-accent)}
.sg-hero.sg-hero-groups::before,.sg-hero.sg-hero-programs::before{content:"";position:absolute;inset:0;z-index:-1;background-image:linear-gradient(90deg,#f6f9fd 0%,#f6f9fdf5 34%,#f6f9fdd9 60%,#ffffff22 100%),var(--sg-hero-image);background-size:cover;background-position:center,right center;pointer-events:none;transform:none}
.sg-hero.sg-hero-programs::before{background-image:linear-gradient(90deg,#f9f7fc 0%,#f9f7fcf5 34%,#f9f7fcd9 60%,#ffffff22 100%),var(--sg-hero-image)}
[dir=rtl] .sg-hero.sg-hero-groups::before,[dir=rtl] .sg-hero.sg-hero-programs::before{transform:scaleX(-1)}
.sg-hero.sg-hero-groups::after,.sg-hero.sg-hero-programs::after{display:none}
.sg-hero-groups .sg-hero-content,.sg-hero-programs .sg-hero-content{max-width:70%}
.sg-hero-groups .sg-hero-head-row,.sg-hero-programs .sg-hero-head-row{flex-direction:column;align-items:flex-start;gap:10px;margin-bottom:12px}
.sg-hero-groups .sg-hero-badge,.sg-hero-programs .sg-hero-badge{order:-1;border-radius:6px;background:#ffffffed;border-color:var(--hero-line);color:var(--hero-accent);padding:5px 9px;box-shadow:none;letter-spacing:.025em}
.sg-hero-groups .sg-hero-title,.sg-hero-programs .sg-hero-title{color:#203653;font-size:clamp(1.45rem,2.4vw,2rem);line-height:1.35}
.sg-hero-groups .sg-hero-subtitle,.sg-hero-programs .sg-hero-subtitle{max-width:58ch;color:#586b83;line-height:1.7;font-size:.92rem}
.sg-hero-groups .sg-trust-pill,.sg-hero-programs .sg-trust-pill{background:#ffffffd9;border-color:var(--hero-line);border-radius:7px;box-shadow:none;font-size:.72rem;padding:5px 8px}
.sg-hero-groups .sg-trust-pill i,.sg-hero-programs .sg-trust-pill i{color:var(--hero-accent)}
.sg-hero-groups .sg-hero-side,.sg-hero-programs .sg-hero-side{align-self:flex-end}
.sg-hero-groups .sg-hero-pro-btn,.sg-hero-programs .sg-hero-pro-btn{color:#53667e!important;border-color:#d4deeb!important;box-shadow:none!important;font-size:.78rem!important}
.sg-shell .sg-group-detail-hero{border-top:3px solid #90a9ca;background:linear-gradient(115deg,#fff 60%,#f1f5fb)}
.sg-shell .sg-program-detail-hero{border-top:3px solid #b2a1c5;background:linear-gradient(115deg,#fff 60%,#f7f4fb)}
@media(max-width:760px){.sg-hero.sg-hero-groups,.sg-hero.sg-hero-programs{padding:20px 18px;min-height:0;gap:16px;border-radius:13px;flex-direction:column;align-items:stretch}.sg-hero-groups .sg-hero-content,.sg-hero-programs .sg-hero-content{max-width:100%}.sg-hero.sg-hero-groups::before,.sg-hero.sg-hero-programs::before{opacity:.34}.sg-hero-groups .sg-hero-title,.sg-hero-programs .sg-hero-title{font-size:1.35rem}.sg-hero-groups .sg-hero-subtitle,.sg-hero-programs .sg-hero-subtitle{font-size:.85rem;margin-bottom:12px}.sg-hero-groups .sg-hero-side,.sg-hero-programs .sg-hero-side{align-self:flex-start}.sg-hero-groups .sg-hero-pro-btn,.sg-hero-programs .sg-hero-pro-btn{min-height:40px!important}.sg-hero-groups .sg-trust-pill,.sg-hero-programs .sg-trust-pill{font-size:.68rem;padding:4px 7px}.sg-shell .sg-group-detail-hero,.sg-shell .sg-program-detail-hero{border-radius:14px}}

/* Keep the coloured header rules straight, including on mobile and in RTL. */
.sg-shell .sg-hero,
.sg-shell .sg-group-detail-hero,.sg-shell .sg-program-detail-hero{border-radius:0!important;border-start-start-radius:0!important;border-start-end-radius:0!important;border-end-start-radius:0!important;border-end-end-radius:0!important}
.sg-shell .sg-hero::before,.sg-shell .sg-hero::after{border-radius:0!important}

/* Public action hierarchy: support blue, learning violet, turquoise brand details. */
.sg-hero-groups .sg-hero-badge{background:#edf9f7;border-color:#bce7df;color:#176e69}
.sg-hero-programs .sg-hero-badge{background:#f1ebf7;border-color:#d9cbe9;color:#695181}
.sg-hero-groups .sg-hero-pro-btn{background:#eaf1fc!important;color:#31558b!important;border-color:#b8cceb!important}
.sg-hero-programs .sg-hero-pro-btn{background:#efe8f7!important;color:#695181!important;border-color:#cebcdf!important}
.sg-hero-groups .sg-hero-pro-btn:hover{background:#dce8fa!important}
.sg-hero-programs .sg-hero-pro-btn:hover{background:#e4d8f0!important}
.sg-shell .sg-card .sg-card-action{background:#365b91;color:#fff!important;border-color:#365b91}
.sg-shell .sg-card .sg-card-action:hover{background:#294775;color:#fff!important;border-color:#294775}
.sg-shell:has(.sg-hero-programs,.sg-program-detail-hero) .sg-card .sg-card-action,
.sg-shell:has(.sg-hero-programs,.sg-program-detail-hero) .sg-button{background:#70588d;border-color:#70588d;color:#fff!important}
.sg-shell:has(.sg-hero-programs,.sg-program-detail-hero) .sg-card .sg-card-action:hover,
.sg-shell:has(.sg-hero-programs,.sg-program-detail-hero) .sg-button:hover{background:#5c4676;border-color:#5c4676}
.sg-shell .sg-group-detail-hero{border-top-color:#365b91}
.sg-shell .sg-program-detail-hero{border-top-color:#8b70a7}
.sg-shell .sg-group-detail-hero .sg-detail-title{color:#294775}
.sg-shell .sg-program-detail-hero .sg-detail-title{color:#654e80}
.sg-shell .sg-button:focus-visible,.sg-shell .sg-card-action:focus-visible,.sg-shell .sg-hero-pro-btn:focus-visible{outline:3px solid #18b0a0;outline-offset:3px}

/* The professional footer invitation stays quieter than the main actions. */
.sg-shell .sg-callout{box-shadow:none;border-radius:12px}
.sg-shell .sg-callout .sg-callout-btn{color:#31558b!important;box-shadow:none!important;transform:none!important}
.sg-shell:has(.sg-hero-programs) .sg-callout{background:#f8f6fb;border-color:#e4deec}
.sg-shell:has(.sg-hero-programs) .sg-callout-content h2{color:#654e80}
.sg-shell:has(.sg-hero-programs) .sg-callout-icon{background:#efeaf5;color:#79638f}
.sg-shell:has(.sg-hero-programs) .sg-callout .sg-callout-btn{background:#f0eaf7!important;border-color:#d8cce5!important;color:#695181!important}
.sg-shell:has(.sg-hero-programs) .sg-callout .sg-callout-btn:hover{background:#e8dff1!important}

/* Clear, solid landing headers and legible professional actions. */
.sg-shell .sg-hero.sg-hero-groups,.sg-shell .sg-hero.sg-hero-programs{background:#f3f7fb;background-image:none;--hero-accent:#365b91;--hero-line:#cbd9e9;border-color:#d5e0ec;border-inline-start-color:#365b91}
.sg-shell .sg-hero.sg-hero-groups::before,.sg-shell .sg-hero.sg-hero-programs::before{display:none;background-image:none}
.sg-shell .sg-hero-programs .sg-hero-badge{background:#e8eff8;border-color:#c5d5e8;color:#365b91}
.sg-shell .sg-hero-programs .sg-trust-pill{border-color:#d2deec;background:#fff}
.sg-shell .sg-hero-programs .sg-trust-pill i{color:#526f97}
.sg-shell .sg-hero .sg-hero-pro-btn,.sg-shell:has(.sg-hero-programs) .sg-hero .sg-hero-pro-btn{background:#365b91!important;color:#fff!important;border-color:#365b91!important;box-shadow:none!important}
.sg-shell .sg-hero .sg-hero-pro-btn:hover{background:#294775!important;color:#fff!important;border-color:#294775!important}
.sg-shell .sg-hero .sg-hero-pro-btn i,.sg-shell .sg-hero .sg-hero-pro-btn span{color:inherit!important}
.sg-shell:has(.sg-hero-programs,.sg-program-detail-hero) .sg-card .sg-card-action,.sg-shell:has(.sg-hero-programs,.sg-program-detail-hero) .sg-button{background:#365b91;border-color:#365b91;color:#fff!important}
.sg-shell:has(.sg-hero-programs,.sg-program-detail-hero) .sg-card .sg-card-action:hover,.sg-shell:has(.sg-hero-programs,.sg-program-detail-hero) .sg-button:hover{background:#294775;border-color:#294775}
.sg-shell .sg-program-detail-hero{background:#f7f9fc;border-top-color:#809abc}
.sg-shell .sg-group-detail-hero{background:#f7f9fc}
.sg-shell .sg-program-detail-hero .sg-detail-title{color:#294775}
.sg-shell:has(.sg-hero-programs) .sg-callout{background:#f5f8fc;border-color:#dce5ef}
.sg-shell:has(.sg-hero-programs) .sg-callout-content h2{color:#294775}
.sg-shell:has(.sg-hero-programs) .sg-callout-icon{background:#eaf0f8;color:#526f97}
.sg-shell:has(.sg-hero-programs) .sg-callout .sg-callout-btn{background:#eaf1fb!important;border-color:#c5d5ec!important;color:#31558b!important}
.sg-shell:has(.sg-hero-programs) .sg-callout .sg-callout-btn:hover{background:#dfe9f7!important}

/* Preserve the header photography with a uniform veil, without a gradient. */
.sg-shell .sg-hero.sg-hero-groups::before,.sg-shell .sg-hero.sg-hero-programs::before{display:block;background-image:var(--sg-hero-image);background-size:cover;background-position:center;opacity:.16;transform:none}
[dir=rtl] .sg-shell .sg-hero.sg-hero-groups::before,[dir=rtl] .sg-shell .sg-hero.sg-hero-programs::before{transform:scaleX(-1)}

/* Display the original photographs without a veil or transparency. */
.sg-shell .sg-hero.sg-hero-groups::before,.sg-shell .sg-hero.sg-hero-programs::before{opacity:1}

/* Preserve the meaningful right-hand scene before mirroring the image for Arabic. */
.sg-shell .sg-hero.sg-hero-groups::before,.sg-shell .sg-hero.sg-hero-programs::before{background-position:right center;opacity:1;transform:none}
[dir=rtl] .sg-shell .sg-hero.sg-hero-groups::before,[dir=rtl] .sg-shell .sg-hero.sg-hero-programs::before{transform:scaleX(-1)}
.sg-shell .sg-hero.sg-hero-groups::after,.sg-shell .sg-hero.sg-hero-programs::after{content:"";display:block;position:absolute;inset:0;width:auto;height:auto;background:rgba(255,255,255,.06);border-radius:0;transform:none;z-index:-1;pointer-events:none}
@media(max-width:950px){.sg-shell .sg-hero.sg-hero-groups::before{background-position:90% center}.sg-shell .sg-hero.sg-hero-programs::before{background-position:100% center}}
@media(max-width:640px){.sg-shell .sg-hero.sg-hero-groups::before{background-position:92% center}.sg-shell .sg-hero.sg-hero-programs::before{background-position:right center}}

/* Rectangular discovery buttons with a slightly brighter blue accent. */
.sg-shell .sg-card .sg-card-action,
.sg-shell:has(.sg-hero-programs,.sg-program-detail-hero) .sg-card .sg-card-action{border-radius:0!important;background:#326bc0;color:#fff!important;border-color:#326bc0;box-shadow:none!important}
.sg-shell .sg-card .sg-card-action:hover,
.sg-shell:has(.sg-hero-programs,.sg-program-detail-hero) .sg-card .sg-card-action:hover{background:#285aa4;border-color:#285aa4;color:#fff!important}

/* Localised readability gradient, leaving the opposite side of the photo visible. */
.sg-shell .sg-hero.sg-hero-groups::after,.sg-shell .sg-hero.sg-hero-programs::after{background:linear-gradient(90deg,rgba(255,255,255,.78) 0%,rgba(255,255,255,.58) 36%,rgba(255,255,255,.22) 66%,rgba(255,255,255,.04) 100%)}
[dir=rtl] .sg-shell .sg-hero.sg-hero-groups::after,[dir=rtl] .sg-shell .sg-hero.sg-hero-programs::after{background:linear-gradient(270deg,rgba(255,255,255,.78) 0%,rgba(255,255,255,.58) 36%,rgba(255,255,255,.22) 66%,rgba(255,255,255,.04) 100%)}

/* Useful information cues: blue remote access, warm calendar, ochre credentials. */
.sg-shell .sg-tag-format-online{background:#edf4fc;color:#315d91;border-color:#c7d9ec}
.sg-shell .sg-tag-format-mixed,.sg-shell .sg-tag-format-by_group{background:#f3f6fa;color:#52667d;border-color:#d7e0eb}
.sg-shell .sg-card .sg-fact-date{background:#fbf4ed;border:1px solid #edddca;border-radius:5px;padding:5px 7px}
.sg-shell .sg-card .sg-fact-date i{color:#9a6132}
.sg-shell .sg-card .sg-fact-date .sg-fact-text{color:#784b29;font-weight:650}
.sg-shell .sg-highlights-grid .sg-highlight-date{border-color:#e5d6c4;background:#fffcf8}
.sg-shell .sg-highlights-grid .sg-highlight-date .sg-highlight-icon{background:#f7ecdf;color:#965c2e}
.sg-shell .sg-highlights-grid .sg-highlight-date .sg-highlight-info strong{color:#784b29}
.sg-shell .sg-perk-cert{background:#faf5e8;border-color:#e7d9ae;color:#7e6424}
.sg-shell .sg-perk-cert i{color:#907129}
.sg-shell .sg-perk-pdf{background:#f4f6f8;border-color:#dce2e9;color:#526174}
.sg-shell .sg-perk-pdf i{color:#64748b}
.sg-shell .sg-perk-replay{background:#edf4fc;border-color:#c7d9ec;color:#315d91}
.sg-shell .sg-perk-replay i{color:#315d91}
