:root { --horaires-blue-950: #061c2f; --horaires-blue-900: #082e4f; --horaires-blue-800: #0d3d67; --horaires-blue-700: #11507e; --horaires-blue-600: #1d5f90; --horaires-blue-500: #0088ce; --horaires-blue-400: #38bdf8; --horaires-blue-100: #e0f2fe; --horaires-blue-50: #f0f9ff; --horaires-surface: #ffffff; --horaires-surface-soft: #f8fafc; --horaires-surface-card: #ffffff; --horaires-border: #e2e8f0; --horaires-border-soft: #edf2f7; --horaires-text: #0f172a; --horaires-muted: #64748b; --horaires-shadow-soft: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04); --horaires-shadow-card: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04); --horaires-shadow-strong: 0 20px 40px -15px rgba(8, 46, 79, 0.35); --horaires-radius-sm: 8px; --horaires-radius-md: 12px; --horaires-radius-lg: 16px; --horaires-radius-xl: 20px; } /* Base Layout */ .horaires-page-root { background: radial-gradient(circle at 10% 10%, rgba(13, 61, 103, 0.04) 0%, transparent 40%), radial-gradient(circle at 90% 20%, rgba(0, 136, 206, 0.05) 0%, transparent 50%), #f8fafc; min-height: 100vh; width: 100%; } .horaires-modern-container { max-width: 1540px; margin: 0 auto; padding: 24px 32px 60px; box-sizing: border-box; } /* 1. HERO BANNER */ .horaires-hero-banner { background: linear-gradient(135deg, #082e4f 0%, #0d3d67 40%, #11507e 75%, #0088ce 100%); border-radius: var(--horaires-radius-xl); color: #ffffff; padding: 32px 36px; margin-bottom: 24px; display: flex; justify-content: space-between; align-items: center; gap: 24px; box-shadow: var(--horaires-shadow-strong); position: relative; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.12); } .horaires-hero-banner::after { content: ''; position: absolute; top: -40%; right: -10%; width: 420px; height: 420px; background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 70%); border-radius: 50%; pointer-events: none; } .horaires-hero-content { max-width: 820px; position: relative; z-index: 2; } .horaires-hero-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; } .horaires-kicker-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(8px); padding: 4px 12px; border-radius: 9999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #e0f2fe; border: 1px solid rgba(255, 255, 255, 0.18); } .horaires-hero-title { margin: 0 0 10px; font-size: 32px; font-weight: 800; letter-spacing: -0.02em; color: #ffffff !important; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); } .horaires-hero-subtitle { margin: 0; font-size: 14.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.92); } .horaires-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; position: relative; z-index: 2; flex-shrink: 0; } /* 2. KPI STAT CARDS */ .horaires-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-bottom: 24px; } .horaires-kpi-card { background: var(--horaires-surface); border: 1px solid var(--horaires-border); border-radius: var(--horaires-radius-lg); padding: 20px 22px; display: flex; align-items: center; gap: 18px; box-shadow: var(--horaires-shadow-soft); transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1); cursor: pointer; user-select: none; } .horaires-kpi-card:hover { transform: translateY(-2px); box-shadow: var(--horaires-shadow-card); border-color: #cbd5e1; } .horaires-kpi-card.active { border-color: var(--horaires-blue-500); background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%); box-shadow: 0 0 0 2px var(--horaires-blue-500), var(--horaires-shadow-card); } .horaires-kpi-icon { width: 52px; height: 52px; border-radius: var(--horaires-radius-md); display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; } .kpi-blue { background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%); color: #0284c7; } .kpi-emerald { background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%); color: #16a34a; } .kpi-amber { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); color: #d97706; } .kpi-purple { background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%); color: #9333ea; } .horaires-kpi-info { display: flex; flex-direction: column; min-width: 0; } .horaires-kpi-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--horaires-muted); margin-bottom: 3px; } .horaires-kpi-value { font-size: 26px; font-weight: 800; color: var(--horaires-text); line-height: 1.1; letter-spacing: -0.02em; } .horaires-kpi-subtext { font-size: 11.5px; color: #94a3b8; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* 3. SEGMENTED MAIN TABS */ .horaires-main-tabs-nav { display: flex; gap: 8px; background: #ffffff; padding: 8px; border-radius: var(--horaires-radius-lg); border: 1px solid var(--horaires-border); box-shadow: var(--horaires-shadow-soft); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; } .horaires-main-tabs-nav::-webkit-scrollbar { display: none; } .horaires-main-tab-btn { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border: none; background: transparent; border-radius: var(--horaires-radius-md); color: var(--horaires-muted); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all 0.18s ease; white-space: nowrap; } .horaires-main-tab-btn:hover { background: var(--horaires-surface-soft); color: var(--horaires-text); } .horaires-main-tab-btn.active { background: linear-gradient(135deg, #0d3d67 0%, #11507e 100%); color: #ffffff; box-shadow: 0 4px 12px rgba(13, 61, 103, 0.25); } .horaires-main-tab-btn.active wcs-mat-icon { color: #38bdf8; } .horaires-main-tab-badge { background: rgba(15, 23, 42, 0.08); color: var(--horaires-muted); padding: 2px 8px; border-radius: 9999px; font-size: 11px; font-weight: 700; transition: all 0.18s ease; } .horaires-main-tab-btn.active .horaires-main-tab-badge { background: rgba(255, 255, 255, 0.2); color: #ffffff; } /* 4. WORKSPACE & SIDEBAR (Horaires Tab) */ .horaires-workspace { display: flex; min-height: 640px; border-radius: var(--horaires-radius-lg); overflow: hidden; border: 1px solid var(--horaires-border); background: #ffffff; box-shadow: var(--horaires-shadow-card); } .horaires-lines-sidebar { flex-shrink: 0; background: linear-gradient(180deg, #092e4f 0%, #0d3d67 50%, #11507e 100%); color: #e2e8f0; transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), min-width 0.25s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; position: relative; border-right: 1px solid rgba(255, 255, 255, 0.08); } .horaires-lines-toggle-btn { position: absolute; top: 10px; right: 8px; z-index: 10; background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--horaires-radius-sm); color: #ffffff; padding: 5px 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s ease; } .horaires-lines-toggle-btn:hover { background: rgba(255, 255, 255, 0.28); } .horaires-lines-sidebar-header { padding: 14px 16px 10px; font-weight: 700; font-size: 12px; color: #93c5fd; text-transform: uppercase; letter-spacing: 0.08em; display: flex; align-items: center; gap: 8px; } .horaires-lines-list { overflow-y: auto; flex: 1; padding: 4px 8px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.2) transparent; } .horaires-lines-list::-webkit-scrollbar { width: 5px; } .horaires-lines-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 4px; } .ligne-item-modern { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 9px 12px; border: none; border-radius: var(--horaires-radius-sm); background: transparent; cursor: pointer; text-align: left; transition: all 0.15s ease; gap: 8px; margin-bottom: 2px; color: #cbd5e1; } .ligne-item-modern:hover { background: rgba(255, 255, 255, 0.12); color: #ffffff; } .ligne-item-modern.is-active { background: linear-gradient(90deg, #0284c7 0%, #0088ce 100%); color: #ffffff; box-shadow: 0 2px 8px rgba(0, 136, 206, 0.35); font-weight: 700; } .ligne-item-modern .ligne-label { display: flex; align-items: center; gap: 8px; overflow: hidden; font-size: 13px; } .ligne-item-modern .ligne-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ligne-item-modern .ligne-count { background: rgba(255, 255, 255, 0.16); color: #ffffff; border-radius: 9999px; padding: 2px 7px; font-size: 11px; font-weight: 700; flex-shrink: 0; } .ligne-item-modern.is-active .ligne-count { background: #ffffff; color: #0284c7; } .horaires-lines-footer { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 10px 12px; background: rgba(0, 0, 0, 0.12); } .horaires-create-ligne-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; background: rgba(255, 255, 255, 0.08); border: 1px dashed rgba(255, 255, 255, 0.3); border-radius: var(--horaires-radius-sm); padding: 8px 12px; cursor: pointer; color: #e2e8f0; font-size: 12px; font-weight: 600; transition: all 0.15s ease; } .horaires-create-ligne-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.18); border-color: #38bdf8; color: #38bdf8; } /* 5. MAIN CONTENT AREA */ .horaires-main-content { flex: 1; min-width: 0; padding: 20px 24px; background: #ffffff; display: flex; flex-direction: column; } /* Filter Alert Banner */ .horaires-filter-banner { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 10px 16px; border-radius: var(--horaires-radius-md); font-size: 13.5px; } .horaires-filter-banner.info { background: #f0f9ff; border: 1px solid #bae6fd; color: #0369a1; } .horaires-filter-banner.warning { background: #fefce8; border: 1px solid #fef08a; color: #854d0e; } .horaires-filter-banner-close { margin-left: auto; background: none; border: none; cursor: pointer; color: inherit; font-size: 18px; line-height: 1; opacity: 0.7; padding: 2px 6px; border-radius: 4px; } .horaires-filter-banner-close:hover { opacity: 1; background: rgba(0, 0, 0, 0.05); } /* Toolbar */ .horaires-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 12px 16px; border: 1px solid var(--horaires-border); border-radius: var(--horaires-radius-md); background: var(--horaires-surface-soft); margin-bottom: 16px; } .horaires-toolbar-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 320px; } .horaires-search-wrap { position: relative; display: flex; align-items: center; flex: 1; max-width: 380px; } .horaires-search-wrap wcs-mat-icon { position: absolute; left: 12px; color: #94a3b8; pointer-events: none; } .horaires-search-input { width: 100%; padding: 9px 12px 9px 36px; border: 1px solid var(--horaires-border); border-radius: var(--horaires-radius-sm); background: #ffffff; color: var(--horaires-text); font-size: 13.5px; outline: none; transition: all 0.15s ease; } .horaires-search-input:focus { border-color: var(--horaires-blue-500); box-shadow: 0 0 0 3px rgba(0, 136, 206, 0.15); } /* Selection Mode Panel */ .horaires-selection-panel { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%); border: 1px solid #7dd3fc; border-radius: var(--horaires-radius-md); margin-bottom: 16px; gap: 12px; flex-wrap: wrap; } .horaires-selection-left { display: flex; align-items: center; gap: 12px; } .horaires-selection-count { color: #0369a1; font-weight: 700; font-size: 13.5px; } .horaires-selection-actions { display: flex; gap: 8px; flex-wrap: wrap; } /* 6. TABLES */ .table-container { border: 1px solid var(--horaires-border); border-radius: var(--horaires-radius-md); overflow: hidden; background: #ffffff; box-shadow: var(--horaires-shadow-soft); margin-bottom: 16px; } .horaires-page-root .wcs-table { width: 100%; border-collapse: separate; border-spacing: 0; text-align: left; } .horaires-page-root .wcs-table thead tr { background: linear-gradient(90deg, #0d3d67 0%, #11507e 100%); } .horaires-page-root .wcs-table th { color: #ffffff; border-bottom: none; font-weight: 700; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; padding: 13px 14px; } .horaires-page-root .wcs-table td { border-bottom: 1px solid var(--horaires-border-soft); padding: 12px 14px; color: var(--horaires-text); font-size: 13.5px; vertical-align: middle; } .horaires-page-root .wcs-table tbody tr:hover { background: #f8fafc; } .horaires-page-root .wcs-table tbody tr.horaires-clickable-row { cursor: pointer; } .horaires-row-actions { display: flex; gap: 6px; align-items: center; } /* Table elements & Chips */ .train-num-badge { font-weight: 700; color: var(--horaires-blue-900); font-size: 14px; } .train-type-pill { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 9999px; font-size: 11.5px; font-weight: 700; background: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; } .time-highlight { color: var(--horaires-blue-600); font-weight: 600; } .circ-days-badge { font-size: 12px; color: #475569; } .subst-tag { display: inline-flex; align-items: center; gap: 4px; background: #fee2e2; color: #dc2626; border: 1px solid #fca5a5; padding: 2px 8px; border-radius: 9999px; font-size: 11px; font-weight: 700; } /* Details & Accordion Rows */ .horaires-page-root details { background: #f8fafc; border-radius: var(--horaires-radius-sm); } .horaires-page-root details summary { list-style: none; padding: 10px 14px; cursor: pointer; font-weight: 700; color: var(--horaires-blue-800); display: flex; align-items: center; gap: 8px; transition: background 0.15s ease; } .horaires-page-root details summary:hover { background: #f1f5f9; } .horaires-page-root details summary::-webkit-details-marker { display: none; } .horaires-page-root details[open] summary wcs-mat-icon { transform: rotate(180deg); } /* 7. CARDS VIEW */ .horaires-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-bottom: 20px; } .horaires-card-item { background: #ffffff; border: 1px solid var(--horaires-border); border-radius: var(--horaires-radius-md); padding: 16px 18px; box-shadow: var(--horaires-shadow-soft); transition: all 0.2s ease; display: flex; flex-direction: column; } .horaires-card-item:hover { transform: translateY(-2px); box-shadow: var(--horaires-shadow-card); border-color: #cbd5e1; } .horaires-card-item.selected { border-color: var(--horaires-blue-500); background: #f0f9ff; box-shadow: 0 0 0 2px var(--horaires-blue-500); } .horaires-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; } .horaires-card-route { display: flex; justify-content: space-between; align-items: center; background: var(--horaires-surface-soft); padding: 10px 12px; border-radius: var(--horaires-radius-sm); margin-bottom: 12px; font-size: 13px; } .horaires-card-route-col { display: flex; flex-direction: column; } .horaires-card-footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--horaires-border-soft); } /* 8. SECTION HEADERS IN TABS */ .horaires-section-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; padding: 14px 18px; border-radius: var(--horaires-radius-md); border: 1px solid var(--horaires-border); background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%); box-shadow: var(--horaires-shadow-soft); } .horaires-section-title { margin: 0; color: var(--horaires-blue-900); font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 8px; } .horaires-section-description { margin: 0 0 16px; color: var(--horaires-muted); font-size: 13.5px; line-height: 1.5; } /* 9. MODALS */ .modal-overlay { position: fixed; inset: 0; background: rgba(6, 28, 47, 0.6); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 9999; padding: 20px; } .modal-content { background: #ffffff; border-radius: var(--horaires-radius-lg); border: 1px solid var(--horaires-border); box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35); width: 100%; max-width: 640px; max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1); } @keyframes modalFadeIn { from { opacity: 0; transform: scale(0.96) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } } .horaires-modal-large { max-width: 900px; } .horaires-modal-medium { max-width: 780px; } .horaires-modal-small { max-width: 580px; } .modal-header { background: linear-gradient(135deg, #082e4f 0%, #0d3d67 60%, #11507e 100%); color: #ffffff; padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, 0.12); } .modal-header h3 { margin: 0; font-size: 18px; font-weight: 700; color: #ffffff; } .modal-close { background: rgba(255, 255, 255, 0.12); border: none; color: #ffffff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; transition: all 0.15s ease; } .modal-close:hover { background: rgba(255, 255, 255, 0.25); } .modal-body { padding: 22px 26px; overflow-y: auto; flex: 1; } .modal-footer { background: var(--horaires-surface-soft); border-top: 1px solid var(--horaires-border); padding: 16px 24px; display: flex; justify-content: flex-end; gap: 10px; align-items: center; } /* Modal Segmented Tabs */ .horaires-modal-tabs { display: flex; gap: 6px; background: var(--horaires-surface-soft); padding: 5px; border-radius: var(--horaires-radius-md); border: 1px solid var(--horaires-border); margin-bottom: 20px; } .horaires-modal-tab-btn { flex: 1; padding: 9px 14px; border: none; background: transparent; border-radius: var(--horaires-radius-sm); color: var(--horaires-muted); cursor: pointer; font-weight: 600; font-size: 13px; transition: all 0.18s ease; display: flex; align-items: center; justify-content: center; gap: 6px; } .horaires-modal-tab-btn:hover { color: var(--horaires-text); } .horaires-modal-tab-btn.is-active { background: #ffffff; color: var(--horaires-blue-900); font-weight: 700; box-shadow: var(--horaires-shadow-soft); } /* Form Styles */ .form-group { margin-bottom: 16px; } .form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 13px; color: #334155; } .horaires-field { width: 100%; padding: 9px 12px; border: 1px solid var(--horaires-border); border-radius: var(--horaires-radius-sm); background: #ffffff; color: var(--horaires-text); font-size: 13.5px; box-sizing: border-box; outline: none; transition: all 0.15s ease; } .horaires-field:focus { border-color: var(--horaires-blue-500); box-shadow: 0 0 0 3px rgba(0, 136, 206, 0.12); } .horaires-two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; } /* Tracé intermediate stations */ .horaires-trace-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; } .horaires-trace-row { display: grid; grid-template-columns: 28px 1fr 140px auto; gap: 8px; align-items: center; background: var(--horaires-surface-soft); padding: 8px 12px; border-radius: var(--horaires-radius-sm); border: 1px solid var(--horaires-border); } .horaires-trace-index { font-weight: 700; color: var(--horaires-blue-800); font-size: 12.5px; } .horaires-trace-empty { color: var(--horaires-muted); text-align: center; padding: 20px; background: var(--horaires-surface-soft); border: 1px dashed var(--horaires-border); border-radius: var(--horaires-radius-sm); font-size: 13px; } /* PDF Upload Card & Area */ .horaires-pdf-current-card { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: #f0fdf4; border: 1px solid #86efac; border-radius: var(--horaires-radius-md); margin-bottom: 18px; } .horaires-upload-dropzone { border: 2px dashed var(--horaires-border); border-radius: var(--horaires-radius-md); padding: 32px 20px; text-align: center; background: var(--horaires-surface-soft); transition: all 0.2s ease; cursor: pointer; } .horaires-upload-dropzone:hover { border-color: var(--horaires-blue-500); background: #f0f9ff; } .horaires-info-note { margin-top: 16px; padding: 10px 14px; background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--horaires-radius-sm); font-size: 12.5px; color: #92400e; display: flex; align-items: center; gap: 8px; } /* Quai Cards in Quai Modal */ .horaires-trajet-banner { margin-bottom: 16px; padding: 12px 16px; background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%); border: 1px solid #bae6fd; border-radius: var(--horaires-radius-md); color: #0369a1; font-size: 14px; } .horaires-quai-card { margin-bottom: 10px; padding: 12px 16px; background: #ffffff; border: 1px solid var(--horaires-border); border-radius: var(--horaires-radius-sm); transition: all 0.15s ease; } .horaires-quai-card:hover { border-color: #cbd5e1; background: var(--horaires-surface-soft); } .horaires-quai-row-modal { display: flex; justify-content: space-between; align-items: center; gap: 12px; } .horaires-quai-select { padding: 8px 12px; border: 1px solid var(--horaires-border); border-radius: var(--horaires-radius-sm); background: #ffffff; min-width: 200px; font-size: 13px; outline: none; } .horaires-status-success { display: inline-flex; align-items: center; gap: 4px; color: #16a34a; font-weight: 600; font-size: 12.5px; } .horaires-status-muted { color: #94a3b8; font-size: 12.5px; } /* Empty & Loading states */ .horaires-loading { color: var(--horaires-muted); padding: 24px; text-align: center; font-size: 14px; } .horaires-empty-state { text-align: center; padding: 48px 24px; border-radius: var(--horaires-radius-lg); border: 1px dashed #cbd5e1; background: var(--horaires-surface-soft); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; } .horaires-empty-icon { font-size: 48px; color: #94a3b8; } .horaires-empty-text { color: #64748b; font-size: 15px; font-weight: 500; margin: 0; } /* Responsive */ @media (max-width: 1024px) { .horaires-modern-container { padding: 20px 18px 48px; } .horaires-kpi-grid { grid-template-columns: repeat(2, 1fr); } .horaires-hero-banner { padding: 26px 28px; } .horaires-workspace { flex-direction: column; } .horaires-lines-sidebar { width: 100% !important; min-width: 100% !important; max-height: 240px; } } @media (max-width: 768px) { .horaires-modern-container { padding: 16px 12px 40px; } .horaires-hero-banner { flex-direction: column; align-items: flex-start; padding: 20px 18px; gap: 16px; } .horaires-hero-actions { width: 100%; display: flex; gap: 8px; } .horaires-hero-actions > * { flex: 1; justify-content: center; } .horaires-kpi-grid { grid-template-columns: 1fr; gap: 12px; } .horaires-toolbar { flex-direction: column; align-items: stretch; gap: 12px; } .horaires-toolbar-left { min-width: 0; flex-direction: column; align-items: stretch; gap: 10px; } .horaires-search-wrap { max-width: 100%; } .horaires-two-cols { grid-template-columns: 1fr; } .horaires-trace-row { grid-template-columns: 24px 1fr; gap: 6px; } .horaires-cards-grid { grid-template-columns: 1fr; } .modal-content { max-width: 95vw; max-height: 95vh; } } @media (max-width: 480px) { .horaires-hero-title { font-size: 24px; } .horaires-hero-subtitle { font-size: 13px; } } /* ═══════════════════════════════════════════════════════════════════════════ 10. DARK MODE SUPPORT ═══════════════════════════════════════════════════════════════════════════ */ body.dark-mode .horaires-page-root, [data-theme="dark"] .horaires-page-root { background-color: #0b111e; color: #f1f5f9; } body.dark-mode .horaires-hero-banner, [data-theme="dark"] .horaires-hero-banner { background: linear-gradient(135deg, #05162a 0%, #082d4d 50%, #0d4b78 100%); border-color: rgba(255, 255, 255, 0.1); box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6); } body.dark-mode .horaires-kpi-card, [data-theme="dark"] .horaires-kpi-card { background: #151f30; border-color: #243247; color: #f1f5f9; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3); } body.dark-mode .horaires-kpi-card:hover, [data-theme="dark"] .horaires-kpi-card:hover { border-color: #3b82f6; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); } body.dark-mode .horaires-kpi-card.active, [data-theme="dark"] .horaires-kpi-card.active { background: #0d2744; border-color: #0088ce; box-shadow: 0 8px 24px rgba(0, 136, 206, 0.25); } body.dark-mode .horaires-kpi-label, [data-theme="dark"] .horaires-kpi-label { color: #94a3b8; } body.dark-mode .horaires-kpi-value, [data-theme="dark"] .horaires-kpi-value { color: #f8fafc; } body.dark-mode .horaires-kpi-subtext, [data-theme="dark"] .horaires-kpi-subtext { color: #64748b; } body.dark-mode .horaires-main-tabs-nav, [data-theme="dark"] .horaires-main-tabs-nav { background: #151f30; border-color: #243247; } body.dark-mode .horaires-main-tab-btn, [data-theme="dark"] .horaires-main-tab-btn { color: #94a3b8; } body.dark-mode .horaires-main-tab-btn:hover, [data-theme="dark"] .horaires-main-tab-btn:hover { background: #1e293b; color: #f8fafc; } body.dark-mode .horaires-main-tab-btn.active, [data-theme="dark"] .horaires-main-tab-btn.active { background: linear-gradient(135deg, #0284c7 0%, #0088ce 100%); color: #ffffff; } body.dark-mode .horaires-main-tab-badge, [data-theme="dark"] .horaires-main-tab-badge { background: rgba(255, 255, 255, 0.15); color: #cbd5e1; } body.dark-mode .horaires-workspace, body.dark-mode .horaires-main-content, [data-theme="dark"] .horaires-workspace, [data-theme="dark"] .horaires-main-content { background: #151f30; border-color: #243247; color: #f1f5f9; } body.dark-mode .horaires-lines-sidebar, [data-theme="dark"] .horaires-lines-sidebar { background: linear-gradient(180deg, #07192c 0%, #0c2642 50%, #103459 100%); border-color: rgba(255, 255, 255, 0.08); } body.dark-mode .horaires-toolbar, [data-theme="dark"] .horaires-toolbar { background: #0f172a; border-color: #243247; } body.dark-mode .horaires-search-input, [data-theme="dark"] .horaires-search-input { background: #0b111e; border-color: #243247; color: #f8fafc; } body.dark-mode .horaires-search-input:focus, [data-theme="dark"] .horaires-search-input:focus { border-color: #0088ce; box-shadow: 0 0 0 3px rgba(0, 136, 206, 0.25); } body.dark-mode .table-container, body.dark-mode .horaires-page-root .wcs-table, [data-theme="dark"] .table-container, [data-theme="dark"] .horaires-page-root .wcs-table { background: #151f30; border-color: #243247; } body.dark-mode .horaires-page-root .wcs-table thead tr, [data-theme="dark"] .horaires-page-root .wcs-table thead tr { background: #0f172a; } body.dark-mode .horaires-page-root .wcs-table th, [data-theme="dark"] .horaires-page-root .wcs-table th { color: #94a3b8; } body.dark-mode .horaires-page-root .wcs-table td, [data-theme="dark"] .horaires-page-root .wcs-table td { border-bottom-color: #1e293b; color: #e2e8f0; } body.dark-mode .horaires-page-root .wcs-table tbody tr:hover, [data-theme="dark"] .horaires-page-root .wcs-table tbody tr:hover { background-color: #1a273c; } body.dark-mode .train-num-badge, [data-theme="dark"] .train-num-badge { color: #38bdf8; } body.dark-mode .train-type-pill, [data-theme="dark"] .train-type-pill { background: #1e293b; border-color: #334155; color: #cbd5e1; } body.dark-mode .circ-days-badge, [data-theme="dark"] .circ-days-badge { color: #94a3b8; } body.dark-mode .horaires-card-item, [data-theme="dark"] .horaires-card-item { background: #151f30; border-color: #243247; color: #f1f5f9; } body.dark-mode .horaires-card-item:hover, [data-theme="dark"] .horaires-card-item:hover { border-color: #3b82f6; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45); } body.dark-mode .horaires-card-route, [data-theme="dark"] .horaires-card-route { background: #0f172a; } body.dark-mode .horaires-section-header, [data-theme="dark"] .horaires-section-header { background: #151f30; border-color: #243247; } body.dark-mode .horaires-section-title, [data-theme="dark"] .horaires-section-title { color: #f8fafc; } body.dark-mode .modal-content, [data-theme="dark"] .modal-content { background: #151f30; border-color: #243247; color: #f1f5f9; } body.dark-mode .modal-header, body.dark-mode .modal-footer, [data-theme="dark"] .modal-header, [data-theme="dark"] .modal-footer { background: #0e1726; border-color: #243247; } body.dark-mode .modal-header h3, [data-theme="dark"] .modal-header h3 { color: #f8fafc; } body.dark-mode .horaires-field, [data-theme="dark"] .horaires-field { background-color: #0b111e; border-color: #243247; color: #f8fafc; } body.dark-mode .horaires-field:focus, [data-theme="dark"] .horaires-field:focus { border-color: #0088ce; box-shadow: 0 0 0 3px rgba(0, 136, 206, 0.25); } body.dark-mode .horaires-modal-tabs, [data-theme="dark"] .horaires-modal-tabs { background: #0e1726; border-color: #243247; } body.dark-mode .horaires-modal-tab-btn, [data-theme="dark"] .horaires-modal-tab-btn { color: #94a3b8; } body.dark-mode .horaires-modal-tab-btn.is-active, [data-theme="dark"] .horaires-modal-tab-btn.is-active { background: #1e293b; color: #38bdf8; } body.dark-mode .horaires-quai-card, [data-theme="dark"] .horaires-quai-card { background: #101826; border-color: #243247; color: #f1f5f9; } body.dark-mode .horaires-quai-select, [data-theme="dark"] .horaires-quai-select { background-color: #0b111e; border-color: #243247; color: #f8fafc; } body.dark-mode .horaires-upload-dropzone, [data-theme="dark"] .horaires-upload-dropzone { background: #0f172a; border-color: #243247; } body.dark-mode .horaires-empty-state, [data-theme="dark"] .horaires-empty-state { background: #151f30; border-color: #243247; } body.dark-mode .horaires-empty-text, [data-theme="dark"] .horaires-empty-text { color: #94a3b8; }