:root {
  --ga-primary: #1456b8;
  --ga-secondary: #2e8ae6;
  --ga-surface: #ffffff;
  --ga-bg-start: #edf2f8;
  --ga-bg-end: #e7eef8;
  --ga-text: #162033;
  --ga-muted: #667085;
  --ga-border: #dbe4f0;
  --ga-border-soft: #e4ebf5;
  --ga-shadow: 0 20px 60px rgba(16, 24, 40, 0.12);
  --ga-shadow-soft: 0 16px 36px rgba(15, 23, 42, 0.06);
  --ga-shadow-btn: 0 12px 22px rgba(20, 86, 184, 0.25);
  --ga-radius-xl: 28px;
  --ga-radius-lg: 22px;
  --ga-radius-md: 16px;
  --ga-radius-sm: 14px;
}

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

html,
body {
  min-height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--ga-text);
  background: linear-gradient(135deg, var(--ga-bg-start), var(--ga-bg-end));
}

/* ===== STRUCTURE GLOBALE ===== */
.ga-page-shell,
.ga-login-page {
  min-height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.ga-page-card {
  width: min(1320px, 100%);
  background: var(--ga-surface);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--ga-radius-xl);
  box-shadow: var(--ga-shadow);
  overflow: hidden;
}

/* ===== LOGIN ===== */
.ga-login-card {
  width: 100%;
  max-width: 1180px;
  min-height: 650px;
  display: flex;
  overflow: hidden;
  border-radius: 24px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 8px 24px rgba(0, 0, 0, 0.08);
}

.ga-login-left,
.ga-login-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 48px 36px;
}

.ga-login-left {
  background: linear-gradient(160deg, var(--ga-primary), var(--ga-secondary));
  color: #fff;
  text-align: center;
}

.ga-login-left-inner {
  width: 100%;
  max-width: 500px;
}

.ga-login-right {
  position: relative;
  background: #fff;
}

.ga-login-right::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ga-watermark) center center / 280px no-repeat;
  opacity: 0.05;
  pointer-events: none;
}

.ga-login-right-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
}

/* ===== LAYOUT INTERNE APP ===== */
.ga-app-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 760px;
}

.ga-app-sidebar {
  background: linear-gradient(180deg, var(--ga-primary), var(--ga-secondary));
  color: #fff;
  padding: 28px 22px;
}

.ga-app-sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ga-app-main {
  background: #fff;
  position: relative;
}

.ga-app-main-inner {
  padding: 34px;
}

/* ===== BRAND / CLUB ===== */
.ga-brand-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.ga-brand-logo,
.ga-brand-chip img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  padding: 4px;
}

.ga-brand-chip span {
  font-size: 16px;
  font-weight: 700;
}

.ga-club-mini-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0 22px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.ga-club-mini-logo {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 14px;
  background: #fff;
  padding: 4px;
}

.ga-app-club-name {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.ga-app-club-text {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.96;
  margin: 0;
}

/* ===== MENU ===== */
.ga-app-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.ga-app-link {
  display: block;
  text-decoration: none;
  color: #fff;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 600;
  transition: 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ga-app-link:hover,
.ga-app-link.active {
  background: rgba(255, 255, 255, 0.18);
  transform: translateX(2px);
  font-weight: 800;
}

.ga-app-link-logout {
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.14);
}

/* ===== TITRES ===== */
.ga-form-kicker,
.ga-pill-light {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--ga-primary);
  font-size: 13px;
  font-weight: 700;
}

.ga-title,
.ga-form-title,
.ga-login-title,
.ga-hero-title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 10px;
  color: #1a1a1a;
}

.ga-login-title,
.ga-hero-title {
  color: #fff;
  margin-bottom: 18px;
}

.ga-subtitle,
.ga-form-subtitle,
.ga-login-text,
.ga-hero-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ga-muted);
  margin: 0 0 26px;
}

.ga-login-text,
.ga-hero-text {
  color: rgba(255, 255, 255, 0.95);
  font-size: 16px;
  margin-bottom: 24px;
}

.ga-page-heading {
  margin-bottom: 24px;
}

.ga-page-heading .ga-title {
  margin-bottom: 8px;
}

/* ===== TAGS ===== */
.ga-login-tags,
.ga-tag-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.ga-login-tags span,
.ga-tag {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

/* ===== TOPBAR ===== */
.ga-topbar,
.ga-topbar-app {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
}

.ga-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ga-user-pill {
  min-width: 150px;
  padding: 12px 16px;
  border-radius: 16px;
  background: #f7faff;
  border: 1px solid #dbe5f3;
  line-height: 1.4;
}

.ga-user-name {
  font-weight: 800;
  color: #162033;
}

.ga-user-role {
  color: #667085;
  font-size: 13px;
}

/* ===== FORMULAIRES ===== */
.ga-login-form,
.ga-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ga-field {
  text-align: left;
}

.ga-field label,
.ga-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #243043;
  font-size: 14px;
}

.ga-field input,
.ga-input,
.ga-select,
.ga-textarea {
  width: 100%;
  min-height: 52px;
  border: 1.5px solid #d7dfeb;
  border-radius: 14px;
  padding: 0 16px;
  font-size: 15px;
  background: #f9fbff;
  outline: none;
  transition: 0.25s ease;
}

.ga-textarea {
  min-height: 120px;
  padding: 14px 16px;
  resize: vertical;
}

