        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            background-color: #f5f5f5;
            color: #333;
        }
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        :root {
            --header-bg-color: #2c3e50;
        }
        header {
            background-color: var(--header-bg-color);
            color: white;
            padding: 1rem 0;
            margin-bottom: 2rem;
        }
        header .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        header h1 {
            font-size: 1.5rem;
            text-shadow:
                -1px -1px 0 #000,
                1px -1px 0 #000,
                -1px 1px 0 #000,
                1px 1px 0 #000,
                0 0 3px rgba(0, 0, 0, 0.8);
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        header h1 i {
            text-shadow:
                -1px -1px 0 #000,
                1px -1px 0 #000,
                -1px 1px 0 #000,
                1px 1px 0 #000,
                0 0 3px rgba(0, 0, 0, 0.8);
        }
        .app-name {
            font-weight: 700;
            letter-spacing: 1px;
        }
        .company-separator {
            font-size: 1.2rem;
            opacity: 0.5;
            font-weight: 300;
        }
        .company-name {
            font-size: 1.1rem;
            font-weight: 400;
            opacity: 0.95;
            padding: 0.25rem 0.75rem;
            background: rgba(255, 255, 255, 0.15);
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            letter-spacing: 0.5px;
        }
        nav {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        nav a {
            color: white;
            text-decoration: none;
            padding: 0.5rem 0.75rem;
            border-radius: 6px;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-shadow:
                -1px -1px 0 #000,
                1px -1px 0 #000,
                -1px 1px 0 #000,
                1px 1px 0 #000,
                0 0 3px rgba(0, 0, 0, 0.8);
        }
        nav a:hover {
            background-color: rgba(255, 255, 255, 0.1);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }
        nav a i.bi {
            font-size: 2.5rem;
        }

        /* Dropdown Menu */
        .nav-dropdown {
            position: relative;
            display: inline-block;
        }
        .nav-dropdown-toggle {
            color: white;
            text-decoration: none;
            padding: 0.5rem 0.75rem;
            border-radius: 6px;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            cursor: pointer;
            font-weight: 500;
            font-size: 0.95rem;
            text-shadow:
                -1px -1px 0 #000,
                1px -1px 0 #000,
                -1px 1px 0 #000,
                1px 1px 0 #000,
                0 0 3px rgba(0, 0, 0, 0.8);
        }
        .nav-dropdown-toggle i.bi-briefcase,
        .nav-dropdown-toggle i.bi-gear {
            font-size: 2.5rem;
        }
        .nav-dropdown-toggle span,
        .nav-dropdown-toggle i.bi-chevron-down {
            display: none;
        }
        .nav-dropdown-toggle:hover {
            background-color: rgba(255, 255, 255, 0.1);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }
        .nav-dropdown-menu {
            position: absolute;
            top: 100%;
            left: 0;
            background: white;
            min-width: 220px;
            border-radius: 8px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            margin-top: 0.5rem;
            padding: 0.5rem 0;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease;
            z-index: 1000;
        }
        .nav-dropdown:hover .nav-dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        .nav-dropdown-item {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.75rem 1.25rem;
            color: #333;
            text-decoration: none;
            transition: all 0.2s;
            font-size: 0.95rem;
            text-shadow: none; /* Pas de contour pour les items sur fond blanc */
        }
        .nav-dropdown-item:hover {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            text-shadow: none; /* Même au survol, pas de contour car le gradient est visible */
        }
        .nav-dropdown-item i {
            font-size: 1.3rem;
        }
        .nav-dropdown-divider {
            height: 1px;
            background: #e0e0e0;
            margin: 0.5rem 0;
        }
        .logout-btn {
            background: none;
            border: none;
            color: white;
            cursor: pointer;
            font-size: inherit;
            font-family: inherit;
            padding: 0.5rem 0.75rem;
            margin-left: 0.5rem;
            border-radius: 6px;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-shadow:
                -1px -1px 0 #000,
                1px -1px 0 #000,
                -1px 1px 0 #000,
                1px 1px 0 #000,
                0 0 3px rgba(0, 0, 0, 0.8);
        }
        .logout-btn:hover {
            background-color: rgba(255, 255, 255, 0.1);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }
        .logout-btn i.bi {
            font-size: 2.5rem;
        }

        /* User Info Styles */
        .user-info {
            display: inline-flex;
            align-items: center;
            gap: 0.75rem;
            margin-left: 1.5rem;
            padding: 0.5rem 1rem;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 12px;
            transition: all 0.3s ease;
            cursor: pointer;
            text-shadow:
                -1px -1px 0 #000,
                1px -1px 0 #000,
                -1px 1px 0 #000,
                1px 1px 0 #000,
                0 0 3px rgba(0, 0, 0, 0.8);
            text-decoration: none;
            color: white;
        }

        .user-info:hover {
            background: rgba(0, 0, 0, 0.4);
            border-color: rgba(255, 255, 255, 0.3);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            transform: translateY(-2px);
        }

        .user-avatar {
            font-size: 2rem;
            width: 42px;
            height: 42px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 50%;
            flex-shrink: 0;
        }

        .user-details {
            display: flex;
            flex-direction: column;
            gap: 0.2rem;
        }

        .user-name {
            font-weight: 600;
            font-size: 0.95rem;
            color: #ffffff !important;
            line-height: 1.2;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
        }

        .user-role-badge {
            font-size: 0.75rem;
            padding: 0.15rem 0.5rem;
            border-radius: 8px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.3px;
            width: fit-content;
        }

        .user-role-admin {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            color: white;
        }

        .user-role-manager {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            color: white;
        }

        .user-role-user {
            background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
            color: white;
        }

        @media (max-width: 768px) {
            .user-info {
                margin-left: 0.5rem;
                padding: 0.4rem 0.6rem;
            }

            .user-avatar {
                width: 36px;
                height: 36px;
                font-size: 1.5rem;
            }

            .user-name {
                font-size: 0.85rem;
            }

            .user-role-badge {
                font-size: 0.65rem;
                padding: 0.1rem 0.4rem;
            }
        }

        .messages {
            list-style: none;
            margin-bottom: 1rem;
        }
        .messages li {
            padding: 1rem;
            margin-bottom: 0.5rem;
            border-radius: 4px;
        }
        .messages .success {
            background-color: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }
        .messages .error {
            background-color: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }
        .messages .info {
            background-color: #d1ecf1;
            color: #0c5460;
            border: 1px solid #bee5eb;
        }
        footer {
            margin-top: 3rem;
            padding: 1rem 0;
            text-align: center;
            color: #666;
            font-size: 0.9rem;
        }
        /* Notifications */
        .notification-bell {
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: white;
            text-decoration: none;
            margin-left: 0.5rem;
            padding: 0.5rem 0.75rem;
            border-radius: 6px;
            transition: all 0.2s ease;
            cursor: pointer;
            text-shadow:
                -1px -1px 0 #000,
                1px -1px 0 #000,
                -1px 1px 0 #000,
                1px 1px 0 #000,
                0 0 3px rgba(0, 0, 0, 0.8);
        }
        .notification-bell:hover {
            background-color: rgba(255, 255, 255, 0.1);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }
        .notification-bell i.bi {
            font-size: 2.5rem;
        }
        .notification-badge {
            position: absolute;
            top: -8px;
            right: -8px;
            background-color: #e74c3c;
            color: white;
            border-radius: 50%;
            width: 18px;
            height: 18px;
            font-size: 11px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
        }
        .notification-badge.hidden {
            display: none;
        }
        .notification-dropdown {
            position: absolute;
            top: 100%;
            right: 0;
            background: white;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            width: 350px;
            max-height: 400px;
            overflow-y: auto;
            z-index: 1000;
            margin-top: 10px;
            display: none;
            text-shadow: none;
            color: #333;
            font-weight: 400;
        }
        .notification-dropdown.show {
            display: block;
        }
        .notification-header {
            padding: 12px 15px;
            background-color: #f8f9fa;
            border-bottom: 1px solid #ddd;
            font-weight: bold;
            color: #333;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .notification-header button {
            background: none;
            border: none;
            color: #3498db;
            cursor: pointer;
            font-size: 12px;
            text-decoration: underline;
        }
        .notification-item {
            padding: 12px 15px;
            border-bottom: 1px solid #f0f0f0;
            cursor: pointer;
            transition: background-color 0.2s;
        }
        .notification-item:hover {
            background-color: #f8f9fa;
        }
        .notification-item.unread {
            background-color: #e8f4f8;
        }
        .notification-item.unread:hover {
            background-color: #d4ebf5;
        }
        .notification-title {
            font-weight: 500;
            color: #333;
            margin-bottom: 4px;
            font-size: 14px;
        }
        .notification-item.unread .notification-title {
            font-weight: 600;
        }
        .notification-message {
            color: #666;
            font-size: 13px;
            font-weight: 400;
            margin-bottom: 4px;
        }
        .notification-time {
            color: #999;
            font-size: 11px;
        }
        .notification-empty {
            padding: 30px 15px;
            text-align: center;
            color: #999;
        }
        .notification-footer {
            padding: 10px 15px;
            background-color: #f8f9fa;
            border-top: 1px solid #ddd;
            text-align: center;
        }
        .notification-footer a {
            color: #3498db;
            text-decoration: none;
            font-size: 13px;
        }
        .notification-footer a:hover {
            text-decoration: underline;
        }

        /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
           Layout Sidebar Partagé
           Utilisé par : /configuration/, /parametres-systeme/, /users/*/modifier/
           ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
        .settings-layout {
            display: flex;
            gap: 2rem;
            align-items: flex-start;
        }
        .settings-sidebar {
            width: 280px;
            flex-shrink: 0;
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.07);
            position: sticky;
            top: 20px;
            overflow: hidden;
        }
        .sidebar-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 1.5rem;
            font-weight: 600;
            font-size: 1.1rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        .sidebar-nav {
            padding: 0.5rem;
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
            align-items: stretch;
        }
        .sidebar-item {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 1rem;
            padding: 1rem 1.25rem;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
            text-decoration: none;
            color: #4a5568;
            font-weight: 500;
            font-size: 0.95rem;
            border: 2px solid transparent;
            background: white;
            text-align: left;
            width: 100%;
            box-sizing: border-box;
            user-select: none;
        }
        .sidebar-item:hover {
            background: linear-gradient(to right, #f7fafc, #edf2f7);
            color: #667eea;
            transform: translateX(4px);
        }
        .sidebar-item.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            font-weight: 600;
            box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
        }
        .sidebar-item .icon {
            font-size: 1.3rem;
            flex-shrink: 0;
            display: inline-block;
        }
        .sidebar-item .label {
            flex: 1;
            text-align: left;
            white-space: nowrap;
        }
        .sidebar-badge {
            background: rgba(102, 126, 234, 0.15);
            color: #667eea;
            padding: 0.25rem 0.65rem;
            border-radius: 12px;
            font-size: 0.75rem;
            font-weight: 700;
            min-width: 24px;
            text-align: center;
        }
        .sidebar-item.active .sidebar-badge {
            background: rgba(255, 255, 255, 0.25);
            color: white;
        }
        .sidebar-divider {
            height: 1px;
            background: #f0f0f0;
            margin: 0.25rem 0.75rem;
        }
        .settings-content {
            flex: 1;
            min-width: 0;
        }
        .content-section {
            display: none;
        }
        .content-section.active {
            display: block;
            animation: sidebarFadeIn 0.3s ease;
        }
        @keyframes sidebarFadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to   { opacity: 1; transform: translateY(0); }
        }
        @media (max-width: 992px) {
            .settings-layout { flex-direction: column; }
            .settings-sidebar { width: 100%; position: static; }
            .sidebar-nav {
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
                gap: 0.5rem;
            }
        }
        @media (max-width: 768px) {
            .sidebar-nav { grid-template-columns: 1fr; }
        }

        /* Boutons globaux */
        .btn {
            padding: 10px 20px;
            border-radius: 4px;
            text-decoration: none;
            font-weight: 600;
            display: inline-block;
            border: none;
            cursor: pointer;
            transition: opacity 0.2s;
        }
        .btn-primary {
            background: #2196F3;
            color: white;
        }
        .btn-secondary {
            background: #6c757d;
            color: white;
        }
        .btn-success {
            background: #28a745;
            color: white;
        }
        .btn-danger {
            background: #dc3545;
            color: white;
        }
        .btn-warning {
            background: #ffc107;
            color: #000;
        }
        .btn-info {
            background: #17a2b8;
            color: white;
        }
        .btn:hover {
            opacity: 0.9;
        }
        .btn-small {
            padding: 0.5rem 1rem;
            font-size: 0.875rem;
        }
