@import url('https://fonts.cdnfonts.com/css/gilroy-bold');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=Outfit:wght@400;600;700;800;900&display=swap');

:root {
  /* LIGHT MODE (DÉFAUT) */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-input: #ffffff;
  --border-color: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --success: #10b981;
  --success-hover: #059669;
  --warning: #d97706;
  --danger: #ef4444;
  --danger-hover: #dc2626;

  /* RAYONS DE COURBURE UNIFIÉS (DESIGN SYSTEM) */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-btn: 10px;
  /* BOUTONS UNIFIÉS SUR TOUTE LA PLATEFORME */
  --radius-md: 14px;
  /* CARTES ET VUES */
  --radius-lg: 20px;
  /* CONTENEURS MODALES */
  --radius-pill: 9999px;
  /* BADGES ET FILTRES */

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 32px -8px rgba(0, 0, 0, 0.12);
  --font-family: 'Gilroy', 'Plus Jakarta Sans', 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  --table-header-bg: rgba(241, 245, 249, 0.8);
}

[data-theme="dark"] {
  /* DARK MODE (NOIR PROFOND) */
  --bg-main: #0a0a0a;
  --bg-card: #121212;
  --bg-card-hover: #1e1e1e;
  --bg-input: #0a0a0a;
  --border-color: #27272a;
  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --success: #10b981;
  --success-hover: #059669;
  --warning: #f59e0b;
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.7);
  --table-header-bg: rgba(18, 18, 18, 0.8);
}

/* PALETTES DE COULEURS DYNAMIQUES (COLOR SCHEMES) */
/* 1. PALETTE : BLEU & ORANGE (DÉFAUT CLASSIC) */
[data-color-scheme="blue-orange"] {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --accent: #f97316;
  --warning: #f97316;
}

[data-theme="dark"][data-color-scheme="blue-orange"] {
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --accent: #fb923c;
  --warning: #fb923c;
}

/* 2. PALETTE : ORANGE & JAUNE (FIRE ACCENT) */
[data-color-scheme="orange-yellow"] {
  --primary: #ea580c;
  --primary-hover: #c2410c;
  --accent: #eab308;
  --warning: #eab308;
}

[data-theme="dark"][data-color-scheme="orange-yellow"] {
  --primary: #f97316;
  --primary-hover: #ea580c;
  --accent: #facc15;
  --warning: #facc15;
}

/* 3. PALETTE : EMERAUDE & VIOLET (CYBER NEON) */
[data-color-scheme="emerald-purple"] {
  --primary: #059669;
  --primary-hover: #047857;
  --accent: #9333ea;
  --warning: #9333ea;
}

[data-theme="dark"][data-color-scheme="emerald-purple"] {
  --primary: #10b981;
  --primary-hover: #059669;
  --accent: #a855f7;
  --warning: #a855f7;
}

/* 4. PALETTE : VIOLET & ROSE (ROYAL BLUSH) */
[data-color-scheme="purple-pink"] {
  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --accent: #ec4899;
  --warning: #ec4899;
}

[data-theme="dark"][data-color-scheme="purple-pink"] {
  --primary: #8b5cf6;
  --primary-hover: #7c3aed;
  --accent: #f472b6;
  --warning: #f472b6;
}

/* 5. PALETTE : BLEU & ROUGE (CRIMSON BLUE) */
[data-color-scheme="blue-red"] {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --accent: #dc2626;
  --warning: #dc2626;
}

[data-theme="dark"][data-color-scheme="blue-red"] {
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --accent: #ef4444;
  --warning: #ef4444;
}

/* 6. PALETTE : ORANGE & NOIR (DARK FIRE) */
[data-color-scheme="orange-black"] {
  --primary: #ea580c;
  --primary-hover: #c2410c;
  --accent: #f97316;
  --warning: #1e293b;
}

[data-theme="dark"][data-color-scheme="orange-black"] {
  --primary: #f97316;
  --primary-hover: #ea580c;
  --accent: #fb923c;
  --warning: #f8fafc;
}

/* 7. PALETTE : ROUGE & NOIR (DARK CRIMSON) */
[data-color-scheme="red-black"] {
  --primary: #dc2626;
  --primary-hover: #b91c1c;
  --accent: #ef4444;
  --warning: #0f172a;
}

[data-theme="dark"][data-color-scheme="red-black"] {
  --primary: #ef4444;
  --primary-hover: #dc2626;
  --accent: #f87171;
  --warning: #f8fafc;
}

