<?php
// Constantes de l'application
define('APP_NAME', 'ADVANCED Payroll');
define('APP_VERSION', '1.0.0');
define('COMPANY_NAME', 'ADVANCED Corporate Services');
define('COMPANY_ADDRESS', '32 rue du Cure, L-1368 Luxembourg');
define('APP_ROOT', dirname(dirname(__FILE__)));
define('APP_URL', 'https://'.$_SERVER['HTTP_HOST']);
define('UPLOAD_DIR', APP_ROOT.'/storage/uploads');

// Constantes de sécurité
define('PASSWORD_HASH_ALGO', PASSWORD_BCRYPT);
define('PASSWORD_HASH_OPTIONS', ['cost' => 12]);

// Rôles utilisateurs
define('ROLE_ADMIN', 'admin');
define('ROLE_ACCOUNTANT', 'chef_comptable');
define('ROLE_CLERK', 'comptable');

// Paramètres sociaux par défaut (Luxembourg)
define('DEFAULT_SOCIAL_RATES', [
    'CM' => ['rate' => 2.80, 'base' => 100.00],
    'CME' => ['rate' => 0.25, 'base' => 100.00],
    'CP' => ['rate' => 8.00, 'base' => 100.00],
    'SD' => ['rate' => 1.40, 'base' => 93.87]
]);
?>