 :root {
            --theme-primary: #AEA68C;
            --theme-dark: #7B1E18;
            --theme-light: #D4CFC0;
            --theme-hover: #8B8068;
            --theme-hoverLink: #8B8068;
        }
        
        body {
            background: linear-gradient(135deg, #f5f5f0 0%, #ffffff 100%);
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        .ENPI-header {
            background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-hover) 100%);
            color: white;
            padding: 2rem 0;
            box-shadow: 0 4px 15px rgba(174, 166, 140, 0.3);
        }
        
        .ENPI-header h4, .ENPI-header h3 {
            color: white;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
        }
        
        .lang-switcher {
            background: white;
            border-radius: 25px;
            padding: 5px 15px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            display: inline-flex;
            gap: 10px;
        }
        
        .lang-switcher a {
            color: #666;
            text-decoration: none;
            padding: 5px 15px;
            border-radius: 20px;
            transition: all 0.3s ease;
            font-weight: 500;
        }
        
        .lang-switcher a:hover { color: var(--theme-primary); }
        .lang-switcher a.active {
            background: var(--theme-primary);
            color: white;
        }
        
        .main-card {
            border: none;
            border-radius: 15px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.1);
            overflow: hidden;
            background: white;
        }
        
        .card-header-custom {
            background: linear-gradient(135deg, var(--theme-light) 0%, #ffffff 100%);
            border-bottom: 3px solid var(--theme-primary);
            padding: 2rem;
        }
        
        .ENPI-link {
            color: var(--theme-dark);
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s ease;
            cursor: pointer;
        }
        
        .ENPI-link:hover {
            color: var(--theme-primary);
            text-decoration: underline;
        }
        
        .btn-ENPI {
            background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-hover) 100%);
            border: none;
            color: white;
            border-radius: 6px;    
            padding: 5px 30px;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(174, 166, 140, 0.4);
        }
        
        .btn-ENPI:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(174, 166, 140, 0.6);
            color: white;
        }
        
        .btn-ENPI-danger {
            background: linear-gradient(135deg, #de838c 0%, #a83843 100%);
            border: none;
            color: white;
            border-radius: 6px;    
            padding: 5px 20px;
            font-weight: 600;
        }
        
        .modal-header-custom {
            background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-hover) 100%);
            color: white;
        }
        
        .captcha-box {
            border: 2px dashed var(--theme-primary);
            border-radius: 10px;
            padding: 15px;
            background: #faf9f7;
        }
        
        .form-control:focus {
            border-color: var(--theme-primary);
            box-shadow: 0 0 0 0.2rem rgba(174, 166, 140, 0.25);
        }
        
        .input-group-text {
            background: var(--theme-primary);
            color: white;
            border: none;
        }
        
        .nav-tabs .nav-link.active {
            background: var(--theme-primary);
            color: white;
            border-color: var(--theme-primary);
        }
        
        .nav-tabs .nav-link {
            color: var(--theme-hoverLink);
            font-weight: 600;
			color: #821F15;
        }
        
        .table-ENPI {
            border: 2px solid var(--theme-primary);
        }
        
        .table-ENPI th {
            background: var(--theme-light);
            color: var(--theme-dark);
            font-weight: 700;
        }
        
        .loading-overlay {
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(174, 166, 140, 0.95);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.5s ease;
        }
        
        .spinner-ENPI {
            width: 60px; height: 60px;
            border: 5px solid white;
            border-top-color: var(--theme-dark);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin { to { transform: rotate(360deg); } }
        
        .important-text { color: var(--theme-dark); font-weight: 700; }
        
        .ol-custom {
            counter-reset: item;
            list-style: none;
            padding: 0;
        }
        
        .ol-custom li {
            counter-increment: item;
            margin-bottom: 15px;
            padding-left: 40px;
            position: relative;
        }
        
        .ol-custom li::before {
            content: counter(item);
            position: absolute;
            left: 0; top: 0;
            width: 28px; height: 28px;
            background: var(--theme-primary);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 14px;
        }
        
        [dir="rtl"] .ol-custom li { padding-left: 0; padding-right: 40px; }
        [dir="rtl"] .ol-custom li::before { left: auto; right: 0; }
		
		[dir="rtl"] .modalInscription .modal-body {
			text-align: right;
		}
		[dir="rtl"] .modalInscription ul ul {
			padding-right: 20px;
			padding-left: 0;
		}


.alert-important {
    background: #fff8f0;
}

/* Français / Anglais (LTR) - bordure à gauche */
[dir="ltr"] .alert-important {
    border-left: 4px solid var(--theme-dark);
    border-right: none;
}

/* Arabe (RTL) - bordure à droite */
[dir="rtl"] .alert-important {
    border-right: 4px solid var(--theme-dark);
    border-left: none;
}