/* 8. PALETTE : VERT & JAUNE (GREEN & YELLOW) */
[data-color-scheme="green-yellow"] {
  --primary: #16a34a;
  --primary-hover: #15803d;
  --accent: #eab308;
  --warning: #eab308;
}

[data-theme="dark"][data-color-scheme="green-yellow"] {
  --primary: #22c55e;
  --primary-hover: #16a34a;
  --accent: #facc15;
  --warning: #facc15;
}

/* 9. PALETTE SUR-MESURE EXTRAITE DU LOGO DE L'ORGANISATION */
[data-color-scheme="custom-logo"] {
  --primary: var(--custom-primary, #2563eb);
  --primary-hover: var(--custom-primary-hover, #1d4ed8);
  --accent: var(--custom-accent, #f97316);
  --warning: var(--custom-accent, #f97316);
}

[data-theme="dark"][data-color-scheme="custom-logo"] {
  --primary: var(--custom-primary, #3b82f6);
  --primary-hover: var(--custom-primary-hover, #2563eb);
  --accent: var(--custom-accent, #fb923c);
  --warning: var(--custom-accent, #fb923c);
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-family);
  font-weight: 300;
  letter-spacing: 0.15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
  padding-bottom: env(safe-area-inset-bottom);
}

@keyframes mobileSlideIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

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

.spa-mobile-view {
  animation: mobileSlideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* COMPOSANTS & NORMES UNIFIÉES DU DESIGN SYSTEM */

button,
.btn {
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.6rem 1.15rem;
  min-height: 42px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  user-select: none;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

button:active,
.btn:active {
  transform: scale(0.97);
}

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

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

.btn-success {
  background-color: var(--success);
  color: #ffffff;
  border-color: var(--success);
}

.btn-success:hover {
  background-color: var(--success-hover);
  border-color: var(--success-hover);
}

.btn-danger {
  background-color: var(--danger);
  color: #ffffff;
  border-color: var(--danger);
}

.btn-danger:hover {
  background-color: var(--danger-hover);
  border-color: var(--danger-hover);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  min-height: 36px;
  font-size: 0.8rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  flex-shrink: 0;
}

.btn-icon-danger {
  min-height: unset !important;
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-btn);
  background: rgba(239, 68, 68, 0.08);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-icon-danger:hover {
  background: var(--danger);
  color: #ffffff;
  border-color: var(--danger);
}

.btn-remove-file {
  min-height: unset !important;
  width: 22px;
  height: 22px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.25);
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-remove-file:hover {
  background: var(--danger);
  color: #ffffff;
  border-color: var(--danger);
}

.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-btn);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.theme-toggle-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* SÉLECTEUR INDICATIF PAYS (HARMONISÉ AU DESIGN SYSTEM) */
.phone-country-select {
  width: 110px !important;
  flex-shrink: 0 !important;
  padding: 0.75rem 0.5rem !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  background-color: var(--bg-input) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-sm) !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  padding-right: 1.4rem !important;
}

.phone-country-select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

/* SYSTÈME DE PAGINATION UNIFIÉ (DESIGN SYSTEM) */
.table-card-footer {
  padding: 0.85rem 1.2rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.75rem;
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}

.pagination-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.65rem;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  border-radius: var(--radius-btn);
  cursor: pointer;
  user-select: none;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-btn:hover:not(:disabled) {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.page-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.page-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  background: var(--bg-main);
}

.page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 36px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.items-per-page-select {
  height: 36px;
  padding: 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease;
}

.items-per-page-select:focus {
  border-color: var(--primary);
}

/* TYPOGRAPHIE ET TITRES UNIFIÉS AVEC ICÔNES */
h1,
.page-title {
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

h2,
.section-title {
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-main);
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

h3,
.card-title {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.1px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.65rem 1.85rem;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2.25rem;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.brand-title {
  color: var(--primary);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.brand-highlight {
  color: var(--warning);
}

.navbar .logo {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.2px;
}

.app-footer {
  margin-top: auto;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 1.75rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.app-footer .footer-brand {
  font-weight: 700;
  color: var(--primary);
}

.app-footer .footer-brand span {
  color: var(--warning);
}

/* DROPDOWN MENU FOR ACTIONS & USER MENU */
.dropdown-action-container {
  position: relative;
  display: inline-block;
}

.dropdown-action-menu {
  position: absolute;
  right: 0;
  top: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  min-width: 170px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  margin-top: 0.4rem;
}

.dropdown-action-menu.show {
  display: flex;
}

.dropdown-action-btn {
  background: transparent;
  border: none;
  padding: 0.65rem 1rem;
  text-align: left !important;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start !important;
  gap: 0.6rem;
  width: 100%;
  border-radius: 0;
  transition: background-color 0.15s ease;
}

.dropdown-action-btn i {
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  display: inline-block;
}

.dropdown-action-btn:hover {
  background-color: var(--bg-card-hover);
  color: var(--primary);
}

.dropdown-action-btn.btn-danger-item:hover {
  color: var(--danger);
}

.container {
  max-width: 1100px;
  width: 100%;
  margin: 2.25rem auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

.container-fluid {
  max-width: 100% !important;
  width: 100% !important;
  margin: 1.75rem auto 2.5rem auto;
  padding: 0 2.25rem;
  box-sizing: border-box;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .container-fluid {
    padding: 0 1rem !important;
    margin: 1rem auto 2rem auto !important;
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.75rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.45rem 1.65rem;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

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

.stat-icon {
  font-size: 1.8rem;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(37, 99, 235, 0.1);
}

.stat-val {
  font-size: 2.1rem;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.stat-lbl {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 0.2rem;
  opacity: 0.85;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-success {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.badge-danger {
  background-color: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.badge-warning {
  background-color: rgba(217, 119, 6, 0.15);
  color: var(--warning);
}

.alert {
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.alert-danger {
  background-color: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--danger);
  color: var(--danger);
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--success);
  color: var(--success);
}

.table-responsive {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

th,
td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: var(--table-header-bg);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
}

tr:hover td {
  background-color: var(--bg-card-hover);
}

.hidden {
  display: none !important;
}

/* FORCE COULEUR DU TEXTE BLANC DANS LES ZONES COLORÉES EN DÉGRADÉ */
.rich-text-white-override,
.rich-text-white-override .rich-text-display,
.rich-text-white-override .rich-text-display *,
.rich-text-white-override *,
.rich-text-white-override p,
.rich-text-white-override span,
.rich-text-white-override li,
.rich-text-white-override div,
.rich-text-white-override strong,
.rich-text-white-override em,
.rich-text-white-override h1,
.rich-text-white-override h2,
.rich-text-white-override h3 {
  color: #ffffff !important;
}

/* SYSTEME DE MODALE : PLEINE PAGE POUR TOUTES LES POPUPS (SAUF CONFIRMATION/SUPPRESSION) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-main);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.modal-content {
  width: 100%;
  height: 100%;
  max-width: 100% !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: var(--bg-main);
  overflow: hidden;
}

.modal-header-full {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
}

.modal-body-full {
  flex: 1;
  overflow-y: auto;
  padding: 1.75rem 1.5rem;
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* LA POPUP DE CONFIRMATION / SUPPRESSION RESTE EN BOÎTE NORMALE CENTRÉE SUR OVERLAY FLOUTÉ */
#custom-confirm-modal {
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 1rem !important;
  z-index: 10005 !important;
}

.modal-dialog-box {
  background-color: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.4) !important;
  width: 100% !important;
  max-width: 440px !important;
  height: auto !important;
  max-height: 90vh !important;
  padding: 1.5rem !important;
  margin: auto !important;
  animation: modalPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(12px);
  }

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

.modal-header-full {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
}

.modal-body-full {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  width: 100%;
  box-sizing: border-box;
}

.modal-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--bg-main);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  transition: all 0.15s ease;
}

.modal-back-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* CUSTOM APP DIALOG & TOAST SYSTEM */
.custom-confirm-body {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

@media (max-width: 768px) {
  .toast-container {
    bottom: 80px;
    left: 1rem;
    right: 1rem;
  }
}

.toast-message {
  pointer-events: auto;
  min-width: 280px;
  max-width: 400px;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-main);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideInRight 0.3s ease-out;
  transition: all 0.3s ease-in-out;
}

.toast-message.toast-success {
  border-left: 4px solid var(--success);
}

.toast-message.toast-success i {
  color: var(--success);
}

.toast-message.toast-danger {
  border-left: 4px solid var(--danger);
}

.toast-message.toast-danger i {
  color: var(--danger);
}

.toast-message.toast-warning {
  border-left: 4px solid var(--warning);
}

.toast-message.toast-warning i {
  color: var(--warning);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

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

/* MOBILE APP UI STYLES & NATIVE SPA MULTIPAGE EXPERIENCE */
@media (max-width: 768px) {
  body {
    padding-bottom: 75px;
    /* Espace réservé pour la Bottom Navigation Bar */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
    overflow-x: hidden;
  }

  .navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
  }

  .navbar .logo {
    font-size: 1.05rem;
    white-space: nowrap;
  }

  .nav-btn-text {
    display: none !important;
  }

  [data-theme="dark"] .navbar {
    background-color: var(--bg-card);
  }

  .container {
    margin: 0.5rem auto;
    padding: 0 0.85rem;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  body {
    padding-bottom: 75px !important;
  }

  /* SPA MULTIPAGE MOBILE : ON MASQUE LES VUES INACTIVES SUR MOBILE */
  .spa-mobile-view {
    display: none !important;
  }

  .spa-mobile-view.active-view {
    display: block !important;
    animation: fadeInTab 0.25s ease-in-out;
  }

  @keyframes fadeInTab {
    from {
      opacity: 0;
      transform: translateY(6px);
    }

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

  /* PREVENT UNWANTED WORD BREAKING / HYPHENATION ON MOBILE */
  h1,
  h2,
  h3,
  h4,
  p,
  div,
  span,
  label,
  button,
  a {
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: manual;
  }

  h1#welcome-title {
    font-size: 1.4rem;
    line-height: 1.25;
  }

  h2 {
    font-size: 1.15rem !important;
    line-height: 1.3;
  }

  /* CARTES STATS COMPACTES SUR MOBILE (DESIGN DU MOCKUP) */
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .stat-card {
    flex-direction: column;
    text-align: center;
    padding: 0.85rem 0.4rem 0.65rem 0.4rem;
    gap: 0.4rem;
    border-radius: var(--radius-md);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  }

  .stat-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    border-radius: 50%;
    margin: 0 auto;
  }

  .stat-val {
    font-size: 1.25rem;
    font-weight: 800;
  }

  .stat-lbl {
    font-size: 0.62rem;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
  }

  .card {
    padding: 1rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  }

  /* TIMELINE SCROLLABLE ET TOUCH-FRIENDLY */
  .timeline {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.75rem;
  }

  .timeline-step {
    scroll-snap-align: start;
    min-width: 85px;
    padding: 0.5rem 0.3rem;
    border-radius: var(--radius-md);
  }

  /* BOUTONS ET INTERACTIONS TACTILES APPS */
  button,
  .card,
  .history-item {
    transition: transform 0.15s ease, opacity 0.15s ease;
  }

  button:active,
  .card:active {
    transform: scale(0.98);
  }

  .btn-primary,
  .btn-success,
  .btn-outline {
    border-radius: 9999px;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }

  /* BOTTOM NAVIGATION BAR MOBILE APP SPA */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(64px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    z-index: 9999;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 600;
    gap: 0.2rem;
    text-decoration: none;
    flex: 1;
    height: 100%;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    background: transparent;
    padding: 0;
  }

  .mobile-nav-item i {
    font-size: 1.25rem;
    transition: transform 0.15s ease, color 0.15s ease;
  }

  .mobile-nav-item.active {
    color: var(--primary);
    font-weight: 700;
  }

  .mobile-nav-item.active i {
    transform: translateY(-2px);
    color: var(--primary);
  }

  /* Rembourrage du bas de page pour ne pas chevaucher la barre de nav mobile */
  .app-container,
  main,
  .main-container {
    padding-bottom: calc(75px + env(safe-area-inset-bottom)) !important;
  }
}

@media (max-width: 768px) {
  .desktop-topbar-tabs {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none !important;
  }

  .desktop-nav-links {
    display: none !important;
  }

  .desktop-topbar-tabs {
    display: flex !important;
  }

  .nav-tab-item {
    background: transparent;
    border: none;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    cursor: pointer;
  }

  .nav-tab-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-main);
  }

  .nav-tab-item.active {
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary);
    font-weight: 700;
  }

  .spa-mobile-view {
    display: none !important;
  }

  .spa-mobile-view.active-view {
    display: block !important;
    animation: fadeInTab 0.25s ease-in-out;
  }
}

/* ACCORDEON STYLES */
details.challenge-accordion summary::-webkit-details-marker {
  display: none;
}

details.challenge-accordion summary:hover {
  background: var(--bg-card-hover) !important;
}

details.challenge-accordion summary:hover .accordion-toggle-btn {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
}

details.challenge-accordion[open] summary {
  border-bottom: 1px solid var(--border-color);
}

/* INTEGRATION EDITEUR RICH-TEXT QUILL (DESIGN SYSTEM HARMONISE) */
.ql-toolbar.ql-snow {
  border-top-left-radius: var(--radius-sm) !important;
  border-top-right-radius: var(--radius-sm) !important;
  border-color: var(--border-color) !important;
  background-color: var(--bg-card) !important;
  color: var(--text-main) !important;
  font-family: inherit !important;
  padding: 8px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 2px !important;
}

/* REINIT DES BOUTONS DE LA BARRE D'OUTILS CONTRE LES STYLES GLOBAUX BUTTON */
.ql-toolbar.ql-snow button {
  width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 3px 5px !important;
  border-radius: 4px !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  margin: 0 1px !important;
  cursor: pointer !important;
  float: none !important;
}

.ql-toolbar.ql-snow button:hover,
.ql-toolbar.ql-snow button:focus,
.ql-toolbar.ql-snow button.ql-active {
  background: rgba(37, 99, 235, 0.12) !important;
  transform: none !important;
  box-shadow: none !important;
}

.ql-toolbar.ql-snow .ql-formats {
  margin-right: 8px !important;
  margin-bottom: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
}

.ql-toolbar.ql-snow .ql-picker {
  height: 28px !important;
  min-height: 28px !important;
  font-size: 0.88rem !important;
}

.ql-toolbar.ql-snow .ql-picker-label {
  padding: 2px 8px !important;
  border-radius: 4px !important;
  display: inline-flex !important;
  align-items: center !important;
  height: 28px !important;
  border: 1px solid transparent !important;
}

.ql-toolbar.ql-snow .ql-picker-label:hover {
  background: rgba(37, 99, 235, 0.12) !important;
}

.ql-container.ql-snow {
  border-bottom-left-radius: var(--radius-sm) !important;
  border-bottom-right-radius: var(--radius-sm) !important;
  border-color: var(--border-color) !important;
  background-color: var(--bg-input) !important;
  color: var(--text-main) !important;
  font-family: inherit !important;
  font-size: 0.95rem !important;
  min-height: 120px;
}

.ql-editor {
  min-height: 100px;
  color: var(--text-main) !important;
}

.ql-editor.ql-blank::before {
  color: var(--text-muted) !important;
  font-style: normal !important;
}

.ql-snow .ql-stroke {
  stroke: var(--text-muted) !important;
}

.ql-snow .ql-fill {
  fill: var(--text-muted) !important;
}

.ql-snow .ql-picker {
  color: var(--text-main) !important;
}

.ql-snow .ql-picker-options {
  background-color: var(--bg-card) !important;
  border-color: var(--border-color) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25) !important;
}

.ql-snow.ql-toolbar button:hover .ql-stroke,
.ql-snow.ql-toolbar button.ql-active .ql-stroke,
.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,
.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke {
  stroke: var(--primary) !important;
}

.ql-snow.ql-toolbar button:hover .ql-fill,
.ql-snow.ql-toolbar button.ql-active .ql-fill,
.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,
.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill {
  fill: var(--primary) !important;
}

/* MASQUAGE DE LA BARRE DE SCROLL / FLECHES DES INPUTS NUMERIQUES */
.no-spinner-input::-webkit-outer-spin-button,
.no-spinner-input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

.no-spinner-input {
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}

.no-spinner-input::placeholder {
  color: rgba(255, 255, 255, 0.65) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

/* RENDU DU CONTENU RICHE ET NETTOYAGE DES STYLES DE FOND COLLÉS */
.rich-text-display {
  line-height: 1.6;
  color: var(--text-main);
}

.rich-text-display span,
.rich-text-display p,
.rich-text-display li,
.rich-text-display blockquote,
.ql-editor span,
.ql-editor p,
.ql-editor li {
  background-color: transparent !important;
  background: transparent !important;
  color: inherit !important;
}

.rich-text-display p {
  margin-bottom: 0.5rem;
}

.rich-text-display p:last-child {
  margin-bottom: 0;
}

.rich-text-display ul,
.rich-text-display ol {
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
}

.rich-text-display code {
  background: rgba(0, 0, 0, 0.1);
  padding: 0.15rem 0.3rem;
  border-radius: 4px;
  font-family: monospace;
}

details.challenge-accordion[open] .accordion-chevron {
  transform: rotate(180deg);
}

/* BARRE DE PROGRESSION VIDÉO PERSONNALISÉE COLORÉE SUR LES COULEURS DU THÈME */
.custom-yt-progress-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: var(--radius-pill);
  outline: none;
  cursor: pointer;
  background: linear-gradient(to right, var(--primary) 0%, var(--primary) 0%, var(--border-color) 0%, var(--border-color) 100%);
  transition: height 0.15s ease;
  accent-color: var(--primary);
}

.custom-yt-progress-slider:hover {
  height: 10px;
}

.custom-yt-progress-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg-card);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.custom-yt-progress-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
  background: var(--primary-hover);
}

.custom-yt-progress-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg-card);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.custom-yt-progress-slider::-moz-range-thumb:hover {
  transform: scale(1.3);
  background: var(--primary-hover);
}

/* INTL-TEL-INPUT CUSTOM INTEGRATION */
.iti {
  width: 100%;
}

.iti__country-list {
  background-color: var(--bg-card) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25) !important;
  z-index: 99999 !important;
  border-radius: var(--radius-sm) !important;
}

.iti__country-name,
.iti__dial-code {
  color: var(--text-main) !important;
}

.iti__highlight {
  background-color: var(--bg-card-hover) !important;
}

.iti__selected-dial-code {
  color: var(--text-main) !important;
  font-weight: 700;
}

/* TOP NAVBAR & LANDING COMPONENTS UNIFIÉS */
.landing-topbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1.25rem !important;
  padding: 0.85rem 2rem !important;
  width: 100% !important;
  background: var(--bg-card) !important;
  border-bottom: 1px solid var(--border-color) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  backdrop-filter: blur(14px) !important;
  box-sizing: border-box !important;
}

.brand-highlight {
  color: var(--accent, #f97316) !important;
  font-weight: 900 !important;
}

.landing-nav-actions {
  display: flex !important;
  align-items: center !important;
  gap: 0.85rem !important;
}

.nav-btn-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  color: var(--text-main) !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  text-decoration: none !important;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-sm) !important;
}

.app-footer {
  background: var(--bg-card) !important;
  border-top: 1px solid var(--border-color) !important;
  padding: 1.75rem 1rem !important;
  text-align: center !important;
  font-size: 0.88rem !important;
  color: var(--text-muted) !important;
  font-weight: 600 !important;
  box-sizing: border-box !important;
}

.footer-brand {
  color: var(--text-main) !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
}

.footer-brand i {
  color: var(--primary) !important;
  margin-right: 0.35rem !important;
}

.footer-brand span.brand-highlight,
.footer-brand span {
  color: var(--accent, #f97316) !important;
  font-weight: 900 !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

@media (max-width: 768px) {
  .landing-topbar {
    padding: 0.75rem 1.25rem !important;
  }
}

/* CALENDAR PROGRAMME VIEW - DESIGN ÉPURÉ STYLE CALENDRIER STANDARD */
.calendar-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.view-toggle-btns {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 3px;
}

.view-toggle-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.18s ease;
}

.view-toggle-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.calendar-month-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.85rem;
  padding: 0.4rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  width: fit-content;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  width: 100%;
}

.calendar-day-header {
  text-align: center;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 0;
  border-bottom: 2px solid var(--border-color);
}

.calendar-cell {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.65rem 0.65rem 0.5rem 0.65rem;
  min-height: 95px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.calendar-cell:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

.calendar-cell.is-today {
  border: 2px solid var(--primary) !important;
  background: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.calendar-cell.is-today .calendar-date-num,
.calendar-cell.is-today .calendar-task-title {
  color: #ffffff !important;
}

.calendar-cell.is-today .calendar-day-badge {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

.calendar-cell.is-today .calendar-today-pill {
  background: #ffffff !important;
  color: var(--primary) !important;
  font-weight: 900 !important;
}

/* CASES DATES HORS-PROGRAMME / MOIS PRÉCÉDENT & SUIVANT (CALENDRIER NORMAL) */
.calendar-cell.other-month-cell {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  opacity: 0.55;
  cursor: default;
  min-height: 95px;
}

.calendar-cell.other-month-cell:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border-color);
}

.calendar-cell-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.calendar-day-badge {
  font-size: 0.7rem;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
}

.calendar-cell.is-today .calendar-day-badge {
  background: rgba(249, 115, 22, 0.15);
  color: var(--accent, #f97316);
}

.calendar-date-num {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
}

.calendar-cell.other-month-cell .calendar-date-num {
  color: var(--text-muted);
  font-weight: 600;
}

.calendar-task-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.calendar-cell-footer {
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calendar-today-pill {
  font-size: 0.62rem;
  font-weight: 800;
  background: var(--accent, #f97316);
  color: #ffffff;
  padding: 1px 5px;
  border-radius: 4px;
}

@media (max-width: 900px) {
  .calendar-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

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