/* ========================================================================== STYLE MODERNE - PORTAL GESTIONNAIRE Couleur thème: #0088cf Couleur fond: #f6f9ff ========================================================================== */ :root { --primary-color: #0088cf; --primary-dark: #0066a6; --primary-light: #4da6e0; --secondary-color: #6c757d; --success-color: #28a745; --danger-color: #dc3545; --warning-color: #ffc107; --info-color: #17a2b8; --light-color: #f8f9fa; --dark-color: #343a40; --body-bg: #f6f9ff; --sidebar-bg: #ffffff; --header-bg: #ffffff; --card-bg: #ffffff; --border-color: #e0e6ef; --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15); --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175); --border-radius: 0.375rem; --border-radius-lg: 0.5rem; --transition: all 0.3s ease; } /* ========================================================================== RESET & BASE ========================================================================== */ * { box-sizing: border-box; margin: 0; padding: 0; } html, body { height: 100%; } body { font-family: 'Segoe UI', 'Open Sans', sans-serif; background-color: var(--body-bg); color: #333; font-size: 0.875rem; line-height: 1.5; overflow-x: hidden; display: flex; flex-direction: column; min-height: 100vh; } /* ========================================================================== HEADER ========================================================================== */ .header { background: var(--header-bg) !important; box-shadow: var(--shadow-sm); border-bottom: 1px solid var(--border-color); height: 60px; padding: 0 1.5rem; z-index: 1030; position: fixed; top: 0; left: 0; right: 0; } .logo { font-weight: 700; font-size: 1.25rem; color: var(--primary-color); text-decoration: none; display: flex; align-items: center; } .logo img { height: 32px; margin-right: 0.75rem; } .logo span { background: linear-gradient(90deg, var(--primary-color), var(--primary-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } /* ========================================================================== NOTIFICATIONS ========================================================================== */ .badge-number { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; font-size: 0.65rem; padding: 0.15rem 0.35rem; border-radius: 50%; background: var(--danger-color) !important; border: 2px solid white; } /* ========================================================================== SIDEBAR ========================================================================== */ .sidebar { background: var(--sidebar-bg); box-shadow: var(--shadow-md); width: 260px; transition: var(--transition); z-index: 1020; position: fixed; top: 60px; left: 0; bottom: 0; overflow-y: auto; } .sidebar-nav { padding: 1rem 0; } .nav-item { margin-bottom: 0.25rem; } .nav-link { color: #495057; padding: 0.75rem 1.5rem; border-radius: 0; border-left: 3px solid transparent; transition: var(--transition); font-weight: 500; display: block; text-decoration: none; } .nav-link:hover { background-color: rgba(0, 136, 207, 0.05); color: var(--primary-color); border-left-color: var(--primary-color); } .nav-link.active-main, .nav-link.active-submenu { background-color: rgba(0, 136, 207, 0.1); color: var(--primary-color); border-left-color: var(--primary-color); font-weight: 600; } .nav-link i { width: 20px; text-align: center; margin-right: 0.75rem; color: var(--primary-color); } .nav-content { background-color: rgba(0, 136, 207, 0.03); padding: 0.5rem 0; border-left: 2px solid var(--border-color); display: none; } .nav-content.show { display: block; } .nav-content a { padding-left: 3.5rem !important; font-size: 0.8125rem; padding-top: 0.5rem; padding-bottom: 0.5rem; } /* ========================================================================== MAIN CONTENT ========================================================================== */ .main { padding: 1.5rem; margin-left: 260px; margin-top: 60px; transition: var(--transition); min-height: calc(100vh - 60px); flex: 1; } /* ========================================================================== BREADCRUMB MINIMAL ========================================================================== */ /* Désactiver le séparateur Bootstrap */ .breadcrumb-item + .breadcrumb-item::before { display: none !important; } /* Ajouter votre propre séparateur */ .breadcrumb-item:not(:last-child)::after { content: ">"; color: var(--secondary-color); padding: 0 0.5rem; font-weight: normal; opacity: 0.7; } /* Pour le dernier élément (actif), pas de séparateur */ .breadcrumb-item.active::after { display: none; } /* ========================================================================== GABARIT SPECIFIC STYLES ========================================================================== */ /* Main container */ .main-container { margin-top: 60px; } /* Secondary navigation */ .secondary-nav-container { flex-wrap: nowrap; } .nav-link-sub { min-width: 150px; white-space: nowrap; border-right: 1px solid var(--border-color); padding: 1rem 1.5rem; text-decoration: none; color: var(--dark-color); text-align: center; transition: all 0.3s ease; } .nav-link-sub:hover { background-color: rgba(0, 136, 207, 0.05); } .nav-link-sub.active { background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); color: white !important; font-weight: 600; } .nav-link-sub:last-child { border-right: none; } /* ========================================================================== TABLES ========================================================================== */ .table-modern { background: white; border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); width: 100%; margin-bottom: 1rem; border-collapse: collapse; } .table-modern thead th { background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); color: white; border: none; padding: 0.75rem 1rem; font-weight: 600; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.5px; text-align: left; } .table-modern tbody tr { transition: var(--transition); border-bottom: 1px solid var(--border-color); } .table-modern tbody tr:last-child { border-bottom: none; } .table-modern tbody tr:hover { background-color: rgba(0, 136, 207, 0.05); transform: translateY(-1px); } .table-modern tbody td { padding: 0.75rem 1rem; border-top: 1px solid var(--border-color); vertical-align: middle; } /* ========================================================================== CARDS ========================================================================== */ .card-modern { border: none; border-radius: var(--border-radius-lg); box-shadow: var(--shadow-sm); transition: var(--transition); background: var(--card-bg); overflow: hidden; margin-bottom: 1.5rem; } .card-modern:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); } .card-modern .card-header { background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); color: white; border: none; padding: 1rem 1.25rem; font-weight: 600; } .card-modern .card-body { padding: 1.25rem; } /* ========================================================================== BUTTONS ========================================================================== */ .btn-modern { border-radius: var(--border-radius); padding: 0.5rem 1.25rem; font-weight: 500; transition: var(--transition); border: none; cursor: pointer; display: inline-block; text-align: center; text-decoration: none; } .btn-primary-modern { background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); color: white; } .btn-primary-modern:hover { background: linear-gradient(135deg, var(--primary-dark), var(--primary-color)); color: white; transform: translateY(-1px); box-shadow: var(--shadow-md); } /* ========================================================================== FORMS ========================================================================== */ .form-control-modern { border: 1px solid var(--border-color); border-radius: var(--border-radius); padding: 0.5rem 0.75rem; transition: var(--transition); font-size: 0.875rem; width: 100%; background-color: white; } .form-control-modern:focus { border-color: var(--primary-color); box-shadow: 0 0 0 0.2rem rgba(0, 136, 207, 0.25); outline: none; } /* ========================================================================== CONTEXT BAR (BARRE LATERALE D) - UNIFIED VERSION ========================================================================== */ /* Context Panel */ #barre_laterale_d { background: white; width: 300px; border-left: 1px solid var(--border-color); box-shadow: var(--shadow-md); padding: 1.5rem; overflow-y: auto; position: fixed; right: 0; top: 60px; height: calc(100vh - 60px); z-index: 1010; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); transform: translateX(100%); display: flex; flex-direction: column; } #barre_laterale_d.active { transform: translateX(0); } /* Context toggle button */ .btn-context-toggle { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 1005; border-radius: 20px 0 0 20px; padding: 12px 8px; background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); color: white; border: none; cursor: pointer; box-shadow: var(--shadow-md); transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; } .btn-context-toggle:hover { right: 5px; background: linear-gradient(135deg, var(--primary-dark), var(--primary-color)); } .btn-context-toggle i { font-size: 1.2rem; margin: 0 2px; } /* Hide context button when panel is active */ #barre_laterale_d.active ~ .btn-context-toggle { display: none; } /* Context Panel internal structure */ .context-panel { display: flex; flex-direction: column; height: 100%; } .context-header { flex-shrink: 0; } .context-body { flex: 1; overflow-y: auto; } .context-footer { flex-shrink: 0; } .context-card { margin-bottom: 1rem; } .context-card .card-header { padding: 0.5rem 1rem; } .context-card .card-body { padding: 1rem; } /* Context Panel specific elements */ .context-scrollable { max-height: calc(100vh - 180px); overflow-y: auto; } .context-button { transition: all 0.2s ease; } .context-button:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } .context-text-truncate { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; } .context-text-truncate-long { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; } .context-photo { width: 120px; height: 120px; object-fit: cover; cursor: pointer; transition: transform 0.3s ease; border: 3px solid var(--primary-color); } .context-photo:hover { transform: scale(1.05); } .context-stats-item { min-height: 60px; display: flex; flex-direction: column; justify-content: center; align-items: center; } .context-list { max-height: 200px; overflow-y: auto; } .context-list-item { border-bottom: 1px solid var(--border-color) !important; } .context-list-item:last-child { border-bottom: none !important; } .context-list-item:hover { background-color: rgba(0, 136, 207, 0.05); } .context-badge-index { width: 24px; height: 24px; font-size: 0.7rem; } .context-action-button { min-height: 38px; display: flex; align-items: center; justify-content: center; } /* ========================================================================== MODALS ========================================================================== */ .modal.fade .modal-dialog { transition: transform 0.3s ease-out; } /* Modal specific styles */ .modal-messages-content { max-height: 400px; overflow-y: auto; } .modal-photo-image { max-height: 80vh; object-fit: contain; } /* ========================================================================== ANIMATIONS ========================================================================== */ @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .fade-in { animation: fadeIn 0.3s ease-out; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } @keyframes pulse { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); } 70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); } } /* ========================================================================== SCROLLBAR ========================================================================== */ ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; } ::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: #a8a8a8; } /* ========================================================================== STATUS INDICATORS ========================================================================== */ .status-active { color: var(--success-color); background-color: rgba(40, 167, 69, 0.1); padding: 0.25rem 0.5rem; border-radius: 50px; font-size: 0.75rem; font-weight: 500; display: inline-block; } .status-inactive { color: var(--secondary-color); background-color: rgba(108, 117, 125, 0.1); padding: 0.25rem 0.5rem; border-radius: 50px; font-size: 0.75rem; font-weight: 500; display: inline-block; } .status-warning { color: var(--warning-color); background-color: rgba(255, 193, 7, 0.1); padding: 0.25rem 0.5rem; border-radius: 50px; font-size: 0.75rem; font-weight: 500; display: inline-block; } /* ========================================================================== LOADERS & OVERLAYS ========================================================================== */ .global-loading-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.75); display: none; align-items: center; justify-content: center; z-index: 9999; } .global-loading-spinner { width: 3rem; height: 3rem; } .loader-modern { display: inline-block; width: 20px; height: 20px; border: 3px solid #f3f3f3; border-top: 3px solid var(--primary-color); border-radius: 50%; animation: spin 1s linear infinite; } .is-loading { position: relative; pointer-events: none; opacity: 0.7; } .is-loading::after { content: ""; position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border: 2px solid var(--primary-color); border-top-color: transparent; border-radius: 50%; animation: spin 0.6s linear infinite; } .badge-notification { animation: pulse 2s infinite; } /* ========================================================================== ICONS ========================================================================== */ .icon-circle { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary-color), var(--primary-light)); color: white; margin-right: 1rem; } /* ========================================================================== RESPONSIVE DESIGN ========================================================================== */ @media (max-width: 1199px) { .main { margin-left: 0; padding: 1rem; } .sidebar { transform: translateX(-100%); } .sidebar.show { transform: translateX(0); } .toggle-sidebar .sidebar { transform: translateX(0); } .toggle-sidebar .main { margin-left: 260px; } } @media (max-width: 768px) { .header { padding: 0 1rem; } .main { padding: 1rem; } .main-container { margin-top: 56px; } .breadcrumb { font-size: 0.8rem; padding: 0.5rem; } .table-modern { font-size: 0.8rem; } #barre_laterale_d { width: 280px; } .nav-link-sub { min-width: 120px; padding: 0.75rem 1rem; font-size: 0.875rem; } .btn-context-toggle { padding: 10px 6px; } .context-scrollable { max-height: calc(100vh - 160px); } .context-photo { width: 100px; height: 100px; } .context-stats-item { min-height: 50px; padding: 0.25rem; } .context-text-truncate { max-width: 180px; } .context-text-truncate-long { max-width: 200px; } } @media (max-width: 576px) { .logo span { display: none; } .nav-link-sub { min-width: 100px; padding: 0.5rem 0.75rem; font-size: 0.75rem; } #barre_laterale_d { width: 100%; } .context-scrollable { max-height: calc(100vh - 140px); } .context-photo { width: 80px; height: 80px; } .context-text-truncate { max-width: 150px; } .context-text-truncate-long { max-width: 170px; } } /* ========================================================================== UTILITY CLASSES ========================================================================== */ .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; } .d-none { display: none !important; } .d-flex { display: flex !important; } .flex-column { flex-direction: column !important; } .flex-grow-1 { flex-grow: 1 !important; } .min-vh-100 { min-height: 100vh !important; } .mt-4 { margin-top: 1.5rem !important; } .mb-4 { margin-bottom: 1.5rem !important; } .p-0 { padding: 0 !important; } .p-3 { padding: 1rem !important; } .px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; } .shadow-sm { box-shadow: var(--shadow-sm) !important; } .rounded-pill { border-radius: 50rem !important; } .bg-white { background-color: white !important; } .bg-light { background-color: var(--light-color) !important; } .text-primary { color: var(--primary-color) !important; } .text-muted { color: var(--secondary-color) !important; } .fw-bold { font-weight: 700 !important; } .fw-medium { font-weight: 500 !important; } .small { font-size: 0.875rem !important; } .text-uppercase { text-transform: uppercase !important; } .text-decoration-none { text-decoration: none !important; } .align-items-center { align-items: center !important; } .justify-content-between { justify-content: space-between !important; } .overflow-auto { overflow: auto !important; } .animate__animated { animation-duration: 1s; animation-fill-mode: both; } .animate__fadeIn { animation-name: fadeIn; } .animate__fadeInDown { animation-name: fadeInDown; } .animate__bounceIn { animation-name: bounceIn; } /* Prévenir le FOUC (Flash of Unstyled Content) */ .js-loading *, .js-loading *:before, .js-loading *:after { animation-play-state: paused !important; }