      * { margin: 0; padding: 0; box-sizing: border-box; }
      :root { --primary: #6366f1; --primary-dark: #4f46e5; --primary-light: #e0e7ff; --primary-darker: #3730a3; }
      body { font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif; background: #f8f9fa; min-height: 100vh; color: #1a1a1a; -webkit-font-smoothing: antialiased; }

      /* ===========================
         PAGE LOGIN - STYLES
         =========================== */
      .login-page {
        display: flex;
        min-height: 100vh;
      }

      .login-branding {
        display: none;
        width: 40%;
        background: linear-gradient(135deg, #818cf8 0%, #6366f1 50%, #4f46e5 100%);
        padding: 60px;
        color: white;
        position: relative;
        overflow: hidden;
      }

      .login-branding::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 50%, rgba(0,0,0,0.1) 100%);
      }

      .login-branding-content {
        position: relative;
        z-index: 1;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
      }

      .login-branding-logo {
        height: 80px;
        width: auto;
        margin-bottom: 40px;
        filter: brightness(0) invert(1);
        object-fit: contain;
      }

      .login-branding h1 {
        font-size: 32px;
        font-weight: 700;
        margin-bottom: 16px;
      }

      .login-branding p {
        font-size: 18px;
        opacity: 0.9;
        margin-bottom: 40px;
        line-height: 1.6;
      }

      .login-features {
        list-style: none;
      }

      .login-features li {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 15px;
        margin-bottom: 16px;
        opacity: 0.9;
      }

      .login-features li::before {
        content: '✓';
        width: 24px;
        height: 24px;
        background: rgba(255,255,255,0.2);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
      }

      .login-form-container {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px 20px;
        background: white;
      }

      .login-form-wrapper {
        width: 100%;
        max-width: 400px;
      }

      .login-form-logo {
        height: 60px;
        width: auto;
        margin-bottom: 40px;
        display: block;
        object-fit: contain;
      }

      .login-form-title {
        font-size: 24px;
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 8px;
      }

      .login-form-subtitle {
        font-size: 14px;
        color: #6b7280;
        margin-bottom: 32px;
      }

      .login-input-group {
        margin-bottom: 20px;
      }

      .login-input-label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        color: #374151;
        margin-bottom: 8px;
      }

      .login-input-wrapper {
        position: relative;
        display: block;
        z-index: 1;
        cursor: text;
      }

      .login-input {
        width: 100%;
        padding: 14px 16px;
        padding-left: 44px;
        padding-right: 44px;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        font-size: 16px; /* Minimum 16px pour éviter zoom iOS */
        font-family: inherit;
        transition: all 0.2s ease;
        background: #f9fafb;
        display: block;
        position: relative;
        z-index: 2;
      }

      .login-input:focus {
        outline: none;
        border-color: var(--primary);
        background: white;
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
      }

      .login-input-icon {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #9ca3af;
        font-size: 18px;
        pointer-events: none;
        z-index: 1;
      }

      .login-password-toggle {
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        cursor: pointer;
        color: #9ca3af;
        font-size: 18px;
        padding: 4px;
        z-index: 3;
      }

      .login-password-toggle:hover {
        color: #6b7280;
      }

      .login-button {
        width: 100%;
        padding: 14px;
        background: var(--primary);
        color: white;
        border: none;
        border-radius: 10px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        margin-top: 8px;
      }

      .login-button:hover {
        background: var(--primary-dark);
      }

      .login-button:active {
        transform: scale(0.98);
      }

      .login-button:disabled {
        background: #9ca3af;
        cursor: not-allowed;
      }

      .login-error {
        background: #fef2f2;
        border: 1px solid #fecaca;
        color: #dc2626;
        padding: 12px 16px;
        border-radius: 8px;
        font-size: 13px;
        margin-bottom: 20px;
        display: none;
      }

      .login-error.visible {
        display: flex;
        align-items: center;
        gap: 8px;
      }

      .login-security {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-top: 24px;
        font-size: 12px;
        color: #9ca3af;
      }

      .login-footer {
        text-align: center;
        margin-top: 40px;
        padding-top: 24px;
        border-top: 1px solid #e5e7eb;
        font-size: 11px;
        color: #9ca3af;
      }

      .login-info-message {
        background: #eff6ff;
        border: 1px solid #bfdbfe;
        color: #1e40af;
        padding: 12px 16px;
        border-radius: 8px;
        font-size: 13px;
        margin-bottom: 24px;
        display: flex;
        align-items: center;
        gap: 8px;
      }

      /* Desktop login */
      @media (min-width: 1024px) {
        .login-branding {
          display: flex;
        }

        .login-form-logo {
          display: none;
        }

        .login-form-wrapper {
          max-width: 380px;
        }
      }

      /* ===========================
         DASHBOARD - STYLES (existants)
         =========================== */
      .dashboard-page {
        display: none;
      }

      .dashboard-page.visible {
        display: block;
      }

      .container { max-width: 430px; margin: 0 auto; background: white; min-height: 100vh; }
      .header { background: white; padding: 20px; border-bottom: 1px solid #e5e7eb; }
      .logo-container { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
      .logo { height: 60px; width: auto; }
      .sync-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--primary); font-weight: 500; }
      .sync-dot { width: 6px; height: 6px; background: var(--primary); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
      .sync-dot.stale { background: #f59e0b; animation: none; }
      .sync-time { color: #6b7280; font-weight: 400; }
      @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
      .greeting { font-size: 20px; color: #374151; font-weight: 700; }
      
      /* Pull-to-refresh */
      .pull-indicator {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.9) 100%);
        transform: translateY(-100%);
        transition: transform 0.2s ease;
        z-index: 1000;
        pointer-events: none;
      }
      .pull-indicator.visible {
        transform: translateY(0);
      }
      .pull-indicator.refreshing .pull-spinner {
        animation: spin 0.8s linear infinite;
      }
      .pull-spinner {
        width: 24px;
        height: 24px;
        border: 2.5px solid #e5e7eb;
        border-top-color: var(--primary);
        border-radius: 50%;
        transition: transform 0.15s ease;
      }
      .pull-text {
        margin-left: 12px;
        font-size: 13px;
        font-weight: 500;
        color: #6b7280;
      }
      @keyframes spin { to { transform: rotate(360deg); } }
      
      .user-menu { display: flex; align-items: center; gap: 12px; }
      .user-name { font-size: 13px; color: #6b7280; }
      .logout-button { 
        background: none; 
        border: 1px solid #e5e7eb; 
        padding: 6px 12px; 
        border-radius: 6px; 
        font-size: 12px; 
        color: #6b7280; 
        cursor: pointer;
        transition: all 0.2s;
      }
      .logout-button:hover { border-color: #ef4444; color: #ef4444; }

      /* ===========================
         NAVIGATION - RESPONSIVE
         =========================== */
      
      /* TABS DESKTOP (≥ 768px) */
      .tabs { 
        display: none; 
        background: white; 
        border-bottom: 1px solid #e5e7eb; 
        padding: 0 20px;
        height: 168px;
        min-height: 168px;
        max-height: 168px;
        flex-shrink: 0;
      }
      .tab { 
        flex: 1; 
        text-align: center; 
        padding: 14px 0; 
        color: #6b7280; 
        font-size: 14px; 
        font-weight: 500; 
        cursor: pointer; 
        border-bottom: 3px solid transparent; 
        transition: all 0.2s ease; 
        display: flex; 
        align-items: center; 
        justify-content: center; 
        gap: 8px;
        height: 168px;
      }
      .tab.active { color: var(--primary); border-bottom-color: var(--primary); }
      .tab.hidden { display: none; }
      .tab-logo { display: flex; align-items: center; }
      .tab-logo svg { display: block; }
      .tab-logo-free svg { color: #CC0000; }
      .tab-logo-mint svg { color: #00aa73; }
      .tab-logo-reglements svg { color: #374151; }
      .tab-text { display: none; }

      /* Bottom Navigation Bar - Mobile */
      .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 430px;
        height: 64px;
        background: white;
        border-top: 1px solid #e5e7eb;
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 0 8px;
        padding-bottom: env(safe-area-inset-bottom, 0);
        z-index: 1000;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
      }

      .bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 8px 4px;
        cursor: pointer;
        transition: all 0.2s ease;
        border-radius: 12px;
        margin: 4px;
      }

      .bottom-nav-item:active {
        background: #f3f4f6;
        transform: scale(0.95);
      }

      .bottom-nav-item.hidden {
        display: none;
      }

      .bottom-nav-icon {
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        transition: all 0.2s ease;
      }

      .bottom-nav-icon svg {
        width: 22px;
        height: 22px;
        transition: all 0.2s ease;
      }

      .bottom-nav-label {
        font-size: 10px;
        font-weight: 500;
        color: #9ca3af;
        transition: all 0.2s ease;
      }

      /* États actifs par thème */
      .bottom-nav-item.active .bottom-nav-label {
        font-weight: 600;
      }

      .bottom-nav-item[data-tab="free"] .bottom-nav-icon svg { color: #CC0000; opacity: 0.5; }
      .bottom-nav-item[data-tab="free"].active .bottom-nav-icon svg { opacity: 1; }
      .bottom-nav-item[data-tab="free"].active .bottom-nav-icon { background: #fee2e2; }
      .bottom-nav-item[data-tab="free"].active .bottom-nav-label { color: #CC0000; }

      .bottom-nav-item[data-tab="mint"] .bottom-nav-icon svg { color: #00aa73; opacity: 0.5; }
      .bottom-nav-item[data-tab="mint"].active .bottom-nav-icon svg { opacity: 1; }
      .bottom-nav-item[data-tab="mint"].active .bottom-nav-icon { background: #d1fae5; }
      .bottom-nav-item[data-tab="mint"].active .bottom-nav-label { color: #00aa73; }

      .bottom-nav-item[data-tab="reglements"] .bottom-nav-icon svg { color: #374151; opacity: 0.5; }
      .bottom-nav-item[data-tab="reglements"].active .bottom-nav-icon svg { opacity: 1; }
      .bottom-nav-item[data-tab="reglements"].active .bottom-nav-icon { background: #f3f4f6; }
      .bottom-nav-item[data-tab="reglements"].active .bottom-nav-label { color: #374151; }

      .content { padding: 20px; padding-bottom: 84px; }

      /* ===========================
         RESPONSIVE NAVIGATION
         =========================== */
      
      /* TABLETTE PORTRAIT (768px - 1024px) : Bottom nav */
      @media (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
        .tabs {
          display: none;
        }
        
        .bottom-nav {
          display: flex;
          max-width: 768px;
        }
        
        .content {
          padding-bottom: 84px;
        }
        
        .footer {
          padding-bottom: 84px;
        }
      }
      
      /* TABLETTE PAYSAGE (≥ 1024px width) ou DESKTOP : Tabs en haut */
      @media (min-width: 1024px), 
             (min-width: 768px) and (orientation: landscape) {
        .tabs {
          display: flex;
        }
        
        .bottom-nav {
          display: none;
        }
        
        .content {
          padding-bottom: 20px;
        }
        
        .footer {
          padding-bottom: 24px;
        }
        
        .container {
          max-width: 900px;
        }
      }
      
      /* MOBILE (< 768px) : Bottom nav */
      @media (max-width: 767px) {
        .tabs {
          display: none;
        }
        
        .bottom-nav {
          display: flex;
        }
        
        .content {
          padding-bottom: 84px;
        }
        
        .footer {
          padding-bottom: 84px;
        }
      }
      .tab-content { display: none; }
      .tab-content.active { display: block; }
      .stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
      .stat-card { background: white; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; transition: border-color 0.2s ease; }
      .stat-card:active { border-color: var(--primary); }
      .stat-label { font-size: 11px; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; margin-bottom: 8px; }
      .stat-value { font-size: 28px; font-weight: 700; color: #1a1a1a; line-height: 1; letter-spacing: -0.5px; }
      .stat-change { font-size: 12px; color: var(--primary); font-weight: 500; margin-top: 6px; }
      .stat-change.negative { color: #ef4444; }
      .chart-card { background: white; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; margin-bottom: 20px; }
      .chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
      .chart-title { font-size: 13px; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
      .chart-filters { display: flex; gap: 6px; }
      .chart-filter { padding: 6px 12px; border: 1px solid #e5e7eb; background: white; border-radius: 6px; font-size: 12px; font-weight: 500; color: #6b7280; cursor: pointer; transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 6px; }
      .chart-filter:hover { border-color: var(--primary); color: var(--primary); }
      .chart-filter.active { background: var(--primary); border-color: var(--primary); color: white; }
      .chart-filter.active svg { fill: white; }
      
      /* Boutons source avec logos */
      .chart-filter.source-mint svg { fill: #00aa73; }
      .chart-filter.source-mint:hover { border-color: #00aa73; color: #00aa73; }
      .chart-filter.source-mint.active { background: #00aa73; border-color: #00aa73; color: white; }
      .chart-filter.source-mint.active svg { fill: white; }
      
      .chart-filter.source-free svg { fill: #CC0000; }
      .chart-filter.source-free:hover { border-color: #CC0000; color: #CC0000; }
      .chart-filter.source-free.active { background: #CC0000; border-color: #CC0000; color: white; }
      .chart-filter.source-free.active svg { fill: white; }
      
      .chart-filter.source-protected svg { fill: #f97316; }
      .chart-filter.source-protected:hover { border-color: #f97316; color: #f97316; }
      .chart-filter.source-protected.active { background: #f97316; border-color: #f97316; color: white; }
      .chart-filter.source-protected.active svg { fill: white; }
      
      .chart-container { position: relative; height: 220px; }
      .section-title { font-size: 12px; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; margin-bottom: 12px; }
      .list-card { background: white; border: 1px solid #e5e7eb; border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
      .list-item { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid #f3f4f6; cursor: pointer; transition: all 0.2s ease; position: relative; }
      .list-item:last-child { border-bottom: none; }
      .list-item::after { content: "›"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 24px; color: #d1d5db; transition: all 0.2s ease; }
      .list-item:hover { background: #f9fafb; }
      .list-item:hover::after { color: var(--primary); transform: translateY(-50%) translateX(4px); }
      .list-item-left { display: flex; align-items: center; gap: 12px; }
      .list-icon { width: 40px; height: 40px; background: #f3f4f6; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
      .list-name { font-size: 14px; font-weight: 600; color: #1a1a1a; margin-bottom: 2px; }
      .list-subtitle { font-size: 12px; color: #6b7280; }
      .list-value { font-size: 18px; font-weight: 700; color: #1a1a1a; text-align: right; padding-right: 20px; }
      .list-value-subtitle { font-size: 11px; color: #6b7280; text-align: right; margin-top: 2px; padding-right: 20px; }
      .summary-card { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); border-radius: 16px; padding: 24px; color: white; margin-bottom: 20px; }
      .summary-title { font-size: 13px; opacity: 0.9; margin-bottom: 12px; font-weight: 500; }
      .summary-amount { font-size: 36px; font-weight: 700; margin-bottom: 16px; letter-spacing: -1px; }
      .summary-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
      .summary-stat { text-align: center; }
      .summary-stat-value { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
      .summary-stat-label { font-size: 11px; opacity: 0.8; }
      .action-button { width: 100%; background: var(--primary); color: white; border: none; border-radius: 12px; padding: 16px; font-size: 15px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; transition: background 0.2s ease; }
      .action-button:active { background: var(--primary-dark); transform: scale(0.98); }
      .action-button:disabled { background: #9ca3af; cursor: not-allowed; }
      .footer { text-align: center; padding: 24px 20px; padding-bottom: 84px; color: #9ca3af; font-size: 11px; }
      .divider { height: 1px; background: #e5e7eb; margin: 20px 0; }
      .loading { text-align: center; padding: 40px; color: #6b7280; }
      .loading-spinner { width: 40px; height: 40px; border: 3px solid #e5e7eb; border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 16px; }
      @keyframes spin { to { transform: rotate(360deg); } }
      
      /* Thèmes par onglet */
      body.theme-free { --primary: #CC0000; --primary-dark: #aa0000; --primary-light: #fee2e2; --primary-darker: #7f0000; }
      body.theme-mint { --primary: #00aa73; --primary-dark: #008f60; --primary-light: #d1fae5; --primary-darker: #006647; }
      body.theme-protected, body.theme-reglements { --primary: #374151; --primary-dark: #1f2937; --primary-light: #f3f4f6; --primary-darker: #111827; }

      /* Règlements styles */
      .reglement-card {
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 12px;
      }
      .reglement-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
      }
      .reglement-mois {
        font-size: 14px;
        font-weight: 600;
        color: #1a1a1a;
      }
      .reglement-source {
        font-size: 11px;
        padding: 4px 8px;
        border-radius: 4px;
        font-weight: 600;
      }
      .reglement-source.free { background: #fee2e2; color: #CC0000; }
      .reglement-source.mint { background: #d1fae5; color: #00aa73; }
      .reglement-source.protected { background: #e0e7ff; color: #6366f1; }

      .reglement-cc {
        font-size: 11px;
        font-weight: 600;
        color: #64748b;
        background: #f1f5f9;
        padding: 4px 8px;
        border-radius: 6px;
      }
      .reglement-details {
        display: flex;
        justify-content: space-between;
        align-items: center;
      }
      .reglement-montant {
        font-size: 20px;
        font-weight: 700;
        color: #1a1a1a;
      }
      .reglement-statut {
        font-size: 12px;
        font-weight: 500;
      }
      .reglement-statut.paye { color: var(--primary); }
      .reglement-statut.attente { color: #94a3b8; }
      .reglement-statut.partiel { color: #64748b; }
      .reglement-date {
        font-size: 11px;
        color: #6b7280;
        margin-top: 4px;
      }
      
      /* Pagination règlements */
      .reglements-pagination {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
        margin-top: 16px;
        padding: 12px;
        background: #f9fafb;
        border-radius: 12px;
      }
      .pagination-btn {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 10px 16px;
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 500;
        color: #374151;
        cursor: pointer;
        transition: all 0.2s ease;
      }
      .pagination-btn:hover {
        background: #f3f4f6;
        border-color: #d1d5db;
      }
      .pagination-btn span {
        font-size: 14px;
        opacity: 0.7;
      }
      .pagination-btn.secondary {
        background: #f3f4f6;
        color: #6b7280;
      }
      .pagination-btn.tertiary {
        background: transparent;
        border-color: transparent;
        color: #9ca3af;
        font-size: 12px;
      }
      .pagination-btn.tertiary:hover {
        background: #f3f4f6;
        color: #6b7280;
      }
      
      .reglement-summary {
        background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
        border-radius: 16px;
        padding: 24px;
        color: white;
        margin-bottom: 20px;
      }

      .filter-buttons-bar {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 16px;
        padding: 12px 16px;
        background: #f8fafc;
        border-radius: 12px;
        border: 1px solid #e2e8f0;
        overflow-x: auto;
      }

      .filter-buttons {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
      }

      .filter-label {
        font-size: 14px;
        font-weight: 500;
        color: #64748b;
      }

      .filter-select {
        flex: 1;
        padding: 10px 14px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        font-size: 14px;
        font-family: inherit;
        background: white;
        color: #1e293b;
        cursor: pointer;
        transition: border-color 0.2s;
      }

      .filter-select:focus {
        outline: none;
        border-color: var(--primary);
      }

      @media (min-width: 768px) {
        .container { max-width: 768px; }
        .stats-grid { grid-template-columns: repeat(4, 1fr); }
        .content { padding: 30px; }
        .chart-container { height: 250px; }
        .logo { height: 80px; }
      }

      @media (min-width: 1024px) {
        .container { max-width: 100%; display: grid; grid-template-columns: 280px 1fr; grid-template-rows: auto 1fr; }
        .header { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 20px 40px; }
        .logo-container { margin: 0; }
        .logo { height: 70px; }
        .greeting { display: block; font-size: 24px; }
        .tabs { grid-column: 1; grid-row: 2; flex-direction: column; border-bottom: none; border-right: 1px solid #e5e7eb; padding: 30px 20px; gap: 8px; }
        .tab { text-align: center; padding: 14px 20px; border-bottom: none; border-left: 3px solid transparent; border-radius: 8px; flex-direction: row; justify-content: center; gap: 12px; }
        .tab:hover { background: #f9fafb; }
        .tab.active { background: var(--primary-light); color: var(--primary-darker); border-left-color: var(--primary); }
        .tab-logo { display: flex; align-items: center; }
        .tab-text { display: none; }
        .content { grid-column: 2; grid-row: 2; padding: 40px; max-width: 1400px; }
        .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
        .stat-card { padding: 24px; }
        .stat-value { font-size: 32px; }
        .chart-container { height: 300px; }
        .desktop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
        .summary-card { padding: 32px; }
        .summary-amount { font-size: 48px; }
        .summary-stat-value { font-size: 28px; }
      }

      .drawer-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px); z-index: 999; opacity: 0; visibility: hidden; pointer-events: none; transition: all 0.3s ease; }
      .drawer-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }
      .drawer { position: fixed; bottom: 0; left: 0; right: 0; background: white; border-radius: 24px 24px 0 0; max-height: 85vh; overflow-y: auto; z-index: 1000; transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2); pointer-events: none; visibility: hidden; padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
      .drawer.active { transform: translateY(0); pointer-events: auto; visibility: visible; }
      .drawer-handle { width: 40px; height: 4px; background: #d1d5db; border-radius: 2px; margin: 12px auto; }
      .drawer-header { padding: 0 24px 20px; border-bottom: 1px solid #e5e7eb; position: sticky; top: 0; background: white; z-index: 10; }
      .drawer-title { font-size: 20px; font-weight: 700; color: #1a1a1a; margin-bottom: 4px; }
      .drawer-subtitle { font-size: 13px; color: #6b7280; }
      .drawer-close { position: absolute; top: 16px; right: calc(20px + env(safe-area-inset-right)); width: 32px; height: 32px; background: #f3f4f6; border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; }
      .drawer-content { padding: 24px; }
      .month-card { background: #f9fafb; border-radius: 12px; padding: 20px; margin-bottom: 12px; border-left: 4px solid var(--primary); }
      .month-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
      .month-name { font-size: 16px; font-weight: 600; color: #1a1a1a; }
      .month-total { font-size: 18px; font-weight: 700; color: var(--primary); }
      .month-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 20px; }
      .month-stat { display: flex; flex-direction: column; padding: 6px 0; }
      .month-stat-label { font-size: 11px; color: #6b7280; text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 2px; }
      .month-stat-value { font-size: 16px; font-weight: 600; color: #1a1a1a; }
      .month-stat-value.positive { color: var(--primary); }
      .month-stat-value.negative { color: #64748b; }
      .month-stat-value.oublie { color: var(--primary); opacity: 0.7; }
      .summary-stats-drawer { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 24px; }
      .summary-stat-drawer { background: white; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; text-align: center; }
      .summary-stat-drawer-value { font-size: 24px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
      .summary-stat-drawer-label { font-size: 11px; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }

      @media (min-width: 1024px) {
        .drawer { position: fixed; top: 50%; left: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%) scale(0.95); width: 700px; max-width: 90vw; max-height: 90vh; border-radius: 20px; opacity: 0; pointer-events: none; visibility: hidden; }
        .drawer.active { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; visibility: visible; }
        .drawer-handle { display: none; }
        .drawer-header { padding: 24px 32px; }
        .drawer-title { font-size: 24px; }
        .drawer-content { padding: 32px; }
        .month-stats { grid-template-columns: repeat(3, 1fr); }
        .summary-stats-drawer { grid-template-columns: repeat(4, 1fr); }
      }

      /* Admin badge */
      .admin-badge {
        background: #fef3c7;
        color: #92400e;
        font-size: 10px;
        padding: 2px 6px;
        border-radius: 4px;
        font-weight: 600;
        margin-left: 8px;
      }

      /* Info callout for partner */
      .partner-info {
        background: #eff6ff;
        border: 1px solid #bfdbfe;
        border-radius: 8px;
        padding: 12px 16px;
        margin-bottom: 20px;
        font-size: 13px;
        color: #1e40af;
        display: flex;
        align-items: center;
        gap: 8px;
      }

      /* ===========================
         SECTION RÉMUNÉRATION ADMIN
         =========================== */
      .remuneration-section {
        background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
        border: 1px solid #bbf7d0;
        border-radius: 16px;
        padding: 20px;
        margin-bottom: 20px;
        transition: background 0.3s ease, border-color 0.3s ease;
      }
      
      .remuneration-section.source-free {
        background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
        border-color: #fecaca;
      }
      
      .remuneration-section.source-free .remuneration-title {
        color: #991b1b;
      }
      
      .remuneration-section.source-free .remuneration-total {
        color: #b91c1c;
      }
      
      .remuneration-section.source-free .remuneration-total-label {
        color: #991b1b;
      }
      
      .remuneration-section.source-free .remuneration-badge {
        background: #fef2f2;
        color: #b91c1c;
      }
      
      .remuneration-section.source-free .remuneration-card.active {
        border-color: #f87171;
        background: #fef2f2;
      }
      
      .remuneration-section.source-free .remuneration-chart-filter.active {
        background: #dc2626;
        color: white;
      }

      .remuneration-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 16px;
      }

      .remuneration-title {
        font-size: 13px;
        font-weight: 600;
        color: #166534;
        margin-bottom: 4px;
      }

      .remuneration-total {
        font-size: 28px;
        font-weight: 700;
        color: #15803d;
        line-height: 1;
      }

      .remuneration-total-label {
        font-size: 11px;
        color: #6b7280;
        margin-top: 2px;
      }

      .remuneration-badge {
        background: #dcfce7;
        border: 1px solid #86efac;
        color: #166534;
        font-size: 11px;
        font-weight: 600;
        padding: 4px 10px;
        border-radius: 20px;
        display: flex;
        align-items: center;
        gap: 4px;
      }

      .remuneration-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-bottom: 16px;
      }

      .remuneration-card {
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        padding: 12px;
        transition: all 0.2s ease;
        cursor: pointer;
      }

      .remuneration-card:hover {
        border-color: #22c55e;
        box-shadow: 0 2px 8px rgba(34, 197, 94, 0.1);
      }

      .remuneration-card.active {
        border-color: #22c55e;
        background: #f0fdf4;
      }

      .remuneration-card-icon {
        width: 28px;
        height: 28px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        margin-bottom: 8px;
      }

      .remuneration-card-icon.mint { background: rgba(0, 170, 115, 0.15); }
      .remuneration-card-icon.free { background: rgba(204, 0, 0, 0.1); }
      .remuneration-card-icon.protected { background: rgba(59, 130, 246, 0.1); }

      .remuneration-card-amount {
        font-size: 16px;
        font-weight: 700;
        color: #111827;
        margin-bottom: 2px;
      }

      .remuneration-card-label {
        font-size: 10px;
        color: #6b7280;
        text-transform: uppercase;
        letter-spacing: 0.3px;
      }

      .remuneration-card-detail {
        font-size: 10px;
        color: #9ca3af;
        margin-top: 6px;
        padding-top: 6px;
        border-top: 1px solid #f3f4f6;
      }

      .remuneration-chart-container {
        background: white;
        border-radius: 10px;
        padding: 12px;
        border: 1px solid #e5e7eb;
        width: 80%;
        max-height: 210px;
        margin: 0 auto;
      }

      .remuneration-chart-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 8px;
      }

      .remuneration-chart-title {
        font-size: 12px;
        font-weight: 600;
        color: #374151;
      }

      .remuneration-chart-filters {
        display: flex;
        gap: 4px;
      }

      .remuneration-chart-filter {
        background: #f3f4f6;
        border: none;
        color: #6b7280;
        font-size: 10px;
        padding: 3px 8px;
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.2s;
      }

      .remuneration-chart-filter:hover {
        background: #e5e7eb;
      }

      .remuneration-chart-filter.active {
        background: #22c55e;
        color: white;
      }

      .remuneration-breakdown {
        margin-top: 12px;
      }

      .remuneration-breakdown-title {
        font-size: 11px;
        color: #6b7280;
        margin-bottom: 8px;
        font-weight: 500;
      }

      .remuneration-breakdown-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid #f3f4f6;
      }

      .remuneration-breakdown-item:last-child {
        border-bottom: none;
      }

      .remuneration-breakdown-left {
        display: flex;
        align-items: center;
        gap: 8px;
      }

      .remuneration-breakdown-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
      }

      .remuneration-breakdown-dot.mint { background: #00aa73; }
      .remuneration-breakdown-dot.free { background: #CC0000; }
      .remuneration-breakdown-dot.protected { background: #3B82F6; }

      .remuneration-breakdown-name {
        font-size: 12px;
        color: #374151;
      }

      .remuneration-breakdown-value {
        font-size: 12px;
        font-weight: 600;
        color: #111827;
      }

      .remuneration-breakdown-sub {
        font-size: 10px;
        color: #9ca3af;
        margin-left: 14px;
        margin-top: -4px;
        margin-bottom: 4px;
      }

      /* Progress bar pour objectifs */
      .remuneration-progress {
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 10px 12px;
        margin-bottom: 12px;
      }

      .remuneration-progress-header {
        display: flex;
        justify-content: space-between;
        margin-bottom: 6px;
      }

      .remuneration-progress-label {
        font-size: 11px;
        color: #6b7280;
      }

      .remuneration-progress-value {
        font-size: 11px;
        font-weight: 600;
        color: #22c55e;
      }

      .remuneration-progress-bar {
        height: 4px;
        background: #e5e7eb;
        border-radius: 2px;
        overflow: hidden;
      }

      .remuneration-progress-fill {
        height: 100%;
        background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
        border-radius: 2px;
        transition: width 0.5s ease;
      }

      .remuneration-info {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-top: 8px;
        padding: 8px 10px;
        background: #f0fdf4;
        border-radius: 6px;
        font-size: 11px;
        color: #166534;
      }

      .remuneration-info-box {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        margin-top: 16px;
        padding: 12px 14px;
        background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
        border-radius: 10px;
        font-size: 12px;
        color: #92400e;
        border: 1px solid #fcd34d;
      }

      .remuneration-info-box.source-free {
        background: linear-gradient(135deg, #fee2e2 0%, #fef2f2 100%);
        border-color: #fca5a5;
        color: #991b1b;
      }

      .remuneration-info-icon {
        font-size: 16px;
        flex-shrink: 0;
      }

      .remuneration-info-text {
        line-height: 1.5;
      }

      .remuneration-info-text strong {
        font-weight: 600;
      }

      /* ===========================
         PAGE ATTENTE (Maintenance)
         Design moderne 2025-2026
         =========================== */
      .waiting-page {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(145deg, #f8fafc 0%, #eef2ff 50%, #e0e7ff 100%);
        padding: 20px;
        overflow-y: auto;
        overflow-x: hidden;
      }

      /* Formes abstraites en arrière-plan */
      .waiting-bg {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        overflow: hidden;
        pointer-events: none;
      }

      .waiting-shape {
        position: absolute;
        border-radius: 50%;
        filter: blur(80px);
        opacity: 0.5;
      }

      .waiting-shape-1 {
        width: 400px;
        height: 400px;
        background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
        top: -100px;
        right: -100px;
        animation: float1 20s ease-in-out infinite;
      }

      .waiting-shape-2 {
        width: 300px;
        height: 300px;
        background: linear-gradient(135deg, #a5b4fc 0%, #818cf8 100%);
        bottom: -50px;
        left: -50px;
        animation: float2 25s ease-in-out infinite;
      }

      .waiting-shape-3 {
        width: 200px;
        height: 200px;
        background: linear-gradient(135deg, #c7d2fe 0%, #a5b4fc 100%);
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        animation: float3 15s ease-in-out infinite;
      }

      @keyframes float1 {
        0%, 100% { transform: translate(0, 0) scale(1); }
        50% { transform: translate(-30px, 30px) scale(1.1); }
      }

      @keyframes float2 {
        0%, 100% { transform: translate(0, 0) scale(1); }
        50% { transform: translate(20px, -20px) scale(1.05); }
      }

      @keyframes float3 {
        0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
        50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.5; }
      }

      .waiting-container {
        position: relative;
        z-index: 1;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 32px;
        padding: 48px 40px;
        text-align: center;
        max-width: 440px;
        width: 100%;
        box-shadow: 
          0 4px 6px rgba(0, 0, 0, 0.02),
          0 12px 24px rgba(99, 102, 241, 0.08),
          0 24px 48px rgba(99, 102, 241, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.8);
      }

      .waiting-logo {
        height: 48px;
        width: auto;
        margin-bottom: 32px;
        opacity: 0.9;
      }

      /* Icône animée avec anneaux */
      .waiting-icon-wrapper {
        position: relative;
        width: 80px;
        height: 80px;
        margin: 0 auto 28px;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .waiting-icon-ring {
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        border: 2px solid transparent;
        border-top-color: var(--primary);
        border-right-color: var(--primary-light);
        animation: spin 3s linear infinite;
      }

      .waiting-icon-ring-2 {
        width: 90%;
        height: 90%;
        border-top-color: var(--primary-light);
        border-right-color: transparent;
        border-bottom-color: var(--primary);
        animation: spin 2s linear infinite reverse;
      }

      @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
      }

      .waiting-icon {
        width: 32px;
        height: 32px;
        color: var(--primary);
        animation: pulse-icon 2s ease-in-out infinite;
      }

      @keyframes pulse-icon {
        0%, 100% { opacity: 0.7; transform: scale(1); }
        50% { opacity: 1; transform: scale(1.1); }
      }

      .waiting-content {
        margin-bottom: 28px;
      }

      .waiting-title {
        font-size: 26px;
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 10px;
        letter-spacing: -0.5px;
      }

      .waiting-message {
        font-size: 15px;
        color: #6b7280;
        line-height: 1.6;
        max-width: 320px;
        margin: 0 auto;
      }

      /* Carte date de retour */
      .waiting-date-card {
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        border-radius: 20px;
        padding: 24px 28px;
        margin-bottom: 24px;
        position: relative;
        overflow: hidden;
      }

      .waiting-date-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 50%);
        pointer-events: none;
      }

      .waiting-date-label {
        font-size: 11px;
        color: rgba(255, 255, 255, 0.85);
        text-transform: uppercase;
        letter-spacing: 1.5px;
        font-weight: 600;
        margin-bottom: 8px;
      }

      .waiting-date {
        font-size: 32px;
        font-weight: 700;
        color: white;
        letter-spacing: -0.5px;
      }

      .waiting-greeting {
        font-size: 14px;
        color: #6b7280;
        margin-bottom: 28px;
      }

      .waiting-greeting span {
        color: var(--primary);
        font-weight: 600;
      }

      .waiting-actions {
        display: flex;
        justify-content: center;
        gap: 12px;
      }

      .waiting-btn {
        padding: 12px 24px;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 600;
        font-family: inherit;
        cursor: pointer;
        transition: all 0.2s ease;
        border: none;
      }

      .waiting-btn-secondary {
        background: #f3f4f6;
        color: #6b7280;
      }

      .waiting-btn-secondary:hover {
        background: #e5e7eb;
        color: #1a1a1a;
        transform: translateY(-1px);
      }

      .waiting-footer {
        margin-top: 32px;
        font-size: 12px;
        color: #9ca3af;
        letter-spacing: 0.5px;
      }

      /* Responsive */
      @media (max-width: 480px) {
        .waiting-container {
          padding: 36px 24px;
          border-radius: 24px;
        }

        .waiting-title {
          font-size: 22px;
        }

        .waiting-date {
          font-size: 26px;
        }

        .waiting-shape-1 {
          width: 250px;
          height: 250px;
        }

        .waiting-shape-2 {
          width: 200px;
          height: 200px;
        }
      }

      /* Petite hauteur d'écran */
      @media (max-height: 650px) {
        .waiting-page {
          align-items: flex-start;
          padding: 20px;
        }

        .waiting-container {
          padding: 24px 20px;
          margin: auto 0;
          border-radius: 20px;
        }

        .waiting-logo {
          display: none;
        }

        .waiting-icon-wrapper {
          width: 50px;
          height: 50px;
          margin-bottom: 16px;
        }

        .waiting-icon {
          width: 20px;
          height: 20px;
        }

        .waiting-content {
          margin-bottom: 20px;
        }

        .waiting-title {
          font-size: 20px;
          margin-bottom: 6px;
        }

        .waiting-message {
          font-size: 13px;
        }

        .waiting-date-card {
          padding: 16px 20px;
          margin-bottom: 16px;
          border-radius: 14px;
        }

        .waiting-date-label {
          font-size: 10px;
          margin-bottom: 4px;
        }

        .waiting-date {
          font-size: 22px;
        }

        .waiting-greeting {
          font-size: 13px;
          margin-bottom: 20px;
        }

        .waiting-btn {
          padding: 10px 20px;
          font-size: 13px;
        }

        .waiting-footer {
          margin-top: 20px;
          font-size: 11px;
        }

        .waiting-shape {
          display: none;
        }
      }