.ga-field input:focus,
.ga-input:focus,
.ga-select:focus,
.ga-textarea:focus {
  border-color: var(--ga-secondary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(46, 138, 230, 0.12);
}

/* ===== BOUTONS ===== */
.ga-login-btn,
.ga-btn {
  min-height: 54px;
  border: none;
  border-radius: 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
}

.ga-login-btn {
  width: 100%;
  margin-top: 6px;
  background: linear-gradient(135deg, var(--ga-primary), var(--ga-secondary));
  box-shadow: var(--ga-shadow-btn);
}

.ga-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--ga-primary), var(--ga-secondary));
  box-shadow: var(--ga-shadow-btn);
  text-decoration: none;
}

.ga-btn:hover,
.ga-login-btn:hover,
.ga-btn-primary:hover,
.ga-btn-light:hover {
  transform: translateY(-2px);
}

.ga-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--ga-primary), var(--ga-secondary));
}

.ga-btn-light {
  min-height: 46px;
  border: 1px solid #dbe5f3;
  border-radius: 14px;
  background: #fff;
  color: #162033;
  padding: 10px 16px;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
}

/* ===== CARTES / BOITES ===== */
.ga-demo-box,
.ga-info-box,
.ga-list-card,
.ga-section-card {
  background: #fff;
  border: 1px solid var(--ga-border-soft);
  border-radius: 22px;
  box-shadow: var(--ga-shadow-soft);
  padding: 24px;
}

.ga-demo-box,
.ga-info-box {
  margin-top: 20px;
  background: #f6f9ff;
  border-color: #d9e6ff;
  line-height: 1.7;
  padding: 16px;
  border-radius: 16px;
}

.ga-section-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px;
  color: #162033;
}

.ga-section-subtitle {
  color: #667085;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px;
}

.ga-list-item {
  padding: 14px 16px;
  background: #f9fbfe;
  border: 1px solid var(--ga-border-soft);
  border-radius: 14px;
  margin-bottom: 12px;
}

/* ===== STATS ===== */
.ga-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.ga-stat-card {
  background: #f7faff;
  border: 1px solid #dbe5f3;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.ga-stat-label {
  display: block;
  color: #667085;
  font-size: 14px;
  margin-bottom: 8px;
}

.ga-stat-value {
  font-size: 32px;
  font-weight: 800;
  color: #162033;
}

/* ===== GRILLES ===== */
.ga-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

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

/* ===== TABLEAUX ===== */
.ga-table-wrap {
  background: #fff;
  border: 1px solid var(--ga-border-soft);
  border-radius: 22px;
  box-shadow: var(--ga-shadow-soft);
  overflow-x: auto;
}

.ga-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.ga-table th,
.ga-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid #edf2f7;
  font-size: 14px;
}

.ga-table th {
  background: #f8fbff;
  font-weight: 800;
  color: #243043;
}

/* ===== NOTIFICATIONS ===== */
.ga-notif-btn {
  position: relative;
}

.ga-notif-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #dc3545;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ga-notif-menu {
  width: 320px;
  border: 1px solid var(--ga-border-soft);
  border-radius: 18px;
  overflow: hidden;
}

.ga-notif-header {
  padding: 14px 16px;
  font-weight: 800;
  border-bottom: 1px solid #edf2f7;
  background: #f8fbff;
}

.ga-notif-item {
  padding: 12px 16px;
  white-space: normal;
}

.ga-notif-unread {
  background: #f7fbff;
}

/* ===== DIVERS ===== */
.ga-switch-select {
  min-width: 220px;
  padding-right: 36px;
}

.ga-watermark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ga-watermark) center center / 220px no-repeat;
  opacity: 0.05;
  pointer-events: none;
}

/* ===== AUTH FLASH ===== */
.ga-auth-layout {
  min-height: 100vh;
}

.ga-auth-flash-wrap {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  width: min(700px, calc(100% - 32px));
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .ga-app-layout {
    grid-template-columns: 1fr;
  }

  .ga-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ga-topbar-app,
  .ga-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .ga-topbar-right {
    justify-content: flex-start;
  }
}

@media (max-width: 992px) {
  .ga-login-card {
    flex-direction: column;
    min-height: auto;
  }

  .ga-grid-2,
  .ga-grid-3 {
    grid-template-columns: 1fr;
  }

  .ga-login-left,
  .ga-login-right {
    padding: 30px 22px;
  }

  .ga-title,
  .ga-form-title,
  .ga-login-title,
  .ga-hero-title {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .ga-page-shell,
  .ga-login-page {
    padding: 16px;
  }

  .ga-app-main-inner {
    padding: 22px 16px;
  }

  .ga-app-sidebar {
    padding: 24px 16px;
  }

  .ga-stats-grid,
  .ga-grid-2,
  .ga-grid-3 {
    grid-template-columns: 1fr;
  }

  .ga-switch-select {
    min-width: 100%;
  }

  .ga-user-pill {
    width: 100%;
  }

  .ga-notif-menu {
    width: min(92vw, 320px);
  }

  .ga-login-left,
  .ga-login-right {
    padding: 28px 18px;
  }

  .ga-login-tags {
    gap: 8px;
  }

  .ga-login-tags span {
    font-size: 13px;
    padding: 8px 12px;
  }

  .ga-table {
    min-width: 640px;
  }
}