augustin.podvin 11 месяцев назад
Родитель
Сommit
4fca36c3c4
4 измененных файлов с 1261 добавлено и 820 удалено
  1. 456 0
      demande-it-avenant.php
  2. 346 0
      demande-rh-avenant.php
  3. 64 420
      demande-rh.php
  4. 395 400
      gestion-utilisateurs.php

+ 456 - 0
demande-it-avenant.php

@@ -0,0 +1,456 @@
+<!DOCTYPE html>
+<html lang="fr">
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <title>Demande IT - SIPA Automobiles</title>
+    
+    <!-- Tailwind CSS CDN -->
+    <script src="https://cdn.tailwindcss.com"></script>
+    <style>
+      /* Style pour les onglets actifs Preline */
+      button[role="tab"].active,
+      button[role="tab"][aria-selected="true"] {
+        background-color: white !important;
+        color: #21B6BA !important; /* Couleur turquoise */
+        border-bottom: 3px solid #21B6BA !important;
+        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
+        font-weight: 600 !important;
+      }
+      @media (prefers-color-scheme: dark) {
+        button[role="tab"].active,
+        button[role="tab"][aria-selected="true"] {
+          background-color: rgb(38, 38, 38) !important; /* dark:bg-neutral-800 */
+          color: #21B6BA !important; /* Couleur turquoise */
+          border-bottom: 3px solid #21B6BA !important;
+        }
+      }
+    </style>
+</head>
+<body class="bg-gray-50 dark:bg-neutral-900">
+    
+    <?php 
+    $skip_default_content = true;
+    include 'menu.php'; 
+    ?>
+    
+    <!-- Content -->
+    <div class="pt-12 lg:pt-16 lg:ps-64">
+      <div class="min-h-screen p-4 md:p-8">
+  
+
+        <!-- Card: Synthèse de la demande -->
+        <div class="mb-6 bg-white border border-gray-200 rounded-xl shadow-sm dark:bg-neutral-800 dark:border-neutral-700">
+          <div class="p-6 mx-6">
+            <!-- Title and Statut Header -->
+            <div class="flex justify-between items-center gap-3 mb-6 pb-4 border-b border-gray-200 dark:border-neutral-700">
+              <!-- Title -->
+              <h2 class="text-lg font-semibold text-[#21B6BA] dark:text-[#21B6BA]">Vue focus de la demande</h2>
+              <!-- Dropdown Statut -->
+              <div class="relative">
+                <select id="statut" name="statut" class="py-2 px-3 inline-flex items-center gap-x-2 text-sm font-medium rounded-lg border border-transparent bg-orange-500 text-white hover:bg-orange-600 focus:outline-none focus:ring-2 focus:ring-orange-500 focus:ring-offset-2 dark:focus:ring-offset-gray-800 appearance-none pr-8 cursor-pointer">
+                  <option value="">Statut</option>
+                  <option value="en-attente">En attente</option>
+                  <option value="en-cours">En cours</option>
+                  <option value="traitee">Traitée</option>
+                  <option value="annulee">Annulée</option>
+                </select>
+                <svg class="absolute right-2 top-1/2 -translate-y-1/2 size-3 text-white pointer-events-none" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
+                  <path d="M2 5L8.16086 10.6869C8.35239 10.8637 8.64761 10.8637 8.83914 10.6869L15 5" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
+                </svg>
+              </div>
+              <!-- End Dropdown Statut -->
+            </div>
+            <!-- End Title and Statut Header -->
+            
+            <!-- Tabs Navigation -->
+            <nav class="flex flex-wrap gap-x-1 mb-4 bg-gray-50 dark:bg-neutral-700/50 p-1 rounded-lg" aria-label="Tabs" role="tablist">
+            <button type="button" class="hs-tab-active:bg-white hs-tab-active:text-[#21B6BA] hs-tab-active:shadow-md hs-tab-active:border-b-2 hs-tab-active:border-[#21B6BA] dark:hs-tab-active:bg-neutral-800 dark:hs-tab-active:text-[#21B6BA] py-2 px-3 inline-flex items-center gap-x-2 text-sm font-medium text-center text-gray-500 rounded-md hover:text-gray-700 hover:bg-gray-100 dark:text-neutral-400 dark:hover:text-neutral-300 dark:hover:bg-neutral-600 transition-all duration-200 active" id="tab-synthese-it-main" data-hs-tab="#tab-content-synthese-it-main" aria-controls="tab-content-synthese-it-main" role="tab">
+                <svg class="size-4" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+                  <path stroke-linecap="round" stroke-linejoin="round" d="M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" />
+                </svg>
+                Synthèse IT
+              </button>              <button type="button" class="hs-tab-active:bg-white hs-tab-active:text-[#21B6BA] hs-tab-active:shadow-md hs-tab-active:border-b-2 hs-tab-active:border-[#21B6BA] dark:hs-tab-active:bg-neutral-800 dark:hs-tab-active:text-[#21B6BA] py-2 px-3 inline-flex items-center gap-x-2 text-sm font-medium text-center text-gray-500 rounded-md hover:text-gray-700 hover:bg-gray-100 dark:text-neutral-400 dark:hover:text-neutral-300 dark:hover:bg-neutral-600 transition-all duration-200" id="tab-avenant-it-main" data-hs-tab="#tab-content-avenant-it-main" aria-controls="tab-content-avenant-it-main" role="tab">
+                <svg class="size-4" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+                  <path stroke-linecap="round" stroke-linejoin="round" d="M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" />
+                </svg>
+                Avenant
+              </button>
+
+            </nav>
+
+            <!-- Tabs Content -->
+            <div class="mt-3 mx-6">
+              <!-- Tab 1: Synthèse IT -->
+              <div id="tab-content-synthese-it-main" role="tabpanel" aria-labelledby="tab-synthese-it-main">
+                <div class="space-y-3">
+                  <!-- Grid 2 colonnes : Identité & Contact et Demande -->
+                  <div class="grid grid-cols-2 gap-3">
+                    <!-- Bloc 1: Identité & Contact -->
+                    <div class="p-6 pt-10 bg-gradient-to-r from-blue-50 to-cyan-50 dark:from-blue-900/20 dark:to-cyan-900/20 rounded-lg border border-blue-100 dark:border-blue-800">
+                      <div class="flex items-center gap-2 mb-5">
+                        <svg class="size-4 text-blue-600 dark:text-blue-400" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+                          <path stroke-linecap="round" stroke-linejoin="round" d="M10 6H5a2 2 0 00-2 2v9a2 2 0 002 2h14a2 2 0 002-2V8a2 2 0 00-2-2h-5m-4 0V5a2 2 0 114 0v1m-4 0a2 2 0 104 0m-5 8a2 2 0 100-4 2 2 0 000 4zm0 0c1.306 0 2.417.835 2.83 2M9 14a3.001 3.001 0 00-2.83 2M15 11h3m-3 4h2" />
+                        </svg>
+                        <p class="text-xs font-semibold text-blue-900 dark:text-blue-200 uppercase">Identité & Contact</p>
+                      </div>
+                      <div class="space-y-1.5">
+                        <div class="flex justify-between">
+                          <span class="text-xs text-blue-600 dark:text-blue-400">Prénom:</span>
+                          <span class="text-sm font-semibold text-gray-900 dark:text-white">Cyril</span>
+                        </div>
+                        <div class="flex justify-between">
+                          <span class="text-xs text-blue-600 dark:text-blue-400">Nom:</span>
+                          <span class="text-sm font-semibold text-gray-900 dark:text-white">PHILIPPE</span>
+                        </div>
+                        <div class="flex justify-between">
+                          <span class="text-xs text-blue-600 dark:text-blue-400">Date de naissance:</span>
+                          <span class="text-sm font-semibold text-gray-900 dark:text-white">15/05/1985</span>
+                        </div>
+                        <div class="flex justify-between">
+                          <span class="text-xs text-blue-600 dark:text-blue-400">Téléphone:</span>
+                          <span class="text-sm font-semibold text-gray-900 dark:text-white">06 12 34 56 78</span>
+                        </div>
+                        <div class="flex justify-between">
+                          <span class="text-xs text-blue-600 dark:text-blue-400">Email:</span>
+                          <span class="text-sm font-semibold text-gray-900 dark:text-white">cyril.philippe@sipa.fr</span>
+                        </div>
+                      </div>
+                    </div>
+
+                    <!-- Bloc 2: Demande -->
+                    <div class="p-6 pt-10 bg-gradient-to-r from-purple-50 to-pink-50 dark:from-purple-900/20 dark:to-pink-900/20 rounded-lg border border-purple-100 dark:border-purple-800">
+                      <div class="flex items-center gap-2 mb-5">
+                        <svg class="size-4 text-purple-600 dark:text-purple-400" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+                          <path stroke-linecap="round" stroke-linejoin="round" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" />
+                        </svg>
+                        <p class="text-xs font-semibold text-purple-900 dark:text-purple-200 uppercase">Demande</p>
+                      </div>
+                      <div class="space-y-1.5">
+                        <div class="flex justify-between">
+                          <span class="text-xs text-purple-600 dark:text-purple-400">Site:</span>
+                          <span class="text-sm font-semibold text-gray-900 dark:text-white">AUTO 33</span>
+                        </div>
+                        <div class="flex justify-between">
+                          <span class="text-xs text-purple-600 dark:text-purple-400">Demandeur:</span>
+                          <span class="text-sm font-semibold text-gray-900 dark:text-white">ccperchery</span>
+                        </div>
+                        <div class="flex justify-between">
+                          <span class="text-xs text-purple-600 dark:text-purple-400">Date de la demande:</span>
+                          <span class="text-sm font-semibold text-gray-900 dark:text-white">2025-09-26</span>
+                        </div>
+                        <div class="flex justify-between">
+                          <span class="text-xs text-purple-600 dark:text-purple-400">Date d'entrée:</span>
+                          <span class="text-sm font-semibold text-gray-900 dark:text-white">2025-11-03</span>
+                        </div>
+                      </div>
+                    </div>
+                  </div>
+
+                  <!-- Grid 2 colonnes : Recrutement et Commentaire -->
+                  <div class="grid grid-cols-2 gap-3">
+                    <!-- Bloc 3: Recrutement -->
+                    <div class="p-6 pt-10 bg-gradient-to-r from-green-50 to-emerald-50 dark:from-green-900/20 dark:to-emerald-900/20 rounded-lg border border-green-100 dark:border-green-800">
+                      <div class="flex items-center gap-2 mb-5">
+                        <svg class="size-4 text-green-600 dark:text-green-400" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+                          <path stroke-linecap="round" stroke-linejoin="round" d="M21 13.255A23.931 23.931 0 0112 15c-3.183 0-6.22-.62-9-1.745M16 6V4a2 2 0 00-2-2h-4a2 2 0 00-2 2v2m4 6h.01M5 20h14a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" />
+                        </svg>
+                        <p class="text-xs font-semibold text-green-900 dark:text-green-200 uppercase">Recrutement</p>
+                      </div>
+                      <div class="space-y-1.5">
+                        <div class="flex justify-between">
+                          <span class="text-xs text-green-600 dark:text-green-400">Nom:</span>
+                          <span class="text-sm font-semibold text-gray-900 dark:text-white">Cyril PHILIPPE</span>
+                        </div>
+                        <div class="flex justify-between">
+                          <span class="text-xs text-green-600 dark:text-green-400">Poste:</span>
+                          <span class="text-sm font-semibold text-gray-900 dark:text-white">Agent de maîtrise ateller</span>
+                        </div>
+                        <div class="flex justify-between">
+                          <span class="text-xs text-green-600 dark:text-green-400">Date d'entrée:</span>
+                          <span class="text-sm font-semibold text-gray-900 dark:text-white">2025-11-03</span>
+                        </div>
+                        <div class="flex justify-between">
+                          <span class="text-xs text-green-600 dark:text-green-400">Type de contrat:</span>
+                          <span class="inline-flex px-2.5 py-1 bg-green-600 text-white text-xs font-bold rounded">CDI</span>
+                        </div>
+                      </div>
+                    </div>
+
+                    <!-- Bloc 4: Infos complémentaires -->
+                    <div class="p-6 pt-10 bg-gradient-to-r from-amber-50 to-orange-50 dark:from-amber-900/20 dark:to-orange-900/20 rounded-lg border border-amber-100 dark:border-amber-800">
+                      <div class="flex items-center gap-2 mb-5">
+                        <svg class="size-4 text-amber-600 dark:text-amber-400" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+                          <path stroke-linecap="round" stroke-linejoin="round" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
+                        </svg>
+                        <p class="text-xs font-semibold text-amber-900 dark:text-amber-200 uppercase">Infos complémentaires</p>
+                      </div>
+                      <div class="space-y-3">
+                        <div>
+                          <span class="text-xs text-amber-600 dark:text-amber-400 font-medium mb-2 block">Commentaire:</span>
+                          <div class="mt-2 p-3 bg-white dark:bg-neutral-700 rounded-lg border border-amber-200 dark:border-amber-700">
+                            <p class="text-sm text-gray-900 dark:text-white leading-relaxed">Ceci est un commentaire pré-rempli pour la demande de recrutement.</p>
+                          </div>
+                        </div>
+                        <div>
+                          <span class="text-xs text-amber-600 dark:text-amber-400">Note:</span>
+                          <p class="text-sm font-semibold text-gray-900 dark:text-white mt-0.5">Note importante à prendre en compte</p>
+                        </div>
+                      </div>
+                    </div>
+                  </div>
+                </div>
+              </div>
+
+              <!-- Tab 2: Avenant -->
+              <div id="tab-content-avenant-it-main" role="tabpanel" aria-labelledby="tab-avenant-it-main" style="display: none;">
+                <div class="space-y-3">
+                  <!-- Bloc rouge - Ancienne configuration -->
+                  <div class="p-6 pt-10 bg-gradient-to-r from-red-50 to-rose-50 dark:from-red-900/20 dark:to-rose-900/20 rounded-lg border border-red-100 dark:border-red-800">
+                    <div class="flex items-center gap-2 mb-5">
+                      <svg class="size-4 text-red-600 dark:text-red-400" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+                        <path stroke-linecap="round" stroke-linejoin="round" d="M10 6H5a2 2 0 00-2 2v9a2 2 0 002 2h14a2 2 0 002-2V8a2 2 0 00-2-2h-5m-4 0V5a2 2 0 114 0v1m-4 0a2 2 0 104 0m-5 8a2 2 0 100-4 2 2 0 000 4zm0 0c1.306 0 2.417.835 2.83 2M9 14a3.001 3.001 0 00-2.83 2M15 11h3m-3 4h2" />
+                      </svg>
+                      <p class="text-xs font-semibold text-red-900 dark:text-red-200 uppercase">Ancienne configuration</p>
+                    </div>
+                    <div class="space-y-1.5">
+                      <div class="flex justify-between">
+                        <span class="text-xs text-red-600 dark:text-red-400">Prénom:</span>
+                        <span class="text-sm font-semibold text-gray-900 dark:text-white">Cyril</span>
+                      </div>
+                      <div class="flex justify-between">
+                        <span class="text-xs text-red-600 dark:text-red-400">Nom:</span>
+                        <span class="text-sm font-semibold text-gray-900 dark:text-white">PHILIPPE</span>
+                      </div>
+                      <div class="flex justify-between">
+                        <span class="text-xs text-red-600 dark:text-red-400">Date de naissance:</span>
+                        <span class="text-sm font-semibold text-gray-900 dark:text-white">15/05/1985</span>
+                      </div>
+                      <div class="flex justify-between">
+                        <span class="text-xs text-red-600 dark:text-red-400">Téléphone:</span>
+                        <span class="text-sm font-semibold text-gray-900 dark:text-white">06 12 34 56 78</span>
+                      </div>
+                      <div class="flex justify-between">
+                        <span class="text-xs text-red-600 dark:text-red-400">Email:</span>
+                        <span class="text-sm font-semibold text-gray-900 dark:text-white">cyril.philippe@sipa.fr</span>
+                      </div>
+                      <div class="flex justify-between">
+                        <span class="text-xs text-red-600 dark:text-red-400">Liste de diffusion:</span>
+                        <span class="text-sm font-semibold text-gray-900 dark:text-white">-</span>
+                      </div>
+                      <div class="flex justify-between">
+                        <span class="text-xs text-red-600 dark:text-red-400">Ordinateur fixe:</span>
+                        <span class="text-sm font-semibold text-gray-900 dark:text-white">Oui</span>
+                      </div>
+                    </div>
+                  </div>
+                </div>
+              </div>
+              <!-- End Tab 2: Avenant -->
+
+            </div>
+
+          </div>
+        </div>
+        <!-- End Card: Synthèse de la demande -->
+
+        <!-- Grid Container for Two Task Lists Cards -->
+        <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6">
+          <!-- Card: Liste de tâches - Matériel Informatique -->
+        <div class="bg-white border border-gray-200 rounded-xl shadow-sm dark:bg-neutral-800 dark:border-neutral-700">
+          <div class="p-6">
+              <!-- Header with dropdown -->
+
+
+              <!-- Matériel type ordinateur -->
+              <h3 class="text-sm font-semibold text-gray-700 dark:text-neutral-300 mb-4">Matériel type ordinateur</h3>
+              <ul class="space-y-3 mb-4">
+                <!-- PC Fixe -->
+                <li class="flex items-start gap-x-3 p-3 bg-gray-50 rounded-lg dark:bg-neutral-700/50">
+                  <input type="checkbox" id="task-pc" class="shrink-0 mt-1 border-gray-200 rounded text-blue-600 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800">
+                  <div class="flex items-center gap-3 flex-1">
+                    <div class="flex items-center justify-center size-10 bg-gray-800 rounded-lg dark:bg-gray-900">
+                      <svg class="size-6 text-white" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+                        <path stroke-linecap="round" stroke-linejoin="round" d="M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" />
+                      </svg>
+                    </div>
+                    <div class="flex-1 min-w-0">
+                      <label for="task-pc" class="text-sm font-medium text-gray-800 dark:text-neutral-200 cursor-pointer">PC FIXE</label>
+                      <ul class="text-xs text-gray-700 dark:text-neutral-300 space-y-1 mt-1">
+                        <li>- <span class="font-medium">Numéro de la ligne récupérée:</span></li>
+                      </ul>
+                    </div>
+                  </div>
+                </li>
+
+                <!-- Écran -->
+                <li class="flex items-center gap-x-3 p-3 bg-gray-50 rounded-lg dark:bg-neutral-700/50">
+                  <input type="checkbox" id="task-ecran" class="shrink-0 mt-0.5 border-gray-200 rounded text-blue-600 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800">
+                  <div class="flex items-center gap-3 flex-1">
+                    <div class="flex items-center justify-center size-10 bg-blue-500 rounded-lg">
+                      <svg class="size-6 text-white" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+                        <path stroke-linecap="round" stroke-linejoin="round" d="M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" />
+                      </svg>
+                    </div>
+                    <label for="task-ecran" class="text-sm font-medium text-gray-800 dark:text-neutral-200 cursor-pointer">Écran</label>
+                  </div>
+                </li>
+
+                <!-- Clavier -->
+                <li class="flex items-center gap-x-3 p-3 bg-gray-50 rounded-lg dark:bg-neutral-700/50">
+                  <input type="checkbox" id="task-clavier" class="shrink-0 mt-0.5 border-gray-200 rounded text-blue-600 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800">
+                  <div class="flex items-center gap-3 flex-1">
+                    <div class="flex items-center justify-center size-10 bg-gray-600 rounded-lg">
+                      <svg class="size-6 text-white" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+                        <path stroke-linecap="round" stroke-linejoin="round" d="M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4" />
+                      </svg>
+                    </div>
+                    <label for="task-clavier" class="text-sm font-medium text-gray-800 dark:text-neutral-200 cursor-pointer">Clavier</label>
+                  </div>
+                </li>
+
+
+              </ul>
+
+
+            </div>
+          </div>
+          <!-- End Card: Liste de tâches - Matériel Informatique -->
+
+          <!-- Card: Liste de tâches - Matériel Téléphonique -->
+          <div class="bg-white border border-gray-200 rounded-xl shadow-sm dark:bg-neutral-800 dark:border-neutral-700">
+            <div class="p-6">
+
+
+              <!-- Téléphonie -->
+              <h3 class="text-sm font-semibold text-gray-700 dark:text-neutral-300 mb-4">Nous n'implémentons PAS</h3>
+              <ul class="space-y-3 mb-4">
+                <!-- Téléphone Fixe -->
+                <li class="flex items-start gap-x-3 p-3 bg-gray-50 rounded-lg dark:bg-neutral-700/50">
+                  <input type="checkbox" id="task-tel-fixe" class="shrink-0 mt-1 border-gray-200 rounded text-blue-600 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800">
+                  <div class="flex items-center gap-3 flex-1">
+                    <div class="flex items-center justify-center size-10 bg-green-600 rounded-lg">
+                      <svg class="size-6 text-white" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+                        <path stroke-linecap="round" stroke-linejoin="round" d="M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z" />
+                      </svg>
+                    </div>
+                    <div class="flex-1 min-w-0">
+                      <label for="task-tel-fixe" class="text-sm font-medium text-gray-800 dark:text-neutral-200 cursor-pointer">Téléphone Fixe</label>
+                      <ul class="text-xs text-gray-700 dark:text-neutral-300 space-y-1 mt-1">
+                        <li>- <span class="font-medium">Numéro de la ligne récupérée:</span></li>
+                      </ul>
+                    </div>
+                  </div>
+                </li>
+
+
+              </ul>
+
+
+            </div>
+          </div>
+          <!-- End Card: Liste de tâches - Matériel Téléphonique -->
+        </div>
+        <!-- End Grid Container for Task Lists -->
+
+        <!-- Grid Container for Statut and Historique Cards -->
+        <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6">
+          <!-- Card: Statut Actualisation/administrations -->
+          <div class="bg-white border border-gray-200 rounded-xl shadow-sm dark:bg-neutral-800 dark:border-neutral-700">
+            <div class="p-6">
+              <!-- Header -->
+              <div class="mb-6 pb-4 border-b border-gray-200 dark:border-neutral-700">
+                <h2 class="text-lg font-semibold text-gray-800 dark:text-white">Statut Actualisation/administrations</h2>
+              </div>
+
+              <ul class="space-y-3">
+                <!-- Active Directory -->
+                <li class="flex items-start gap-x-3 p-4 bg-green-50 rounded-lg dark:bg-green-900/20">
+                  <input type="checkbox" checked id="task-ad" class="shrink-0 mt-1 border-gray-200 rounded text-green-600 focus:ring-green-500 dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-green-500 dark:checked:border-green-500 dark:focus:ring-offset-gray-800">
+                  <div class="flex-1 min-w-0">
+                    <div class="flex items-center justify-between mb-2">
+                      <label for="task-ad" class="text-sm font-semibold text-gray-800 dark:text-white cursor-pointer">ACTIVE DIRECTORY</label>
+                      <span class="inline-flex items-center gap-x-1.5 py-1.5 px-3 rounded-full text-xs font-medium bg-green-100 text-green-800 dark:bg-green-800/30 dark:text-green-500">
+                        <span class="size-1.5 inline-block rounded-full bg-green-800 dark:bg-green-500"></span>
+                        Validé
+                      </span>
+                    </div>
+                    <ul class="text-xs text-gray-700 dark:text-neutral-300 space-y-1">
+                      <li>- <span class="font-medium">Login:</span> anthony.gilabert</li>
+                      <li>- <span class="font-medium">Tmp Pass:</span> S@p@eXf)x9</li>
+                      <li>- <span class="font-medium">OU:</span> AUTO NORD</li>
+                    </ul>
+                  </div>
+                </li>
+
+
+              </ul>
+            </div>
+          </div>
+          <!-- End Card: Statut Actualisation/administrations -->
+
+
+        </div>
+        <!-- End Grid Container for Statut and Historique -->
+
+      </div>
+    </div>
+    <!-- End Content -->
+    
+    <!-- Preline UI -->
+    <script src="https://cdn.jsdelivr.net/npm/preline@2.1.0/dist/preline.js"></script>
+    
+    <!-- Script pour copier dans le presse-papier -->
+    <script>
+      function copyToClipboard(text) {
+        navigator.clipboard.writeText(text).then(function() {
+          // Optionnel: afficher une notification de succès
+          const button = event.target.closest('button');
+          const originalText = button.innerHTML;
+          button.innerHTML = '<svg class="size-3" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7" /></svg> Copié';
+          button.classList.add('text-green-600');
+          setTimeout(function() {
+            button.innerHTML = originalText;
+            button.classList.remove('text-green-600');
+          }, 2000);
+        }).catch(function(err) {
+          console.error('Erreur lors de la copie:', err);
+        });
+      }
+
+      // Gestion des onglets
+      document.addEventListener('DOMContentLoaded', function() {
+        const tabs = document.querySelectorAll('[role="tab"]');
+        const tabContents = document.querySelectorAll('[role="tabpanel"]');
+
+        tabs.forEach(function(tab) {
+          tab.addEventListener('click', function() {
+            const targetId = this.getAttribute('data-hs-tab');
+            
+            // Désactiver tous les onglets
+            tabs.forEach(function(t) {
+              t.classList.remove('active');
+              t.setAttribute('aria-selected', 'false');
+            });
+            
+            // Masquer tous les contenus
+            tabContents.forEach(function(content) {
+              content.style.display = 'none';
+            });
+            
+            // Activer l'onglet cliqué
+            this.classList.add('active');
+            this.setAttribute('aria-selected', 'true');
+            
+            // Afficher le contenu correspondant
+            const targetContent = document.querySelector(targetId);
+            if (targetContent) {
+              targetContent.style.display = 'block';
+            }
+          });
+        });
+      });
+    </script>
+</body>
+</html>
+

+ 346 - 0
demande-rh-avenant.php

@@ -0,0 +1,346 @@
+<!DOCTYPE html>
+<html lang="fr">
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <title>Demande RH - SIPA Automobiles</title>
+    
+    <!-- Tailwind CSS CDN -->
+    <script src="https://cdn.tailwindcss.com"></script>
+    <style>
+      /* Style pour les onglets actifs Preline */
+      button[role="tab"].active,
+      button[role="tab"][aria-selected="true"] {
+        background-color: white !important;
+        color: #21B6BA !important; /* Couleur turquoise */
+        border-bottom: 3px solid #21B6BA !important;
+        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
+        font-weight: 600 !important;
+      }
+      @media (prefers-color-scheme: dark) {
+        button[role="tab"].active,
+        button[role="tab"][aria-selected="true"] {
+          background-color: rgb(38, 38, 38) !important; /* dark:bg-neutral-800 */
+          color: #21B6BA !important; /* Couleur turquoise */
+          border-bottom: 3px solid #21B6BA !important;
+        }
+      }
+    </style>
+</head>
+<body class="bg-gray-50 dark:bg-neutral-900">
+    
+    <?php 
+    $skip_default_content = true;
+    include 'menu.php'; 
+    ?>
+    
+    <!-- Content -->
+    <div class="pt-12 lg:pt-16 lg:ps-64">
+      <div class="min-h-screen p-4 md:p-8">
+  
+
+        <!-- Card: Synthèse de la demande -->
+        <div class="mb-6 bg-white border border-gray-200 rounded-xl shadow-sm dark:bg-neutral-800 dark:border-neutral-700">
+          <div class="p-6 mx-6">
+            <!-- Title and Statut Header -->
+            <div class="flex justify-between items-center gap-3 mb-6 pb-4 border-b border-gray-200 dark:border-neutral-700">
+              <!-- Title -->
+              <h2 class="text-lg font-semibold text-[#21B6BA] dark:text-[#21B6BA]">Vue focus de la demande</h2>
+              <!-- Dropdown Statut -->
+              <div class="relative">
+                <select id="statut" name="statut" class="py-2 px-3 inline-flex items-center gap-x-2 text-sm font-medium rounded-lg border border-transparent bg-orange-500 text-white hover:bg-orange-600 focus:outline-none focus:ring-2 focus:ring-orange-500 focus:ring-offset-2 dark:focus:ring-offset-gray-800 appearance-none pr-8 cursor-pointer">
+                  <option value="">Statut</option>
+                  <option value="en-attente">En attente</option>
+                  <option value="en-cours">En cours</option>
+                  <option value="traitee">Traitée</option>
+                  <option value="annulee">Annulée</option>
+                </select>
+                <svg class="absolute right-2 top-1/2 -translate-y-1/2 size-3 text-white pointer-events-none" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
+                  <path d="M2 5L8.16086 10.6869C8.35239 10.8637 8.64761 10.8637 8.83914 10.6869L15 5" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
+                </svg>
+              </div>
+              <!-- End Dropdown Statut -->
+            </div>
+            <!-- End Title and Statut Header -->
+            
+            <!-- Tabs Navigation -->
+            <nav class="flex flex-wrap gap-x-1 mb-4 bg-gray-50 dark:bg-neutral-700/50 p-1 rounded-lg" aria-label="Tabs" role="tablist">
+              <button type="button" class="hs-tab-active:bg-white hs-tab-active:text-[#21B6BA] hs-tab-active:shadow-md hs-tab-active:border-b-2 hs-tab-active:border-[#21B6BA] dark:hs-tab-active:bg-neutral-800 dark:hs-tab-active:text-[#21B6BA] py-2 px-3 inline-flex items-center gap-x-2 text-sm font-medium text-center text-gray-500 rounded-md hover:text-gray-700 hover:bg-gray-100 dark:text-neutral-400 dark:hover:text-neutral-300 dark:hover:bg-neutral-600 transition-all duration-200 active" id="tab-synthese-rh-main" data-hs-tab="#tab-content-synthese-rh-main" aria-controls="tab-content-synthese-rh-main" aria-selected="true" role="tab">
+                <svg class="size-4" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+                  <path stroke-linecap="round" stroke-linejoin="round" d="M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" />
+                </svg>
+                Synthèse RH
+              </button>
+              <button type="button" class="hs-tab-active:bg-white hs-tab-active:text-[#21B6BA] hs-tab-active:shadow-md hs-tab-active:border-b-2 hs-tab-active:border-[#21B6BA] dark:hs-tab-active:bg-neutral-800 dark:hs-tab-active:text-[#21B6BA] py-2 px-3 inline-flex items-center gap-x-2 text-sm font-medium text-center text-gray-500 rounded-md hover:text-gray-700 hover:bg-gray-100 dark:text-neutral-400 dark:hover:text-neutral-300 dark:hover:bg-neutral-600 transition-all duration-200" id="tab-avenant-rh-main" data-hs-tab="#tab-content-avenant-rh-main" aria-controls="tab-content-avenant-rh-main" aria-selected="false" role="tab">
+                <svg class="size-4" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+                  <path stroke-linecap="round" stroke-linejoin="round" d="M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" />
+                </svg>
+                RH avenant 
+              </button>
+            </nav>
+
+            <!-- Tabs Content -->
+            <div class="mt-3 mx-6">
+              <!-- Tab 1: Synthèse RH -->
+              <div id="tab-content-synthese-rh-main" role="tabpanel" aria-labelledby="tab-synthese-rh-main">
+                <div class="space-y-3">
+                  <!-- Grid 2 colonnes : Identité & Contact et Demande -->
+                  <div class="grid grid-cols-2 gap-3">
+                    <!-- Bloc 1: Identité -->
+                    <div class="p-6 pt-10 bg-gradient-to-r from-blue-50 to-cyan-50 dark:from-blue-900/20 dark:to-cyan-900/20 rounded-lg border border-blue-100 dark:border-blue-800">
+                      <div class="flex items-center gap-2 mb-5">
+                        <svg class="size-4 text-blue-600 dark:text-blue-400" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+                          <path stroke-linecap="round" stroke-linejoin="round" d="M10 6H5a2 2 0 00-2 2v9a2 2 0 002 2h14a2 2 0 002-2V8a2 2 0 00-2-2h-5m-4 0V5a2 2 0 114 0v1m-4 0a2 2 0 104 0m-5 8a2 2 0 100-4 2 2 0 000 4zm0 0c1.306 0 2.417.835 2.83 2M9 14a3.001 3.001 0 00-2.83 2M15 11h3m-3 4h2" />
+                        </svg>
+                        <p class="text-xs font-semibold text-blue-900 dark:text-blue-200 uppercase">Identité</p>
+                      </div>
+                      <div class="space-y-1.5">
+                        <div class="flex justify-between">
+                          <span class="text-xs text-blue-600 dark:text-blue-400">Prénom:</span>
+                          <span class="text-sm font-semibold text-gray-900 dark:text-white">Cyril</span>
+                        </div>
+                        <div class="flex justify-between">
+                          <span class="text-xs text-blue-600 dark:text-blue-400">Nom:</span>
+                          <span class="text-sm font-semibold text-gray-900 dark:text-white">PHILIPPE</span>
+                        </div>
+                      </div>
+                    </div>
+
+                    <!-- Bloc 2: Demande -->
+                    <div class="p-6 pt-10 bg-gradient-to-r from-purple-50 to-pink-50 dark:from-purple-900/20 dark:to-pink-900/20 rounded-lg border border-purple-100 dark:border-purple-800">
+                      <div class="flex items-center gap-2 mb-5">
+                        <svg class="size-4 text-purple-600 dark:text-purple-400" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+                          <path stroke-linecap="round" stroke-linejoin="round" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" />
+                        </svg>
+                        <p class="text-xs font-semibold text-purple-900 dark:text-purple-200 uppercase">Demande</p>
+                      </div>
+                      <div class="space-y-1.5">
+                        <div class="flex justify-between">
+                          <span class="text-xs text-purple-600 dark:text-purple-400">Site:</span>
+                          <span class="text-sm font-semibold text-gray-900 dark:text-white">AUTO 33</span>
+                        </div>
+                        <div class="flex justify-between">
+                          <span class="text-xs text-purple-600 dark:text-purple-400">Demandeur:</span>
+                          <span class="text-sm font-semibold text-gray-900 dark:text-white">ccperchery</span>
+                        </div>
+                        <div class="flex justify-between">
+                          <span class="text-xs text-purple-600 dark:text-purple-400">Date de la demande:</span>
+                          <span class="text-sm font-semibold text-gray-900 dark:text-white">2025-09-26</span>
+                        </div>
+                        <div class="flex justify-between">
+                          <span class="text-xs text-purple-600 dark:text-purple-400">Date d'entrée:</span>
+                          <span class="text-sm font-semibold text-gray-900 dark:text-white">2025-11-03</span>
+                        </div>
+                      </div>
+                    </div>
+                  </div>
+
+                  <!-- Grid 2 colonnes : Recrutement et Commentaire -->
+                  <div class="grid grid-cols-2 gap-3">
+                    <!-- Bloc 3: Recrutement -->
+                    <div class="p-6 pt-10 bg-gradient-to-r from-green-50 to-emerald-50 dark:from-green-900/20 dark:to-emerald-900/20 rounded-lg border border-green-100 dark:border-green-800">
+                      <div class="flex items-center gap-2 mb-5">
+                        <svg class="size-4 text-green-600 dark:text-green-400" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+                          <path stroke-linecap="round" stroke-linejoin="round" d="M21 13.255A23.931 23.931 0 0112 15c-3.183 0-6.22-.62-9-1.745M16 6V4a2 2 0 00-2-2h-4a2 2 0 00-2 2v2m4 6h.01M5 20h14a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" />
+                        </svg>
+                        <p class="text-xs font-semibold text-green-900 dark:text-green-200 uppercase">Recrutement</p>
+                      </div>
+                      <div class="space-y-1.5">
+                        <div class="flex justify-between">
+                          <span class="text-xs text-green-600 dark:text-green-400">Poste:</span>
+                          <span class="text-sm font-semibold text-gray-900 dark:text-white">Agent de maîtrise ateller</span>
+                        </div>
+                        <div class="flex justify-between">
+                          <span class="text-xs text-green-600 dark:text-green-400">Date d'entrée:</span>
+                          <span class="text-sm font-semibold text-gray-900 dark:text-white">2025-11-03</span>
+                        </div>
+                        <div class="flex justify-between">
+                          <span class="text-xs text-green-600 dark:text-green-400">Type de contrat:</span>
+                          <span class="inline-flex px-2.5 py-1 bg-green-600 text-white text-xs font-bold rounded">CDI</span>
+                        </div>
+                        <div class="flex justify-between">
+                          <span class="text-xs text-green-600 dark:text-green-400">Lettre d'engagement:</span>
+                          <span class="inline-flex items-center gap-1 text-xs font-semibold text-green-600 dark:text-green-400">
+                            <svg class="size-3" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+                              <path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7" />
+                            </svg>
+                            Oui
+                          </span>
+                        </div>
+                      </div>
+                    </div>
+
+                    <!-- Bloc 4: Infos complémentaires -->
+                    <div class="p-6 pt-10 bg-gradient-to-r from-amber-50 to-orange-50 dark:from-amber-900/20 dark:to-orange-900/20 rounded-lg border border-amber-100 dark:border-amber-800">
+                      <div class="flex items-center gap-2 mb-5">
+                        <svg class="size-4 text-amber-600 dark:text-amber-400" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+                          <path stroke-linecap="round" stroke-linejoin="round" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
+                        </svg>
+                        <p class="text-xs font-semibold text-amber-900 dark:text-amber-200 uppercase">Infos complémentaires</p>
+                      </div>
+                      <div class="space-y-3">
+                        <div>
+                          <span class="text-xs text-amber-600 dark:text-amber-400 font-medium mb-2 block">Commentaire:</span>
+                          <div class="mt-2 p-3 bg-white dark:bg-neutral-700 rounded-lg border border-amber-200 dark:border-amber-700">
+                            <p class="text-sm text-gray-900 dark:text-white leading-relaxed">Ceci est un commentaire pré-rempli pour la demande de recrutement.</p>
+                          </div>
+                        </div>
+                        <div>
+                          <span class="text-xs text-amber-600 dark:text-amber-400">Note:</span>
+                          <p class="text-sm font-semibold text-gray-900 dark:text-white mt-0.5">Note importante à prendre en compte</p>
+                        </div>
+                      </div>
+                    </div>
+                  </div>
+                </div>
+              </div>
+
+                          <!-- Tab 2: Avenant -->
+                          <div id="tab-content-avenant-rh-main" role="tabpanel" aria-labelledby="tab-avenant-rh-main" style="display: none;">
+                <div class="space-y-3">
+                  <!-- Grid 2 colonnes : Deux cartes côte à côte -->
+                  <div class="grid grid-cols-2 gap-3">
+                    <!-- Carte gauche - Légèrement rouge -->
+                    <div class="p-6 pt-10 bg-gradient-to-r from-red-50 to-rose-50 dark:from-red-900/20 dark:to-rose-900/20 rounded-lg border border-red-100 dark:border-red-800">
+                      <div class="flex items-center gap-2 mb-5">
+                        <svg class="size-4 text-red-600 dark:text-red-400" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+                          <path stroke-linecap="round" stroke-linejoin="round" d="M10 6H5a2 2 0 00-2 2v9a2 2 0 002 2h14a2 2 0 002-2V8a2 2 0 00-2-2h-5m-4 0V5a2 2 0 114 0v1m-4 0a2 2 0 104 0m-5 8a2 2 0 100-4 2 2 0 000 4zm0 0c1.306 0 2.417.835 2.83 2M9 14a3.001 3.001 0 00-2.83 2M15 11h3m-3 4h2" />
+                        </svg>
+                        <p class="text-xs font-semibold text-red-900 dark:text-red-200 uppercase">Identité & Contact</p>
+                      </div>
+                      <div class="space-y-1.5">
+                        <div class="flex justify-between">
+                          <span class="text-xs text-red-600 dark:text-red-400">Prénom:</span>
+                          <span class="text-sm font-semibold text-gray-900 dark:text-white">Cyril</span>
+                        </div>
+                        <div class="flex justify-between">
+                          <span class="text-xs text-red-600 dark:text-red-400">Nom:</span>
+                          <span class="text-sm font-semibold text-gray-900 dark:text-white">PHILIPPE</span>
+                        </div>
+                        <div class="flex justify-between">
+                          <span class="text-xs text-red-600 dark:text-red-400">Date de naissance:</span>
+                          <span class="text-sm font-semibold text-gray-900 dark:text-white">15/05/1985</span>
+                        </div>
+                        <div class="flex justify-between">
+                          <span class="text-xs text-red-600 dark:text-red-400">Téléphone:</span>
+                          <span class="text-sm font-semibold text-gray-900 dark:text-white">06 12 34 56 78</span>
+                        </div>
+                        <div class="flex justify-between">
+                          <span class="text-xs text-red-600 dark:text-red-400">Email:</span>
+                          <span class="text-sm font-semibold text-gray-900 dark:text-white">cyril.philippe@sipa.fr</span>
+                        </div>
+                      </div>
+                    </div>
+
+                    <!-- Carte droite - Légèrement verte -->
+                    <div class="p-6 pt-10 bg-gradient-to-r from-green-50 to-emerald-50 dark:from-green-900/20 dark:to-emerald-900/20 rounded-lg border border-green-100 dark:border-green-800">
+                      <div class="flex items-center gap-2 mb-5">
+                        <svg class="size-4 text-green-600 dark:text-green-400" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+                          <path stroke-linecap="round" stroke-linejoin="round" d="M10 6H5a2 2 0 00-2 2v9a2 2 0 002 2h14a2 2 0 002-2V8a2 2 0 00-2-2h-5m-4 0V5a2 2 0 114 0v1m-4 0a2 2 0 104 0m-5 8a2 2 0 100-4 2 2 0 000 4zm0 0c1.306 0 2.417.835 2.83 2M9 14a3.001 3.001 0 00-2.83 2M15 11h3m-3 4h2" />
+                        </svg>
+                        <p class="text-xs font-semibold text-green-900 dark:text-green-200 uppercase">Identité & Contact</p>
+                      </div>
+                      <div class="space-y-1.5">
+                        <div class="flex justify-between">
+                          <span class="text-xs text-green-600 dark:text-green-400">Prénom:</span>
+                          <span class="text-sm font-semibold text-gray-900 dark:text-white">Cyril</span>
+                        </div>
+                        <div class="flex justify-between">
+                          <span class="text-xs text-green-600 dark:text-green-400">Nom:</span>
+                          <span class="text-sm font-semibold text-gray-900 dark:text-white">PHILIPPE</span>
+                        </div>
+                        <div class="flex justify-between">
+                          <span class="text-xs text-green-600 dark:text-green-400">Date de naissance:</span>
+                          <span class="text-sm font-semibold text-gray-900 dark:text-white">15/05/1985</span>
+                        </div>
+                        <div class="flex justify-between">
+                          <span class="text-xs text-green-600 dark:text-green-400">Téléphone:</span>
+                          <span class="text-sm font-semibold text-gray-900 dark:text-white">06 12 34 56 78</span>
+                        </div>
+                        <div class="flex justify-between">
+                          <span class="text-xs text-green-600 dark:text-green-400">Email:</span>
+                          <span class="text-sm font-semibold text-gray-900 dark:text-white">cyril.philippe@sipa.fr</span>
+                        </div>
+                      </div>
+                    </div>
+                  </div>
+                </div>
+              </div>
+              <!-- End Tab 2: Avenant -->
+
+
+            </div>
+
+          </div>
+        </div>
+        <!-- End Card: Synthèse de la demande -->
+
+
+
+    
+
+          <!-- End Card: Historique -->
+        </div>
+        <!-- End Grid Container for Statut and Historique -->
+
+      </div>
+    </div>
+    <!-- End Content -->
+    
+    <!-- Preline UI -->
+    <script src="https://cdn.jsdelivr.net/npm/preline@2.1.0/dist/preline.js"></script>
+    
+    <!-- Script pour copier dans le presse-papier -->
+    <script>
+      function copyToClipboard(text) {
+        navigator.clipboard.writeText(text).then(function() {
+          // Optionnel: afficher une notification de succès
+          const button = event.target.closest('button');
+          const originalText = button.innerHTML;
+          button.innerHTML = '<svg class="size-3" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7" /></svg> Copié';
+          button.classList.add('text-green-600');
+          setTimeout(function() {
+            button.innerHTML = originalText;
+            button.classList.remove('text-green-600');
+          }, 2000);
+        }).catch(function(err) {
+          console.error('Erreur lors de la copie:', err);
+        });
+      }
+
+      // Gestion des onglets
+      document.addEventListener('DOMContentLoaded', function() {
+        const tabs = document.querySelectorAll('[role="tab"]');
+        const tabContents = document.querySelectorAll('[role="tabpanel"]');
+
+        tabs.forEach(function(tab) {
+          tab.addEventListener('click', function() {
+            const targetId = this.getAttribute('data-hs-tab');
+            
+            // Désactiver tous les onglets
+            tabs.forEach(function(t) {
+              t.classList.remove('active');
+              t.setAttribute('aria-selected', 'false');
+            });
+            
+            // Masquer tous les contenus
+            tabContents.forEach(function(content) {
+              content.style.display = 'none';
+            });
+            
+            // Activer l'onglet cliqué
+            this.classList.add('active');
+            this.setAttribute('aria-selected', 'true');
+            
+            // Afficher le contenu correspondant
+            const targetContent = document.querySelector(targetId);
+            if (targetContent) {
+              targetContent.style.display = 'block';
+            }
+          });
+        });
+      });
+    </script>
+</body>
+</html>
+

+ 64 - 420
demande-rh.php

@@ -71,29 +71,11 @@
                 </svg>
                 Synthèse RH
               </button>
-              <button type="button" class="hs-tab-active:bg-white hs-tab-active:text-[#21B6BA] hs-tab-active:shadow-md hs-tab-active:border-b-2 hs-tab-active:border-[#21B6BA] dark:hs-tab-active:bg-neutral-800 dark:hs-tab-active:text-[#21B6BA] py-2 px-3 inline-flex items-center gap-x-2 text-sm font-medium text-center text-gray-500 rounded-md hover:text-gray-700 hover:bg-gray-100 dark:text-neutral-400 dark:hover:text-neutral-300 dark:hover:bg-neutral-600 transition-all duration-200" id="tab-info-personnel-main" data-hs-tab="#tab-content-info-personnel-main" aria-controls="tab-content-info-personnel-main" role="tab">
-                <svg class="size-4" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
-                  <path stroke-linecap="round" stroke-linejoin="round" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z" />
-                </svg>
-                Informations
-              </button>
-              <button type="button" class="hs-tab-active:bg-white hs-tab-active:text-[#21B6BA] hs-tab-active:shadow-md hs-tab-active:border-b-2 hs-tab-active:border-[#21B6BA] dark:hs-tab-active:bg-neutral-800 dark:hs-tab-active:text-[#21B6BA] py-2 px-3 inline-flex items-center gap-x-2 text-sm font-medium text-center text-gray-500 rounded-md hover:text-gray-700 hover:bg-gray-100 dark:text-neutral-400 dark:hover:text-neutral-300 dark:hover:bg-neutral-600 transition-all duration-200" id="tab-contrat-main" data-hs-tab="#tab-content-contrat-main" aria-controls="tab-content-contrat-main" role="tab">
-                <svg class="size-4" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
-                  <path stroke-linecap="round" stroke-linejoin="round" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" />
-                </svg>
-                Contrat
-              </button>
-              <button type="button" class="hs-tab-active:bg-white hs-tab-active:text-[#21B6BA] hs-tab-active:shadow-md hs-tab-active:border-b-2 hs-tab-active:border-[#21B6BA] dark:hs-tab-active:bg-neutral-800 dark:hs-tab-active:text-[#21B6BA] py-2 px-3 inline-flex items-center gap-x-2 text-sm font-medium text-center text-gray-500 rounded-md hover:text-gray-700 hover:bg-gray-100 dark:text-neutral-400 dark:hover:text-neutral-300 dark:hover:bg-neutral-600 transition-all duration-200" id="tab-remuneration-main" data-hs-tab="#tab-content-remuneration-main" aria-controls="tab-content-remuneration-main" role="tab">
-                <svg class="size-4" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
-                  <path stroke-linecap="round" stroke-linejoin="round" d="M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
-                </svg>
-                Rémunération
-              </button>
-              <button type="button" class="hs-tab-active:bg-white hs-tab-active:text-[#21B6BA] hs-tab-active:shadow-md hs-tab-active:border-b-2 hs-tab-active:border-[#21B6BA] dark:hs-tab-active:bg-neutral-800 dark:hs-tab-active:text-[#21B6BA] py-2 px-3 inline-flex items-center gap-x-2 text-sm font-medium text-center text-gray-500 rounded-md hover:text-gray-700 hover:bg-gray-100 dark:text-neutral-400 dark:hover:text-neutral-300 dark:hover:bg-neutral-600 transition-all duration-200" id="tab-informatique-main" data-hs-tab="#tab-content-informatique-main" aria-controls="tab-content-informatique-main" role="tab">
+              <button type="button" class="hs-tab-active:bg-white hs-tab-active:text-[#21B6BA] hs-tab-active:shadow-md hs-tab-active:border-b-2 hs-tab-active:border-[#21B6BA] dark:hs-tab-active:bg-neutral-800 dark:hs-tab-active:text-[#21B6BA] py-2 px-3 inline-flex items-center gap-x-2 text-sm font-medium text-center text-gray-500 rounded-md hover:text-gray-700 hover:bg-gray-100 dark:text-neutral-400 dark:hover:text-neutral-300 dark:hover:bg-neutral-600 transition-all duration-200" id="tab-avenant-rh-main" data-hs-tab="#tab-content-avenant-rh-main" aria-controls="tab-content-avenant-rh-main" role="tab">
                 <svg class="size-4" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
                   <path stroke-linecap="round" stroke-linejoin="round" d="M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" />
                 </svg>
-                Informatique
+                Avenant
               </button>
             </nav>
 
@@ -213,449 +195,78 @@
                 </div>
               </div>
 
-              
-              <!-- Tab 3: Informations Personnel -->
-              <div id="tab-content-info-personnel-main" class="hidden" role="tabpanel" aria-labelledby="tab-info-personnel-main">
+              <!-- Tab 2: Avenant -->
+              <div id="tab-content-avenant-rh-main" role="tabpanel" aria-labelledby="tab-avenant-rh-main" style="display: none;">
                 <div class="space-y-3">
-                  <!-- Identité - Grid 2 colonnes -->
+                  <!-- Grid 2 colonnes : Deux cartes côte à côte -->
                   <div class="grid grid-cols-2 gap-3">
-                    <!-- Card 1: Identité -->
-                    <div class="p-6 pt-10 bg-gradient-to-r from-blue-50 to-cyan-50 dark:from-blue-900/20 dark:to-cyan-900/20 rounded-lg border border-blue-100 dark:border-blue-800">
+                    <!-- Carte gauche - Légèrement rouge -->
+                    <div class="p-6 pt-10 bg-gradient-to-r from-red-50 to-rose-50 dark:from-red-900/20 dark:to-rose-900/20 rounded-lg border border-red-100 dark:border-red-800">
                       <div class="flex items-center gap-2 mb-5">
-                        <svg class="size-4 text-blue-600 dark:text-blue-400" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+                        <svg class="size-4 text-red-600 dark:text-red-400" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
                           <path stroke-linecap="round" stroke-linejoin="round" d="M10 6H5a2 2 0 00-2 2v9a2 2 0 002 2h14a2 2 0 002-2V8a2 2 0 00-2-2h-5m-4 0V5a2 2 0 114 0v1m-4 0a2 2 0 104 0m-5 8a2 2 0 100-4 2 2 0 000 4zm0 0c1.306 0 2.417.835 2.83 2M9 14a3.001 3.001 0 00-2.83 2M15 11h3m-3 4h2" />
                         </svg>
-                        <p class="text-xs font-semibold text-blue-900 dark:text-blue-200 uppercase">Identité</p>
+                        <p class="text-xs font-semibold text-red-900 dark:text-red-200 uppercase">Identité & Contact</p>
                       </div>
                       <div class="space-y-1.5">
                         <div class="flex justify-between">
-                          <span class="text-xs text-blue-600 dark:text-blue-400">Prénom:</span>
+                          <span class="text-xs text-red-600 dark:text-red-400">Prénom:</span>
                           <span class="text-sm font-semibold text-gray-900 dark:text-white">Cyril</span>
                         </div>
                         <div class="flex justify-between">
-                          <span class="text-xs text-blue-600 dark:text-blue-400">Nom:</span>
+                          <span class="text-xs text-red-600 dark:text-red-400">Nom:</span>
                           <span class="text-sm font-semibold text-gray-900 dark:text-white">PHILIPPE</span>
                         </div>
                         <div class="flex justify-between">
-                          <span class="text-xs text-blue-600 dark:text-blue-400">Date de naissance:</span>
+                          <span class="text-xs text-red-600 dark:text-red-400">Date de naissance:</span>
                           <span class="text-sm font-semibold text-gray-900 dark:text-white">15/05/1985</span>
                         </div>
-                      </div>
-                    </div>
-
-                    <!-- Card 2: Contact -->
-                    <div class="p-3 pt-10 bg-gradient-to-r from-teal-50 to-cyan-50 dark:from-teal-900/20 dark:to-cyan-900/20 rounded-lg border border-teal-100 dark:border-teal-800">
-                      <div class="flex items-center gap-2 mb-5">
-                        <svg class="size-4 text-teal-600 dark:text-teal-400" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
-                          <path stroke-linecap="round" stroke-linejoin="round" d="M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" />
-                        </svg>
-                        <p class="text-xs font-semibold text-teal-900 dark:text-teal-200 uppercase">Contact</p>
-                      </div>
-                      <div class="space-y-1.5">
-                        <div class="flex justify-between">
-                          <span class="text-xs text-teal-600 dark:text-teal-400">Email:</span>
-                          <span class="text-sm font-semibold text-gray-900 dark:text-white">cyril.philippe@sipa.fr</span>
-                        </div>
                         <div class="flex justify-between">
-                          <span class="text-xs text-teal-600 dark:text-teal-400">Téléphone:</span>
+                          <span class="text-xs text-red-600 dark:text-red-400">Téléphone:</span>
                           <span class="text-sm font-semibold text-gray-900 dark:text-white">06 12 34 56 78</span>
                         </div>
                         <div class="flex justify-between">
-                          <span class="text-xs text-teal-600 dark:text-teal-400">Adresse:</span>
-                          <span class="text-sm font-semibold text-gray-900 dark:text-white">33000 Bordeaux</span>
+                          <span class="text-xs text-red-600 dark:text-red-400">Email:</span>
+                          <span class="text-sm font-semibold text-gray-900 dark:text-white">cyril.philippe@sipa.fr</span>
                         </div>
                       </div>
                     </div>
-                  </div>
 
-                  <!-- Poste & Service - Grid 2 colonnes -->
-                  <div class="grid grid-cols-2 gap-3">
-                    <!-- Card 1: Poste & Fonction -->
-                    <div class="p-3 pt-10 bg-gradient-to-r from-purple-50 to-pink-50 dark:from-purple-900/20 dark:to-pink-900/20 rounded-lg border border-purple-100 dark:border-purple-800">
+                    <!-- Carte droite - Légèrement verte -->
+                    <div class="p-6 pt-10 bg-gradient-to-r from-green-50 to-emerald-50 dark:from-green-900/20 dark:to-emerald-900/20 rounded-lg border border-green-100 dark:border-green-800">
                       <div class="flex items-center gap-2 mb-5">
-                        <svg class="size-4 text-purple-600 dark:text-purple-400" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
-                          <path stroke-linecap="round" stroke-linejoin="round" d="M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4" />
+                        <svg class="size-4 text-green-600 dark:text-green-400" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+                          <path stroke-linecap="round" stroke-linejoin="round" d="M10 6H5a2 2 0 00-2 2v9a2 2 0 002 2h14a2 2 0 002-2V8a2 2 0 00-2-2h-5m-4 0V5a2 2 0 114 0v1m-4 0a2 2 0 104 0m-5 8a2 2 0 100-4 2 2 0 000 4zm0 0c1.306 0 2.417.835 2.83 2M9 14a3.001 3.001 0 00-2.83 2M15 11h3m-3 4h2" />
                         </svg>
-                        <p class="text-xs font-semibold text-purple-900 dark:text-purple-200 uppercase">Poste</p>
+                        <p class="text-xs font-semibold text-green-900 dark:text-green-200 uppercase">Identité & Contact</p>
                       </div>
                       <div class="space-y-1.5">
                         <div class="flex justify-between">
-                          <span class="text-xs text-purple-600 dark:text-purple-400">Intitulé</span>
-                          <span class="text-sm font-semibold text-gray-900 dark:text-white">Agent de maîtrise</span>
+                          <span class="text-xs text-green-600 dark:text-green-400">Prénom:</span>
+                          <span class="text-sm font-semibold text-gray-900 dark:text-white">Cyril</span>
                         </div>
                         <div class="flex justify-between">
-                          <span class="text-xs text-purple-600 dark:text-purple-400">Service</span>
-                          <span class="text-sm font-semibold text-gray-900 dark:text-white">Atelier</span>
+                          <span class="text-xs text-green-600 dark:text-green-400">Nom:</span>
+                          <span class="text-sm font-semibold text-gray-900 dark:text-white">PHILIPPE</span>
                         </div>
                         <div class="flex justify-between">
-                          <span class="text-xs text-purple-600 dark:text-purple-400">Manager</span>
-                          <span class="text-sm font-semibold text-gray-900 dark:text-white">Jean DUPONT</span>
-                        </div>
-                      </div>
-                    </div>
-
-                    <!-- Card 2: Lieu & Horaires -->
-                    <div class="p-3 pt-10 bg-gradient-to-r from-rose-50 to-red-50 dark:from-rose-900/20 dark:to-red-900/20 rounded-lg border border-rose-100 dark:border-rose-800">
-                      <div class="flex items-center gap-2 mb-5">
-                        <svg class="size-4 text-rose-600 dark:text-rose-400" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
-                          <path stroke-linecap="round" stroke-linejoin="round" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z" />
-                          <path stroke-linecap="round" stroke-linejoin="round" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z" />
-                        </svg>
-                        <p class="text-xs font-semibold text-rose-900 dark:text-rose-200 uppercase">Lieu & Horaires</p>
-                      </div>
-                      <div class="space-y-1.5">
-                        <div class="flex justify-between">
-                          <span class="text-xs text-rose-600 dark:text-rose-400">Site</span>
-                          <span class="text-sm font-semibold text-gray-900 dark:text-white">Bordeaux</span>
+                          <span class="text-xs text-green-600 dark:text-green-400">Date de naissance:</span>
+                          <span class="text-sm font-semibold text-gray-900 dark:text-white">15/05/1985</span>
                         </div>
                         <div class="flex justify-between">
-                          <span class="text-xs text-rose-600 dark:text-rose-400">Horaires</span>
-                          <span class="text-sm font-semibold text-gray-900 dark:text-white">09h-18h</span>
+                          <span class="text-xs text-green-600 dark:text-green-400">Téléphone:</span>
+                          <span class="text-sm font-semibold text-gray-900 dark:text-white">06 12 34 56 78</span>
                         </div>
                         <div class="flex justify-between">
-                          <span class="text-xs text-rose-600 dark:text-rose-400">Télétravail</span>
-                          <span class="text-sm font-semibold text-gray-900 dark:text-white">1j/sem</span>
-                        </div>
-                      </div>
-                    </div>
-                  </div>
-
-                  <!-- Documents -->
-                  <div class="p-3 pt-10 bg-gradient-to-r from-amber-50 to-orange-50 dark:from-amber-900/20 dark:to-orange-900/20 rounded-lg border border-amber-100 dark:border-amber-800">
-                    <div class="flex items-center gap-2 mb-5">
-                      <svg class="size-4 text-amber-600 dark:text-amber-400" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
-                        <path stroke-linecap="round" stroke-linejoin="round" d="M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z" />
-                      </svg>
-                      <p class="text-xs font-semibold text-amber-900 dark:text-amber-200 uppercase">Documents joints</p>
-                    </div>
-                    <div class="flex flex-wrap gap-2">
-                      <a href="#" class="inline-flex items-center gap-1 px-2 py-1 bg-white dark:bg-neutral-700 rounded text-xs font-medium text-amber-700 dark:text-amber-300 hover:bg-amber-100 dark:hover:bg-neutral-600">
-                        <svg class="size-3" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
-                          <path stroke-linecap="round" stroke-linejoin="round" d="M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" />
-                        </svg>
-                        CV.pdf
-                      </a>
-                      <a href="#" class="inline-flex items-center gap-1 px-2 py-1 bg-white dark:bg-neutral-700 rounded text-xs font-medium text-amber-700 dark:text-amber-300 hover:bg-amber-100 dark:hover:bg-neutral-600">
-                        <svg class="size-3" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
-                          <path stroke-linecap="round" stroke-linejoin="round" d="M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" />
-                        </svg>
-                        Pièce d'identité
-                      </a>
-                      <a href="#" class="inline-flex items-center gap-1 px-2 py-1 bg-white dark:bg-neutral-700 rounded text-xs font-medium text-amber-700 dark:text-amber-300 hover:bg-amber-100 dark:hover:bg-neutral-600">
-                        <svg class="size-3" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
-                          <path stroke-linecap="round" stroke-linejoin="round" d="M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" />
-                        </svg>
-                        Autres
-                      </a>
-                    </div>
-                  </div>
-                </div>
-              </div>
-
-              <!-- Tab 3: Contrat -->
-              <div id="tab-content-contrat-main" class="hidden" role="tabpanel" aria-labelledby="tab-contrat-main">
-                <div class="space-y-3">
-                  <!-- Grid 2 colonnes : Type de contrat et Durée -->
-                  <div class="grid grid-cols-2 gap-3">
-                    <!-- Type de contrat -->
-                    <div class="p-3 pt-10 bg-gradient-to-r from-green-50 to-emerald-50 dark:from-green-900/20 dark:to-emerald-900/20 rounded-lg border border-green-100 dark:border-green-800">
-                      <div class="flex items-center gap-2 mb-5">
-                        <svg class="size-4 text-green-600 dark:text-green-400" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
-                          <path stroke-linecap="round" stroke-linejoin="round" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" />
-                        </svg>
-                        <p class="text-xs font-semibold text-green-900 dark:text-green-200 uppercase">Type de contrat</p>
-                      </div>
-                      <div class="space-y-1.5">
-                        <div>
-                          <p class="text-xs text-green-600 dark:text-green-400 mb-0.5">Contrat</p>
-                          <span class="inline-flex px-2.5 py-1 bg-green-600 text-white text-sm font-bold rounded">CDI</span>
-                        </div>
-                        <div>
-                          <p class="text-xs text-green-600 dark:text-green-400 mb-0.5">Période d'essai</p>
-                          <p class="text-sm font-semibold text-gray-900 dark:text-white">3 mois</p>
-                        </div>
-                        <div>
-                          <p class="text-xs text-green-600 dark:text-green-400 mb-0.5">Temps de travail</p>
-                          <p class="text-sm font-semibold text-gray-900 dark:text-white">Temps plein</p>
-                        </div>
-                      </div>
-                    </div>
-
-                    <!-- Durée -->
-                    <div class="p-3 pt-10 bg-gradient-to-r from-lime-50 to-green-50 dark:from-lime-900/20 dark:to-green-900/20 rounded-lg border border-lime-100 dark:border-lime-800">
-                      <div class="flex items-center gap-2 mb-5">
-                        <svg class="size-4 text-lime-600 dark:text-lime-400" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
-                          <path stroke-linecap="round" stroke-linejoin="round" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z" />
-                        </svg>
-                        <p class="text-xs font-semibold text-lime-900 dark:text-lime-200 uppercase">Durée</p>
-                      </div>
-                      <div class="space-y-1.5">
-                        <div>
-                          <p class="text-xs text-lime-600 dark:text-lime-400 mb-0.5">Date d'entrée</p>
-                          <p class="text-sm font-semibold text-gray-900 dark:text-white">03/11/2025</p>
-                        </div>
-                        <div>
-                          <p class="text-xs text-lime-600 dark:text-lime-400 mb-0.5">Début contrat</p>
-                          <p class="text-sm font-semibold text-gray-900 dark:text-white">03/11/2025</p>
-                        </div>
-                        <div>
-                          <p class="text-xs text-lime-600 dark:text-lime-400 mb-0.5">Fin contrat</p>
-                          <p class="text-sm font-semibold text-gray-900 dark:text-white">Indéterminée</p>
-                        </div>
-                      </div>
-                    </div>
-                  </div>
-
-                  <!-- Grid 2 colonnes : Poste et Service -->
-                  <div class="grid grid-cols-2 gap-3">
-                    <!-- Poste -->
-                    <div class="p-3 pt-10 bg-gradient-to-r from-purple-50 to-pink-50 dark:from-purple-900/20 dark:to-pink-900/20 rounded-lg border border-purple-100 dark:border-purple-800">
-                      <div class="flex items-center gap-2 mb-5">
-                        <svg class="size-4 text-purple-600 dark:text-purple-400" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
-                          <path stroke-linecap="round" stroke-linejoin="round" d="M21 13.255A23.931 23.931 0 0112 15c-3.183 0-6.22-.62-9-1.745M16 6V4a2 2 0 00-2-2h-4a2 2 0 00-2 2v2m4 6h.01M5 20h14a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" />
-                        </svg>
-                        <p class="text-xs font-semibold text-purple-900 dark:text-purple-200 uppercase">Poste</p>
-                      </div>
-                      <div class="space-y-1.5">
-                        <div>
-                          <p class="text-xs text-purple-600 dark:text-purple-400 mb-0.5">Intitulé de poste</p>
-                          <p class="text-sm font-semibold text-gray-900 dark:text-white">Agent de maîtrise</p>
-                        </div>
-                        <div>
-                          <p class="text-xs text-purple-600 dark:text-purple-400 mb-0.5">Complément</p>
-                          <p class="text-sm font-semibold text-gray-900 dark:text-white">Atelier</p>
-                        </div>
-                      </div>
-                    </div>
-
-                    <!-- Service -->
-                    <div class="p-3 pt-10 bg-gradient-to-r from-indigo-50 to-purple-50 dark:from-indigo-900/20 dark:to-purple-900/20 rounded-lg border border-indigo-100 dark:border-indigo-800">
-                      <div class="flex items-center gap-2 mb-5">
-                        <svg class="size-4 text-indigo-600 dark:text-indigo-400" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
-                          <path stroke-linecap="round" stroke-linejoin="round" d="M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4" />
-                        </svg>
-                        <p class="text-xs font-semibold text-indigo-900 dark:text-indigo-200 uppercase">Service</p>
-                      </div>
-                      <div class="space-y-1.5">
-                        <div>
-                          <p class="text-xs text-indigo-600 dark:text-indigo-400 mb-0.5">Service</p>
-                          <p class="text-sm font-semibold text-gray-900 dark:text-white">Atelier</p>
-                        </div>
-                        <div>
-                          <p class="text-xs text-indigo-600 dark:text-indigo-400 mb-0.5">Manager</p>
-                          <p class="text-sm font-semibold text-gray-900 dark:text-white">Jean DUPONT</p>
-                        </div>
-                      </div>
-                    </div>
-                  </div>
-                </div>
-              </div>
-
-              <!-- Tab 4: Rémunération -->
-              <div id="tab-content-remuneration-main" class="hidden" role="tabpanel" aria-labelledby="tab-remuneration-main">
-                <div class="space-y-3">
-                  <!-- Grid 2 colonnes : Minima & Salaire -->
-                  <div class="grid grid-cols-2 gap-3">
-                    <!-- Minima Convention -->
-                    <div class="p-3 pt-10 bg-gradient-to-r from-amber-50 to-orange-50 dark:from-amber-900/20 dark:to-orange-900/20 rounded-lg border border-amber-100 dark:border-amber-800">
-                      <div class="flex items-center gap-2 mb-5">
-                        <svg class="size-4 text-amber-600 dark:text-amber-400" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
-                          <path stroke-linecap="round" stroke-linejoin="round" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" />
-                        </svg>
-                        <p class="text-xs font-semibold text-amber-900 dark:text-amber-200 uppercase">Minima Convention</p>
-                      </div>
-                      <div class="space-y-1.5">
-                        <div>
-                          <p class="text-xs text-amber-600 dark:text-amber-400 mb-0.5">Minima à 35h</p>
-                          <p class="text-sm font-semibold text-gray-900 dark:text-white">2 200,00 €</p>
-                        </div>
-                        <div>
-                          <p class="text-xs text-amber-600 dark:text-amber-400 mb-0.5">Minima sur base horaire (39h)</p>
-                          <p class="text-sm font-semibold text-gray-900 dark:text-white">2 451,43 €</p>
-                        </div>
-                      </div>
-                    </div>
-
-                    <!-- Salaire -->
-                    <div class="p-3 pt-10 bg-gradient-to-r from-emerald-50 to-teal-50 dark:from-emerald-900/20 dark:to-teal-900/20 rounded-lg border border-emerald-100 dark:border-emerald-800">
-                      <div class="flex items-center gap-2 mb-5">
-                        <svg class="size-4 text-emerald-600 dark:text-emerald-400" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
-                          <path stroke-linecap="round" stroke-linejoin="round" d="M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
-                        </svg>
-                        <p class="text-xs font-semibold text-emerald-900 dark:text-emerald-200 uppercase">Salaire Proposé</p>
-                      </div>
-                      <div class="space-y-1.5">
-                        <div>
-                          <p class="text-xs text-emerald-600 dark:text-emerald-400 mb-0.5">Salaire à 35h</p>
-                          <p class="text-sm font-semibold text-gray-900 dark:text-white">2 500,00 €</p>
-                        </div>
-                        <div>
-                          <p class="text-xs text-emerald-600 dark:text-emerald-400 mb-0.5">Salaire sur base 39h</p>
-                          <p class="text-lg font-bold text-emerald-700 dark:text-emerald-300">2 785,71 €</p>
-                        </div>
-                        <div>
-                          <p class="text-xs text-emerald-600 dark:text-emerald-400 mb-0.5">Brut annuel</p>
-                          <p class="text-sm font-semibold text-gray-900 dark:text-white">33 428,57 €</p>
-                        </div>
-                      </div>
-                    </div>
-                  </div>
-
-                  <!-- Grid 2 colonnes : Base horaire -->
-                  <div class="grid grid-cols-2 gap-3">
-                    <!-- Base Horaire -->
-                    <div class="p-3 pt-10 bg-gradient-to-r from-cyan-50 to-blue-50 dark:from-cyan-900/20 dark:to-blue-900/20 rounded-lg border border-cyan-100 dark:border-cyan-800">
-                      <div class="flex items-center gap-2 mb-5">
-                        <svg class="size-4 text-cyan-600 dark:text-cyan-400" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
-                          <path stroke-linecap="round" stroke-linejoin="round" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z" />
-                        </svg>
-                        <p class="text-xs font-semibold text-cyan-900 dark:text-cyan-200 uppercase">Base Horaire</p>
-                      </div>
-                      <div class="space-y-1.5">
-                        <div>
-                          <p class="text-xs text-cyan-600 dark:text-cyan-400 mb-0.5">Base choisie</p>
-                          <p class="text-sm font-semibold text-gray-900 dark:text-white">39h / semaine</p>
-                        </div>
-                        <div>
-                          <p class="text-xs text-cyan-600 dark:text-cyan-400 mb-0.5">Heures mensuelles</p>
-                          <p class="text-sm font-semibold text-gray-900 dark:text-white">169h</p>
-                        </div>
-                        <div>
-                          <p class="text-xs text-cyan-600 dark:text-cyan-400 mb-0.5">Taux horaire</p>
-                          <p class="text-sm font-semibold text-gray-900 dark:text-white">16,48 €</p>
-                        </div>
-                      </div>
-                    </div>
-
-                    <!-- Avantages -->
-                    <div class="p-3 pt-10 bg-gradient-to-r from-indigo-50 to-blue-50 dark:from-indigo-900/20 dark:to-blue-900/20 rounded-lg border border-indigo-100 dark:border-indigo-800">
-                      <div class="flex items-center gap-2 mb-5">
-                        <svg class="size-4 text-indigo-600 dark:text-indigo-400" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
-                          <path stroke-linecap="round" stroke-linejoin="round" d="M12 8v13m0-13V6a2 2 0 112 2h-2zm0 0V5.5A2.5 2.5 0 109.5 8H12zm-7 4h14M5 12a2 2 0 110-4h14a2 2 0 110 4M5 12v7a2 2 0 002 2h10a2 2 0 002-2v-7" />
-                        </svg>
-                        <p class="text-xs font-semibold text-indigo-900 dark:text-indigo-200 uppercase">Avantages</p>
-                      </div>
-                      <div class="space-y-1.5">
-                        <div class="flex items-center justify-between">
-                          <span class="text-xs text-indigo-600 dark:text-indigo-400">Véhicule fonction</span>
-                          <span class="inline-flex items-center gap-1 text-xs font-semibold text-green-600 dark:text-green-400">
-                            <svg class="size-3" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
-                              <path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7" />
-                            </svg>
-                            Oui
-                          </span>
-                        </div>
-                        <div class="flex items-center justify-between">
-                          <span class="text-xs text-indigo-600 dark:text-indigo-400">Avantage en nature</span>
-                          <span class="text-sm font-semibold text-gray-900 dark:text-white">500,00 €</span>
-                        </div>
-                        <div class="flex items-center justify-between">
-                          <span class="text-xs text-indigo-600 dark:text-indigo-400">Prime annuelle</span>
-                          <span class="inline-flex items-center gap-1 text-xs font-semibold text-green-600 dark:text-green-400">
-                            <svg class="size-3" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
-                              <path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7" />
-                            </svg>
-                            Oui
-                          </span>
-                        </div>
-                      </div>
-                    </div>
-                  </div>
-                </div>
-              </div>
-
-              <!-- Tab 5: Informatique -->
-              <div id="tab-content-informatique-main" class="hidden" role="tabpanel" aria-labelledby="tab-informatique-main">
-                <div class="space-y-3">
-                  <!-- Grid 2 colonnes : Compte Windows et Compte Office 365 -->
-                  <div class="grid grid-cols-2 gap-3">
-                    <!-- Bloc 1: Compte Windows -->
-                    <div class="p-6 pt-10 bg-gradient-to-r from-indigo-50 to-blue-50 dark:from-indigo-900/20 dark:to-blue-900/20 rounded-lg border border-indigo-100 dark:border-indigo-800">
-                      <div class="flex items-center gap-2 mb-5">
-                        <svg class="size-4 text-indigo-600 dark:text-indigo-400" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
-                          <path stroke-linecap="round" stroke-linejoin="round" d="M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" />
-                        </svg>
-                        <p class="text-xs font-semibold text-indigo-900 dark:text-indigo-200 uppercase">Compte Windows</p>
-                      </div>
-                      <div class="space-y-3">
-                        <div class="flex items-center justify-between p-3 bg-white dark:bg-neutral-700 rounded-lg border border-indigo-200 dark:border-indigo-700">
-                          <span class="text-sm font-semibold text-gray-900 dark:text-white" id="compte-windows">augustin.podvin</span>
-                          <button type="button" onclick="copyToClipboard('augustin.podvin')" class="inline-flex items-center gap-1 px-2 py-1 text-xs font-medium text-indigo-600 dark:text-indigo-400 hover:text-indigo-700 dark:hover:text-indigo-300">
-                            <svg class="size-3" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
-                              <path stroke-linecap="round" stroke-linejoin="round" d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z" />
-                            </svg>
-                            Copier
-                          </button>
-                        </div>
-                      </div>
-                    </div>
-
-                    <!-- Bloc 2: Compte Office 365 -->
-                    <div class="p-6 pt-10 bg-gradient-to-r from-blue-50 to-cyan-50 dark:from-blue-900/20 dark:to-cyan-900/20 rounded-lg border border-blue-100 dark:border-blue-800">
-                      <div class="flex items-center gap-2 mb-5">
-                        <svg class="size-4 text-blue-600 dark:text-blue-400" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
-                          <path stroke-linecap="round" stroke-linejoin="round" d="M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" />
-                        </svg>
-                        <p class="text-xs font-semibold text-blue-900 dark:text-blue-200 uppercase">Compte Office 365</p>
-                      </div>
-                      <div class="space-y-3">
-                        <div class="flex items-center justify-between p-3 bg-white dark:bg-neutral-700 rounded-lg border border-blue-200 dark:border-blue-700">
-                          <span class="text-sm font-semibold text-gray-900 dark:text-white" id="compte-office365">augustin.podvin@sipa-automobiles.fr</span>
-                          <button type="button" onclick="copyToClipboard('augustin.podvin@sipa-automobiles.fr')" class="inline-flex items-center gap-1 px-2 py-1 text-xs font-medium text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300">
-                            <svg class="size-3" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
-                              <path stroke-linecap="round" stroke-linejoin="round" d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z" />
-                            </svg>
-                            Copier
-                          </button>
-                        </div>
-                      </div>
-                    </div>
-                  </div>
-
-                  <!-- Grid 2 colonnes : MDP Temporaire et Téléphone -->
-                  <div class="grid grid-cols-2 gap-3">
-                    <!-- Bloc 3: MDP Temporaire -->
-                    <div class="p-6 pt-10 bg-gradient-to-r from-purple-50 to-pink-50 dark:from-purple-900/20 dark:to-pink-900/20 rounded-lg border border-purple-100 dark:border-purple-800">
-                      <div class="flex items-center gap-2 mb-5">
-                        <svg class="size-4 text-purple-600 dark:text-purple-400" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
-                          <path stroke-linecap="round" stroke-linejoin="round" d="M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z" />
-                        </svg>
-                        <p class="text-xs font-semibold text-purple-900 dark:text-purple-200 uppercase">MDP Temporaire</p>
-                      </div>
-                      <div class="space-y-3">
-                        <div class="flex items-center justify-between p-3 bg-white dark:bg-neutral-700 rounded-lg border border-purple-200 dark:border-purple-700">
-                          <span class="text-sm font-semibold text-gray-900 dark:text-white font-mono" id="mdp-temporaire">Sip@OGU4my</span>
-                          <button type="button" onclick="copyToClipboard('Sip@OGU4my')" class="inline-flex items-center gap-1 px-2 py-1 text-xs font-medium text-purple-600 dark:text-purple-400 hover:text-purple-700 dark:hover:text-purple-300">
-                            <svg class="size-3" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
-                              <path stroke-linecap="round" stroke-linejoin="round" d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z" />
-                            </svg>
-                            Copier
-                          </button>
-                        </div>
-                      </div>
-                    </div>
-
-                    <!-- Bloc 4: Matériel informatique -->
-                    <div class="p-6 pt-10 bg-gradient-to-r from-teal-50 to-cyan-50 dark:from-teal-900/20 dark:to-cyan-900/20 rounded-lg border border-teal-100 dark:border-teal-800">
-                      <div class="flex items-center gap-2 mb-5">
-                        <svg class="size-4 text-teal-600 dark:text-teal-400" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
-                          <path stroke-linecap="round" stroke-linejoin="round" d="M12 18h.01M8 21h8a2 2 0 002-2V5a2 2 0 00-2-2H8a2 2 0 00-2 2v14a2 2 0 002 2z" />
-                        </svg>
-                        <p class="text-xs font-semibold text-teal-900 dark:text-teal-200 uppercase">Matériel informatique</p>
-                      </div>
-                      <div class="space-y-3">
-                        <div class="flex items-center justify-between p-3 bg-white dark:bg-neutral-700 rounded-lg border border-teal-200 dark:border-teal-700">
-                          <span class="text-sm font-medium text-gray-700 dark:text-neutral-300">Téléphone portable</span>
-                          <div class="flex items-center">
-                            <input type="checkbox" id="telephone-portable-toggle" class="relative w-11 h-6 bg-gray-200 checked:bg-[#21B6BA] border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:ring-2 focus:ring-[#21B6BA] focus:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none checked:border-[#21B6BA] dark:bg-neutral-700 dark:checked:bg-[#21B6BA] dark:focus:ring-offset-neutral-900 before:inline-block before:size-5 before:bg-white checked:before:bg-white before:translate-x-0 checked:before:translate-x-full before:rounded-full before:shadow before:transform before:ring-0 before:transition before:ease-in-out before:duration-200 dark:before:bg-neutral-400 dark:checked:before:bg-white" checked>
-                            <label for="telephone-portable-toggle" class="sr-only">Toggle téléphone portable</label>
-                          </div>
+                          <span class="text-xs text-green-600 dark:text-green-400">Email:</span>
+                          <span class="text-sm font-semibold text-gray-900 dark:text-white">cyril.philippe@sipa.fr</span>
                         </div>
                       </div>
                     </div>
                   </div>
                 </div>
               </div>
+              <!-- End Tab 2: Avenant -->
             </div>
 
           </div>
@@ -962,6 +573,39 @@
           console.error('Erreur lors de la copie:', err);
         });
       }
+
+      // Gestion des onglets
+      document.addEventListener('DOMContentLoaded', function() {
+        const tabs = document.querySelectorAll('[role="tab"]');
+        const tabContents = document.querySelectorAll('[role="tabpanel"]');
+
+        tabs.forEach(function(tab) {
+          tab.addEventListener('click', function() {
+            const targetId = this.getAttribute('data-hs-tab');
+            
+            // Désactiver tous les onglets
+            tabs.forEach(function(t) {
+              t.classList.remove('active');
+              t.setAttribute('aria-selected', 'false');
+            });
+            
+            // Masquer tous les contenus
+            tabContents.forEach(function(content) {
+              content.style.display = 'none';
+            });
+            
+            // Activer l'onglet cliqué
+            this.classList.add('active');
+            this.setAttribute('aria-selected', 'true');
+            
+            // Afficher le contenu correspondant
+            const targetContent = document.querySelector(targetId);
+            if (targetContent) {
+              targetContent.style.display = 'block';
+            }
+          });
+        });
+      });
     </script>
 </body>
 </html>

+ 395 - 400
gestion-utilisateurs.php

@@ -3,7 +3,7 @@
 <head>
     <meta charset="UTF-8">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
-    <title>Admin - Gestion des droits d'accès - RH</title>
+    <title>Admin - Gestion des utilisateurs</title>
     
     <!-- Tailwind CSS CDN -->
     <script src="https://cdn.tailwindcss.com"></script>
@@ -13,6 +13,7 @@
       button[role="tab"][aria-selected="true"] {
         background-color: white !important;
         color: rgb(31, 41, 55) !important; /* text-gray-800 */
+        border-bottom: 2px solid rgb(37, 99, 235) !important; /* border-blue-600 */
       }
       @media (prefers-color-scheme: dark) {
         button[role="tab"].active,
@@ -38,323 +39,361 @@
         
         <!-- Page Header -->
         <div class="mb-6">
-          <div class="flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4">
-            <!-- Title -->
-            <div>
-              <h1 class="text-2xl font-semibold text-gray-800 dark:text-white">Admin - Gestion des droits d'accès - RH</h1>
-            </div>
-
-
-          </div>
+          <h1 class="text-2xl font-semibold text-gray-800 dark:text-white">Gestion des utilisateurs</h1>
+          <p class="mt-2 text-sm text-gray-600 dark:text-neutral-400">Gérez les utilisateurs et leurs droits d'accès</p>
         </div>
         <!-- End Page Header -->
 
-        <!-- Access Selection Section -->
-        <div class="mb-8">
-          <div class="bg-white border border-gray-200 rounded-xl shadow-sm p-6 dark:bg-neutral-800 dark:border-neutral-700">
-            <div class="flex flex-col sm:flex-row items-center justify-center gap-4">
-              <label for="access-select" class="text-base font-semibold text-gray-800 dark:text-neutral-200 whitespace-nowrap">
-                Accès à
-              </label>
-              <div class="hs-dropdown relative inline-flex">
-                <button id="hs-dropdown-access" type="button" class="hs-dropdown-toggle py-3 px-6 inline-flex items-center gap-x-3 text-base font-medium rounded-lg border-2 border-gray-300 bg-white text-gray-800 shadow-sm hover:bg-gray-50 hover:border-blue-500 focus:outline-hidden focus:ring-2 focus:ring-blue-500 focus:border-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-600 dark:text-white dark:hover:bg-neutral-700 dark:hover:border-blue-500 transition-colors min-w-[200px] justify-between" aria-expanded="false">
-                  <span id="selected-site" class="font-semibold">Site</span>
-                  <svg class="hs-dropdown-open:rotate-180 size-5 text-gray-600 dark:text-neutral-400 transition-transform" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
-                    <path d="m6 9 6 6 6-6"/>
+        <!-- Tabs Navigation -->
+        <div class="mb-6">
+          <nav class="flex border-b border-gray-200 dark:border-neutral-700" aria-label="Tabs" role="tablist">
+            <button type="button" class="hs-tab-active:font-semibold hs-tab-active:border-blue-600 hs-tab-active:text-blue-600 py-4 px-6 inline-flex items-center gap-x-2 border-b-2 border-transparent text-sm whitespace-nowrap text-gray-500 hover:text-blue-600 focus:outline-none focus:text-blue-600 disabled:opacity-50 disabled:pointer-events-none dark:text-neutral-400 dark:hover:text-blue-500 active" id="tab-utilisateurs" data-hs-tab="#tab-content-utilisateurs" aria-controls="tab-content-utilisateurs" role="tab">
+              <svg class="flex-shrink-0 size-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+                <path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/>
+                <circle cx="9" cy="7" r="4"/>
+                <path d="M22 21v-2a4 4 0 0 0-3-3.87"/>
+                <path d="M16 3.13a4 4 0 0 1 0 7.75"/>
+              </svg>
+              Utilisateurs
+            </button>
+            <button type="button" class="hs-tab-active:font-semibold hs-tab-active:border-blue-600 hs-tab-active:text-blue-600 py-4 px-6 inline-flex items-center gap-x-2 border-b-2 border-transparent text-sm whitespace-nowrap text-gray-500 hover:text-blue-600 focus:outline-none focus:text-blue-600 disabled:opacity-50 disabled:pointer-events-none dark:text-neutral-400 dark:hover:text-blue-500" id="tab-droits" data-hs-tab="#tab-content-droits" aria-controls="tab-content-droits" role="tab">
+              <svg class="flex-shrink-0 size-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+                <rect width="18" height="11" x="3" y="11" rx="2" ry="2"/>
+                <path d="M7 11V7a5 5 0 0 1 10 0v4"/>
                   </svg>
+              Attribution des droits
                 </button>
-
-                <div class="hs-dropdown-menu transition-[opacity,margin] duration hs-dropdown-open:opacity-100 opacity-0 hidden min-w-[200px] bg-white shadow-lg rounded-lg p-2 mt-2 dark:bg-neutral-800 dark:border dark:border-neutral-700 z-10" role="menu" aria-labelledby="hs-dropdown-access">
-                  <a class="flex items-center gap-x-3.5 py-3 px-4 rounded-lg text-sm font-medium text-gray-800 hover:bg-gray-100 focus:outline-hidden focus:bg-gray-100 dark:text-neutral-400 dark:hover:bg-neutral-700 dark:hover:text-neutral-300 transition-colors" href="#" role="menuitem">
-                    Admin RH
-                  </a>
-                  <a class="flex items-center gap-x-3.5 py-3 px-4 rounded-lg text-sm font-medium text-gray-800 hover:bg-gray-100 focus:outline-hidden focus:bg-gray-100 dark:text-neutral-400 dark:hover:bg-neutral-700 dark:hover:text-neutral-300 transition-colors" href="#" role="menuitem">
-                    Admin IT
-                  </a>
-                  <a class="flex items-center gap-x-3.5 py-3 px-4 rounded-lg text-sm font-medium text-gray-800 hover:bg-gray-100 focus:outline-hidden focus:bg-gray-100 dark:text-neutral-400 dark:hover:bg-neutral-700 dark:hover:text-neutral-300 transition-colors" href="#" role="menuitem">
-                    Dashboard IT
-                  </a>
-                  <a class="flex items-center gap-x-3.5 py-3 px-4 rounded-lg text-sm font-medium text-gray-800 hover:bg-gray-100 focus:outline-hidden focus:bg-gray-100 dark:text-neutral-400 dark:hover:bg-neutral-700 dark:hover:text-neutral-300 transition-colors" href="#" role="menuitem">
-                    Dashboard RH
-                  </a>
-                  <a class="flex items-center gap-x-3.5 py-3 px-4 rounded-lg text-sm font-medium text-gray-800 hover:bg-gray-100 focus:outline-hidden focus:bg-gray-100 dark:text-neutral-400 dark:hover:bg-neutral-700 dark:hover:text-neutral-300 transition-colors" href="#" role="menuitem">
-                    Auto 33
-                  </a>
-                </div>
-              </div>
-            </div>
-          </div>
+          </nav>
         </div>
-        <!-- End Access Selection Section -->
+        <!-- End Tabs Navigation -->
+
+        <!-- Tab Contents -->
+        <div class="mt-3">
+          <!-- Tab 1: Utilisateurs -->
+          <div id="tab-content-utilisateurs" role="tabpanel" aria-labelledby="tab-utilisateurs">
 
-        <!-- Table Section -->
+            <!-- Liste des utilisateurs -->
         <div class="flex flex-col">
           <div class="-m-1.5 overflow-x-auto">
             <div class="p-1.5 min-w-full inline-block align-middle">
-              <div class="bg-white border border-gray-200 rounded-xl shadow-2xs overflow-hidden dark:bg-neutral-900 dark:border-neutral-700">
+                  <div class="bg-white border border-gray-200 rounded-xl shadow-sm overflow-hidden dark:bg-neutral-900 dark:border-neutral-700">
+                    <!-- Header with Add Button -->
+                    <div class="px-6 py-4 border-b border-gray-200 dark:border-neutral-700 flex justify-between items-center">
+                      <h2 class="text-lg font-semibold text-gray-800 dark:text-white">Liste des utilisateurs</h2>
+                      <button type="button" id="btn-add-user" class="py-2 px-4 inline-flex items-center gap-x-2 text-sm font-medium rounded-lg border border-transparent bg-blue-600 text-white hover:bg-blue-700 focus:outline-none focus:bg-blue-700 transition-colors" data-hs-overlay="#modal-ajouter-utilisateur">
+                        <svg class="size-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+                          <path d="M5 12h14"/>
+                          <path d="M12 5v14"/>
+                        </svg>
+                        Nouvel utilisateur
+                      </button>
+                    </div>
+                    <!-- End Header -->
+                    
                 <!-- Table -->
                 <table class="min-w-full divide-y divide-gray-200 dark:divide-neutral-700">
                   <thead class="bg-gray-50 dark:bg-neutral-900">
                     <tr>
                       <th scope="col" class="px-6 py-3 text-start">
-                        <div class="flex items-center gap-x-2">
-                          <span class="text-xs font-semibold uppercase text-gray-800 dark:text-neutral-200">
-                            Collaborateur
-                          </span>
-                          <svg class="size-3 text-gray-400" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
-                            <path d="m6 9 6 6 6-6"/>
-                          </svg>
-                        </div>
+                            <span class="text-xs font-semibold uppercase text-gray-800 dark:text-neutral-200">Nom</span>
                       </th>
-
                       <th scope="col" class="px-6 py-3 text-start">
-                        <div class="flex items-center gap-x-2">
-                          <span class="text-xs font-semibold uppercase text-gray-800 dark:text-neutral-200">
-                            Site
-                          </span>
-                        </div>
+                            <span class="text-xs font-semibold uppercase text-gray-800 dark:text-neutral-200">Email</span>
                       </th>
-
                       <th scope="col" class="px-6 py-3 text-start">
-                        <div class="flex items-center gap-x-2">
-                          <span class="text-xs font-semibold uppercase text-gray-800 dark:text-neutral-200">
-                            Rôle/Groupes utilisateurs
-                          </span>
-                        </div>
-                      </th>
-
-                      <th scope="col" class="px-6 py-3 text-start">
-                        <div class="flex items-center gap-x-2">
-                          <span class="text-xs font-semibold uppercase text-gray-800 dark:text-neutral-200">
-                            Notification mails
-                          </span>
-                        </div>
+                            <span class="text-xs font-semibold uppercase text-gray-800 dark:text-neutral-200">Date de création</span>
                       </th>
-
-                      <th scope="col" class="px-6 py-3 text-start">
-                        <div class="flex items-center gap-x-2">
-                          <span class="text-xs font-semibold uppercase text-gray-800 dark:text-neutral-200">
-                            Actions
-                          </span>
-                        </div>
+                          <th scope="col" class="px-6 py-3 text-end">
+                            <span class="text-xs font-semibold uppercase text-gray-800 dark:text-neutral-200">Actions</span>
                       </th>
                     </tr>
                   </thead>
 
                   <tbody class="divide-y divide-gray-200 dark:divide-neutral-700">
-                    <!-- Ligne 1 - Fond blanc -->
-                    <tr class="bg-white dark:bg-neutral-800">
-                      <td class="size-px whitespace-nowrap">
-                        <div class="px-6 py-3">
+                        <!-- Ligne 1 -->
+                        <tr class="hover:bg-gray-50 dark:hover:bg-neutral-800">
+                          <td class="px-6 py-4 whitespace-nowrap">
+                            <div class="flex items-center gap-x-3">
+                              <div class="flex-shrink-0 h-10 w-10">
+                                <div class="h-10 w-10 rounded-full bg-blue-100 dark:bg-blue-900/30 flex items-center justify-center">
+                                  <span class="text-sm font-medium text-blue-800 dark:text-blue-300">JD</span>
+                                </div>
+                              </div>
                           <span class="text-sm font-medium text-gray-800 dark:text-neutral-200">Jean Dupont</span>
                         </div>
                       </td>
-
-                      <td class="size-px whitespace-nowrap">
-                        <div class="px-6 py-3">
-                          <span class="text-sm text-gray-600 dark:text-neutral-400">Auto33</span>
-                        </div>
+                          <td class="px-6 py-4 whitespace-nowrap">
+                            <span class="text-sm text-gray-600 dark:text-neutral-400">jean.dupont@example.com</span>
                       </td>
-
-                      <td class="size-px whitespace-nowrap">
-                        <div class="px-6 py-3">
-                          <span class="py-1 px-2 inline-flex items-center gap-x-1 text-xs font-medium bg-purple-100 text-purple-800 rounded-full dark:bg-purple-500/10 dark:text-purple-500">
-                            Comptable
-                          </span>
-                        </div>
+                          <td class="px-6 py-4 whitespace-nowrap">
+                            <span class="text-sm text-gray-600 dark:text-neutral-400">12/01/2025</span>
                       </td>
-
-                      <td class="size-px whitespace-nowrap">
-                        <div class="px-6 py-3">
-                          <input type="checkbox" class="shrink-0 mt-0.5 border-gray-200 rounded text-blue-600 focus:ring-blue-500 dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800" checked>
-                        </div>
-                      </td>
-
-                      <td class="size-px whitespace-nowrap">
-                        <div class="px-6 py-3">
-                          <div class="flex items-center gap-x-2">
-                            <button type="button" class="hs-tooltip-toggle inline-flex items-center justify-center size-7 text-sm font-medium rounded-lg border border-gray-200 bg-white text-gray-800 hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-white dark:hover:bg-neutral-700" title="Modifier">
-                              <svg class="size-4 text-gray-600 dark:text-neutral-400" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
-                                <path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"/>
-                                <path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"/>
+                          <td class="px-6 py-4 whitespace-nowrap text-end">
+                            <button type="button" class="inline-flex items-center gap-x-2 text-sm font-medium text-red-600 hover:text-red-800 dark:text-red-400 dark:hover:text-red-300" title="Supprimer l'utilisateur">
+                              <svg class="size-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+                                <path d="M3 6h18"/>
+                                <path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/>
+                                <path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/>
+                                <line x1="10" x2="10" y1="11" y2="17"/>
+                                <line x1="14" x2="14" y1="11" y2="17"/>
                               </svg>
+                              Supprimer
                             </button>
-                            <button type="button" class="hs-tooltip-toggle inline-flex items-center justify-center size-7 text-sm font-medium rounded-lg border border-gray-200 bg-white text-gray-800 hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-white dark:hover:bg-neutral-700" title="Supprimer">
-                              <svg class="size-4 text-gray-600 dark:text-neutral-400" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+                          </td>
+                        </tr>
+
+                        <!-- Ligne 2 -->
+                        <tr class="hover:bg-gray-50 dark:hover:bg-neutral-800">
+                          <td class="px-6 py-4 whitespace-nowrap">
+                            <div class="flex items-center gap-x-3">
+                              <div class="flex-shrink-0 h-10 w-10">
+                                <div class="h-10 w-10 rounded-full bg-purple-100 dark:bg-purple-900/30 flex items-center justify-center">
+                                  <span class="text-sm font-medium text-purple-800 dark:text-purple-300">MM</span>
+                                </div>
+                              </div>
+                              <span class="text-sm font-medium text-gray-800 dark:text-neutral-200">Marie Martin</span>
+                            </div>
+                          </td>
+                          <td class="px-6 py-4 whitespace-nowrap">
+                            <span class="text-sm text-gray-600 dark:text-neutral-400">marie.martin@example.com</span>
+                          </td>
+                          <td class="px-6 py-4 whitespace-nowrap">
+                            <span class="text-sm text-gray-600 dark:text-neutral-400">10/01/2025</span>
+                          </td>
+                          <td class="px-6 py-4 whitespace-nowrap text-end">
+                            <button type="button" class="inline-flex items-center gap-x-2 text-sm font-medium text-red-600 hover:text-red-800 dark:text-red-400 dark:hover:text-red-300" title="Supprimer l'utilisateur">
+                              <svg class="size-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                                 <path d="M3 6h18"/>
                                 <path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/>
                                 <path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/>
+                                <line x1="10" x2="10" y1="11" y2="17"/>
+                                <line x1="14" x2="14" y1="11" y2="17"/>
                               </svg>
+                              Supprimer
                             </button>
-                          </div>
-                        </div>
                       </td>
                     </tr>
 
-                    <!-- Ligne 2 - Fond grisé alterné -->
-                    <tr class="dark:bg-green-900/20" style="background-color: rgba(245, 248, 246, 0.45);">
-                      <td class="size-px whitespace-nowrap">
-                        <div class="px-6 py-3">
-                          <span class="text-sm font-medium text-gray-800 dark:text-neutral-200">Marie Martin</span>
+                        <!-- Ligne 3 -->
+                        <tr class="hover:bg-gray-50 dark:hover:bg-neutral-800">
+                          <td class="px-6 py-4 whitespace-nowrap">
+                            <div class="flex items-center gap-x-3">
+                              <div class="flex-shrink-0 h-10 w-10">
+                                <div class="h-10 w-10 rounded-full bg-green-100 dark:bg-green-900/30 flex items-center justify-center">
+                                  <span class="text-sm font-medium text-green-800 dark:text-green-300">PD</span>
+                                </div>
                         </div>
-                      </td>
-
-                      <td class="size-px whitespace-nowrap">
-                        <div class="px-6 py-3">
-                          <span class="text-sm text-gray-600 dark:text-neutral-400">Admin RH</span>
+                              <span class="text-sm font-medium text-gray-800 dark:text-neutral-200">Pierre Durand</span>
                         </div>
                       </td>
-
-                      <td class="size-px whitespace-nowrap">
-                        <div class="px-6 py-3">
-                          <span class="py-1 px-2 inline-flex items-center gap-x-1 text-xs font-medium bg-blue-100 text-blue-800 rounded-full dark:bg-blue-500/10 dark:text-blue-500">
-                            Administrateur
-                          </span>
-                        </div>
+                          <td class="px-6 py-4 whitespace-nowrap">
+                            <span class="text-sm text-gray-600 dark:text-neutral-400">pierre.durand@example.com</span>
                       </td>
-
-                      <td class="size-px whitespace-nowrap">
-                        <div class="px-6 py-3">
-                          <input type="checkbox" class="shrink-0 mt-0.5 border-gray-200 rounded text-blue-600 focus:ring-blue-500 dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800">
-                        </div>
+                          <td class="px-6 py-4 whitespace-nowrap">
+                            <span class="text-sm text-gray-600 dark:text-neutral-400">08/01/2025</span>
                       </td>
-
-                      <td class="size-px whitespace-nowrap">
-                        <div class="px-6 py-3">
-                          <div class="flex items-center gap-x-2">
-                            <button type="button" class="hs-tooltip-toggle inline-flex items-center justify-center size-7 text-sm font-medium rounded-lg border border-gray-200 bg-white text-gray-800 hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-white dark:hover:bg-neutral-700" title="Modifier">
-                              <svg class="size-4 text-gray-600 dark:text-neutral-400" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
-                                <path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"/>
-                                <path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"/>
+                          <td class="px-6 py-4 whitespace-nowrap text-end">
+                            <button type="button" class="inline-flex items-center gap-x-2 text-sm font-medium text-red-600 hover:text-red-800 dark:text-red-400 dark:hover:text-red-300" title="Supprimer l'utilisateur">
+                              <svg class="size-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+                                <path d="M3 6h18"/>
+                                <path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/>
+                                <path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/>
+                                <line x1="10" x2="10" y1="11" y2="17"/>
+                                <line x1="14" x2="14" y1="11" y2="17"/>
                               </svg>
+                              Supprimer
                             </button>
-                            <button type="button" class="hs-tooltip-toggle inline-flex items-center justify-center size-7 text-sm font-medium rounded-lg border border-gray-200 bg-white text-gray-800 hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-white dark:hover:bg-neutral-700" title="Supprimer">
-                              <svg class="size-4 text-gray-600 dark:text-neutral-400" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+                          </td>
+                        </tr>
+
+                        <!-- Ligne 4 -->
+                        <tr class="hover:bg-gray-50 dark:hover:bg-neutral-800">
+                          <td class="px-6 py-4 whitespace-nowrap">
+                            <div class="flex items-center gap-x-3">
+                              <div class="flex-shrink-0 h-10 w-10">
+                                <div class="h-10 w-10 rounded-full bg-orange-100 dark:bg-orange-900/30 flex items-center justify-center">
+                                  <span class="text-sm font-medium text-orange-800 dark:text-orange-300">SB</span>
+                                </div>
+                              </div>
+                              <span class="text-sm font-medium text-gray-800 dark:text-neutral-200">Sophie Bernard</span>
+                            </div>
+                          </td>
+                          <td class="px-6 py-4 whitespace-nowrap">
+                            <span class="text-sm text-gray-600 dark:text-neutral-400">sophie.bernard@example.com</span>
+                          </td>
+                          <td class="px-6 py-4 whitespace-nowrap">
+                            <span class="text-sm text-gray-600 dark:text-neutral-400">05/01/2025</span>
+                          </td>
+                          <td class="px-6 py-4 whitespace-nowrap text-end">
+                            <button type="button" class="inline-flex items-center gap-x-2 text-sm font-medium text-red-600 hover:text-red-800 dark:text-red-400 dark:hover:text-red-300" title="Supprimer l'utilisateur">
+                              <svg class="size-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                                 <path d="M3 6h18"/>
                                 <path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/>
                                 <path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/>
+                                <line x1="10" x2="10" y1="11" y2="17"/>
+                                <line x1="14" x2="14" y1="11" y2="17"/>
                               </svg>
+                              Supprimer
                             </button>
+                          </td>
+                        </tr>
+                      </tbody>
+                    </table>
+                    <!-- End Table -->
+                  </div>
+                </div>
+              </div>
                           </div>
                         </div>
-                      </td>
-                    </tr>
-
-                    <!-- Ligne 3 - Fond blanc -->
-                    <tr class="bg-white dark:bg-neutral-800">
-                      <td class="size-px whitespace-nowrap">
-                        <div class="px-6 py-3">
-                          <span class="text-sm font-medium text-gray-800 dark:text-neutral-200">Pierre Durand</span>
-                        </div>
-                      </td>
+          <!-- End Tab 1: Utilisateurs -->
+
+          <!-- Tab 2: Attribution des droits -->
+          <div id="tab-content-droits" class="hidden" role="tabpanel" aria-labelledby="tab-droits">
+            <!-- Access Selection -->
+            <div class="mb-6">
+              <div class="bg-white border border-gray-200 rounded-xl shadow-sm p-6 dark:bg-neutral-800 dark:border-neutral-700">
+                <div class="flex flex-col sm:flex-row items-center justify-center gap-4">
+                  <label class="text-base font-semibold text-gray-800 dark:text-neutral-200 whitespace-nowrap">
+                    Sélectionner un site
+                  </label>
+                  <div class="hs-dropdown relative inline-flex">
+                    <button id="hs-dropdown-access" type="button" class="hs-dropdown-toggle py-3 px-6 inline-flex items-center gap-x-3 text-base font-medium rounded-lg border-2 border-gray-300 bg-white text-gray-800 shadow-sm hover:bg-gray-50 hover:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 dark:bg-neutral-800 dark:border-neutral-600 dark:text-white dark:hover:bg-neutral-700 dark:hover:border-blue-500 transition-colors min-w-[200px] justify-between" aria-expanded="false">
+                      <span id="selected-site" class="font-semibold">Auto 33</span>
+                      <svg class="hs-dropdown-open:rotate-180 size-5 text-gray-600 dark:text-neutral-400 transition-transform" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+                        <path d="m6 9 6 6 6-6"/>
+                      </svg>
+                    </button>
 
-                      <td class="size-px whitespace-nowrap">
-                        <div class="px-6 py-3">
-                          <span class="text-sm text-gray-600 dark:text-neutral-400">Dashboard RH</span>
+                    <div class="hs-dropdown-menu transition-[opacity,margin] duration hs-dropdown-open:opacity-100 opacity-0 hidden min-w-[200px] bg-white shadow-lg rounded-lg p-2 mt-2 dark:bg-neutral-800 dark:border dark:border-neutral-700 z-10" role="menu" aria-labelledby="hs-dropdown-access">
+                      <a class="flex items-center gap-x-3.5 py-3 px-4 rounded-lg text-sm font-medium text-gray-800 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 dark:text-neutral-400 dark:hover:bg-neutral-700 dark:hover:text-neutral-300 transition-colors" href="#" role="menuitem">
+                        Auto 33
+                      </a>
+                      <a class="flex items-center gap-x-3.5 py-3 px-4 rounded-lg text-sm font-medium text-gray-800 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 dark:text-neutral-400 dark:hover:bg-neutral-700 dark:hover:text-neutral-300 transition-colors" href="#" role="menuitem">
+                        Admin RH
+                      </a>
+                      <a class="flex items-center gap-x-3.5 py-3 px-4 rounded-lg text-sm font-medium text-gray-800 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 dark:text-neutral-400 dark:hover:bg-neutral-700 dark:hover:text-neutral-300 transition-colors" href="#" role="menuitem">
+                        Admin IT
+                      </a>
+                      <a class="flex items-center gap-x-3.5 py-3 px-4 rounded-lg text-sm font-medium text-gray-800 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 dark:text-neutral-400 dark:hover:bg-neutral-700 dark:hover:text-neutral-300 transition-colors" href="#" role="menuitem">
+                        Dashboard IT
+                      </a>
+                      <a class="flex items-center gap-x-3.5 py-3 px-4 rounded-lg text-sm font-medium text-gray-800 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 dark:text-neutral-400 dark:hover:bg-neutral-700 dark:hover:text-neutral-300 transition-colors" href="#" role="menuitem">
+                        Dashboard RH
+                      </a>
+                    </div>
+                  </div>
+                </div>
+              </div>
                         </div>
-                      </td>
-
-                      <td class="size-px whitespace-nowrap">
-                        <div class="px-6 py-3">
-                          <span class="py-1 px-2 inline-flex items-center gap-x-1 text-xs font-medium bg-green-100 text-green-800 rounded-full dark:bg-green-500/10 dark:text-green-500">
-                            RH
-                          </span>
+            <!-- End Access Selection -->
+
+            <!-- Table des droits -->
+            <div class="flex flex-col">
+              <div class="-m-1.5 overflow-x-auto">
+                <div class="p-1.5 min-w-full inline-block align-middle">
+                  <div class="bg-white border border-gray-200 rounded-xl shadow-sm overflow-hidden dark:bg-neutral-900 dark:border-neutral-700">
+                    <!-- Header with Add Button -->
+                    <div class="px-6 py-4 border-b border-gray-200 dark:border-neutral-700 flex justify-between items-center">
+                      <h2 class="text-lg font-semibold text-gray-800 dark:text-white">Droits d'accès pour <span id="site-title">Auto 33</span></h2>
+                      <button type="button" id="btn-add-droit" class="py-2 px-4 inline-flex items-center gap-x-2 text-sm font-medium rounded-lg border border-transparent bg-blue-600 text-white hover:bg-blue-700 focus:outline-none focus:bg-blue-700 transition-colors" data-hs-overlay="#modal-ajouter-droit">
+                        <svg class="size-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+                          <path d="M5 12h14"/>
+                          <path d="M12 5v14"/>
+                        </svg>
+                        Ajouter un accès
+                      </button>
                         </div>
-                      </td>
-
-                      <td class="size-px whitespace-nowrap">
-                        <div class="px-6 py-3">
-                          <input type="checkbox" class="shrink-0 mt-0.5 border-gray-200 rounded text-blue-600 focus:ring-blue-500 dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800" checked>
+                    <!-- End Header -->
+                    
+                    <!-- Table -->
+                    <table class="min-w-full divide-y divide-gray-200 dark:divide-neutral-700">
+                      <thead class="bg-gray-50 dark:bg-neutral-900">
+                        <tr>
+                          <th scope="col" class="px-6 py-3 text-start">
+                            <span class="text-xs font-semibold uppercase text-gray-800 dark:text-neutral-200">Utilisateur</span>
+                          </th>
+                          <th scope="col" class="px-6 py-3 text-start">
+                            <span class="text-xs font-semibold uppercase text-gray-800 dark:text-neutral-200">Rôle / Groupe</span>
+                          </th>
+                          <th scope="col" class="px-6 py-3 text-end">
+                            <span class="text-xs font-semibold uppercase text-gray-800 dark:text-neutral-200">Actions</span>
+                          </th>
+                        </tr>
+                      </thead>
+
+                      <tbody class="divide-y divide-gray-200 dark:divide-neutral-700">
+                        <!-- Ligne 1 -->
+                        <tr class="hover:bg-gray-50 dark:hover:bg-neutral-800">
+                          <td class="px-6 py-4 whitespace-nowrap">
+                            <div class="flex items-center gap-x-3">
+                              <div class="flex-shrink-0 h-10 w-10">
+                                <div class="h-10 w-10 rounded-full bg-blue-100 dark:bg-blue-900/30 flex items-center justify-center">
+                                  <span class="text-sm font-medium text-blue-800 dark:text-blue-300">JD</span>
+                                </div>
+                              </div>
+                              <span class="text-sm font-medium text-gray-800 dark:text-neutral-200">Jean Dupont</span>
                         </div>
                       </td>
-
-                      <td class="size-px whitespace-nowrap">
-                        <div class="px-6 py-3">
-                          <div class="flex items-center gap-x-2">
-                            <button type="button" class="hs-tooltip-toggle inline-flex items-center justify-center size-7 text-sm font-medium rounded-lg border border-gray-200 bg-white text-gray-800 hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-white dark:hover:bg-neutral-700" title="Modifier">
-                              <svg class="size-4 text-gray-600 dark:text-neutral-400" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
-                                <path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"/>
-                                <path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"/>
-                              </svg>
-                            </button>
-                            <button type="button" class="hs-tooltip-toggle inline-flex items-center justify-center size-7 text-sm font-medium rounded-lg border border-gray-200 bg-white text-gray-800 hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-white dark:hover:bg-neutral-700" title="Supprimer">
-                              <svg class="size-4 text-gray-600 dark:text-neutral-400" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+                          <td class="px-6 py-4 whitespace-nowrap">
+                            <span class="py-1 px-2 inline-flex items-center gap-x-1 text-xs font-medium bg-purple-100 text-purple-800 rounded-full dark:bg-purple-500/10 dark:text-purple-500">
+                              Comptable
+                            </span>
+                          </td>
+                          <td class="px-6 py-4 whitespace-nowrap text-end">
+                            <button type="button" class="inline-flex items-center gap-x-2 text-sm font-medium text-red-600 hover:text-red-800 dark:text-red-400 dark:hover:text-red-300" title="Retirer l'accès">
+                              <svg class="size-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                                 <path d="M3 6h18"/>
                                 <path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/>
                                 <path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/>
+                                <line x1="10" x2="10" y1="11" y2="17"/>
+                                <line x1="14" x2="14" y1="11" y2="17"/>
                               </svg>
+                              Retirer
                             </button>
-                          </div>
-                        </div>
                       </td>
                     </tr>
 
-                    <!-- Ligne 4 - Fond grisé alterné -->
-                    <tr class="dark:bg-green-900/20" style="background-color: rgba(245, 248, 246, 0.45);">
-                      <td class="size-px whitespace-nowrap">
-                        <div class="px-6 py-3">
+                        <!-- Ligne 2 -->
+                        <tr class="hover:bg-gray-50 dark:hover:bg-neutral-800">
+                          <td class="px-6 py-4 whitespace-nowrap">
+                            <div class="flex items-center gap-x-3">
+                              <div class="flex-shrink-0 h-10 w-10">
+                                <div class="h-10 w-10 rounded-full bg-orange-100 dark:bg-orange-900/30 flex items-center justify-center">
+                                  <span class="text-sm font-medium text-orange-800 dark:text-orange-300">SB</span>
+                                </div>
+                              </div>
                           <span class="text-sm font-medium text-gray-800 dark:text-neutral-200">Sophie Bernard</span>
                         </div>
                       </td>
-
-                      <td class="size-px whitespace-nowrap">
-                        <div class="px-6 py-3">
-                          <span class="text-sm text-gray-600 dark:text-neutral-400">Auto33</span>
-                        </div>
-                      </td>
-
-                      <td class="size-px whitespace-nowrap">
-                        <div class="px-6 py-3">
+                          <td class="px-6 py-4 whitespace-nowrap">
                           <span class="py-1 px-2 inline-flex items-center gap-x-1 text-xs font-medium bg-orange-100 text-orange-800 rounded-full dark:bg-orange-500/10 dark:text-orange-500">
                             Directeur
                           </span>
-                        </div>
                       </td>
-
-                      <td class="size-px whitespace-nowrap">
-                        <div class="px-6 py-3">
-                          <input type="checkbox" class="shrink-0 mt-0.5 border-gray-200 rounded text-blue-600 focus:ring-blue-500 dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800">
-                        </div>
-                      </td>
-
-                      <td class="size-px whitespace-nowrap">
-                        <div class="px-6 py-3">
-                          <div class="flex items-center gap-x-2">
-                            <button type="button" class="hs-tooltip-toggle inline-flex items-center justify-center size-7 text-sm font-medium rounded-lg border border-gray-200 bg-white text-gray-800 hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-white dark:hover:bg-neutral-700" title="Modifier">
-                              <svg class="size-4 text-gray-600 dark:text-neutral-400" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
-                                <path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"/>
-                                <path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"/>
-                              </svg>
-                            </button>
-                            <button type="button" class="hs-tooltip-toggle inline-flex items-center justify-center size-7 text-sm font-medium rounded-lg border border-gray-200 bg-white text-gray-800 hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-white dark:hover:bg-neutral-700" title="Supprimer">
-                              <svg class="size-4 text-gray-600 dark:text-neutral-400" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+                          <td class="px-6 py-4 whitespace-nowrap text-end">
+                            <button type="button" class="inline-flex items-center gap-x-2 text-sm font-medium text-red-600 hover:text-red-800 dark:text-red-400 dark:hover:text-red-300" title="Retirer l'accès">
+                              <svg class="size-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                                 <path d="M3 6h18"/>
                                 <path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/>
                                 <path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/>
+                                <line x1="10" x2="10" y1="11" y2="17"/>
+                                <line x1="14" x2="14" y1="11" y2="17"/>
                               </svg>
+                              Retirer
                             </button>
-                          </div>
-                        </div>
                       </td>
                     </tr>
                   </tbody>
                 </table>
                 <!-- End Table -->
-
-                <!-- Add User Button -->
-                <div class="px-6 py-4 border-t border-gray-200 dark:border-neutral-700">
-                  <div class="flex justify-center">
-                    <button type="button" id="btn-add-user" class="py-2 px-4 inline-flex items-center gap-x-2 text-sm font-medium rounded-lg border border-transparent bg-blue-600 text-white hover:bg-blue-700 focus:outline-hidden focus:bg-blue-700 disabled:opacity-50 disabled:pointer-events-none dark:focus:outline-hidden dark:focus:ring-1 dark:focus:ring-neutral-700" data-hs-overlay="#modal-ajouter-utilisateur">
-                      <span id="btn-add-user-text">Ajouter un utilisateur [[auto 33]]</span>
-                    </button>
                   </div>
                 </div>
-                <!-- End Add User Button -->
               </div>
             </div>
           </div>
+          <!-- End Tab 2: Attribution des droits -->
         </div>
-        <!-- End Table Section -->
+        <!-- End Tab Contents -->
       </div>
     </div>
     <!-- End Content -->
@@ -366,7 +405,7 @@
             <!-- Header -->
             <div class="flex justify-between items-center py-4 px-6 border-b border-gray-200 dark:border-neutral-700">
               <h3 class="text-xl font-semibold text-gray-800 dark:text-white">
-                Ajouter un utilisateur
+                Nouvel utilisateur
               </h3>
               <button type="button" class="flex justify-center items-center size-8 text-sm font-semibold rounded-lg border border-transparent text-gray-500 hover:bg-gray-100 hover:text-gray-800 disabled:opacity-50 disabled:pointer-events-none dark:text-neutral-400 dark:hover:bg-neutral-700 dark:hover:text-white transition-colors" data-hs-overlay="#modal-ajouter-utilisateur">
                 <span class="sr-only">Fermer</span>
@@ -382,43 +421,124 @@
             <div class="p-6 overflow-y-auto max-h-[calc(100vh-200px)]">
               <form class="space-y-5">
                 <div>
-                  <label for="collaborateur" class="block text-sm font-medium text-gray-700 dark:text-neutral-300 mb-2">
-                    Collaborateur
+                  <label for="nom" class="block text-sm font-medium text-gray-700 dark:text-neutral-300 mb-2">
+                    Nom complet
                   </label>
                   <input 
                     type="text" 
-                    id="collaborateur" 
-                    name="collaborateur" 
+                    id="nom" 
+                    name="nom" 
                     class="py-2.5 px-4 block w-full border-gray-200 rounded-lg text-sm focus:border-blue-500 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600 transition-colors" 
-                    placeholder="Rechercher un collaborateur..."
+                    placeholder="Jean Dupont"
+                    required
                   >
                 </div>
 
                 <div>
-                  <label for="site" class="block text-sm font-medium text-gray-700 dark:text-neutral-300 mb-2">
-                    Site
+                  <label for="email" class="block text-sm font-medium text-gray-700 dark:text-neutral-300 mb-2">
+                    Adresse email
+                  </label>
+                  <input 
+                    type="email" 
+                    id="email" 
+                    name="email" 
+                    class="py-2.5 px-4 block w-full border-gray-200 rounded-lg text-sm focus:border-blue-500 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600 transition-colors" 
+                    placeholder="jean.dupont@example.com"
+                    required
+                  >
+                </div>
+
+                <div>
+                  <label for="password" class="block text-sm font-medium text-gray-700 dark:text-neutral-300 mb-2">
+                    Mot de passe temporaire
+                  </label>
+                  <input 
+                    type="password" 
+                    id="password" 
+                    name="password" 
+                    class="py-2.5 px-4 block w-full border-gray-200 rounded-lg text-sm focus:border-blue-500 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600 transition-colors" 
+                    placeholder="••••••••"
+                    required
+                  >
+                  <p class="mt-1 text-xs text-gray-500 dark:text-neutral-400">
+                    L'utilisateur devra changer son mot de passe à la première connexion
+                  </p>
+                </div>
+              </form>
+            </div>
+            <!-- End Body -->
+            
+            <!-- Footer -->
+            <div class="flex justify-end items-center gap-x-3 py-4 px-6 border-t border-gray-200 dark:border-neutral-700 bg-gray-50 dark:bg-neutral-900/50">
+              <button 
+                type="button" 
+                class="py-2.5 px-4 inline-flex items-center gap-x-2 text-sm font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-white dark:hover:bg-neutral-700 transition-colors" 
+                data-hs-overlay="#modal-ajouter-utilisateur"
+              >
+                Annuler
+              </button>
+              <button 
+                type="button" 
+                class="py-2.5 px-4 inline-flex items-center gap-x-2 text-sm font-medium rounded-lg border border-transparent bg-blue-600 text-white hover:bg-blue-700 focus:outline-none focus:bg-blue-700 disabled:opacity-50 disabled:pointer-events-none transition-colors"
+              >
+                Créer l'utilisateur
+              </button>
+            </div>
+            <!-- End Footer -->
+        </div>
+      </div>
+    </div>
+    <!-- End Modal Ajouter Utilisateur -->
+
+    <!-- Modal Ajouter Droit -->
+    <div id="modal-ajouter-droit" class="hs-overlay hidden size-full fixed top-0 start-0 z-[80] overflow-x-hidden overflow-y-auto pointer-events-none">
+      <div class="hs-overlay-open:mt-7 hs-overlay-open:opacity-100 hs-overlay-open:duration-500 mt-0 opacity-0 ease-out transition-all sm:max-w-lg sm:w-full m-3 sm:mx-auto min-h-[calc(100%-3.5rem)] flex items-center">
+        <div class="w-full flex flex-col bg-white border shadow-sm rounded-xl pointer-events-auto dark:bg-neutral-800 dark:border-neutral-700 dark:shadow-neutral-700/70">
+            <!-- Header -->
+            <div class="flex justify-between items-center py-4 px-6 border-b border-gray-200 dark:border-neutral-700">
+              <h3 class="text-xl font-semibold text-gray-800 dark:text-white">
+                Ajouter un accès
+              </h3>
+              <button type="button" class="flex justify-center items-center size-8 text-sm font-semibold rounded-lg border border-transparent text-gray-500 hover:bg-gray-100 hover:text-gray-800 disabled:opacity-50 disabled:pointer-events-none dark:text-neutral-400 dark:hover:bg-neutral-700 dark:hover:text-white transition-colors" data-hs-overlay="#modal-ajouter-droit">
+                <span class="sr-only">Fermer</span>
+                <svg class="flex-shrink-0 size-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+                  <path d="m18 6-12 12"/>
+                  <path d="m6 6 12 12"/>
+                </svg>
+              </button>
+            </div>
+            <!-- End Header -->
+            
+            <!-- Body -->
+            <div class="p-6 overflow-y-auto max-h-[calc(100vh-200px)]">
+              <form class="space-y-5">
+                <div>
+                  <label for="utilisateur-droit" class="block text-sm font-medium text-gray-700 dark:text-neutral-300 mb-2">
+                    Utilisateur
                   </label>
                   <select 
-                    id="site" 
-                    name="site" 
+                    id="utilisateur-droit" 
+                    name="utilisateur-droit" 
                     class="py-2.5 px-4 block w-full border-gray-200 rounded-lg text-sm focus:border-blue-500 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-400 dark:focus:ring-neutral-600 transition-colors"
+                    required
                   >
-                    <option value="auto33">Auto 33</option>
-                    <option value="admin-rh">Admin RH</option>
-                    <option value="admin-it">Admin IT</option>
-                    <option value="dashboard-it">Dashboard IT</option>
-                    <option value="dashboard-rh">Dashboard RH</option>
+                    <option value="">Sélectionner un utilisateur</option>
+                    <option value="jean-dupont">Jean Dupont</option>
+                    <option value="marie-martin">Marie Martin</option>
+                    <option value="pierre-durand">Pierre Durand</option>
+                    <option value="sophie-bernard">Sophie Bernard</option>
                   </select>
                 </div>
 
                 <div>
-                  <label for="role" class="block text-sm font-medium text-gray-700 dark:text-neutral-300 mb-2">
-                    Rôle / Groupes utilisateurs
+                  <label for="role-droit" class="block text-sm font-medium text-gray-700 dark:text-neutral-300 mb-2">
+                    Rôle / Groupe
                   </label>
                   <select 
-                    id="role" 
-                    name="role" 
+                    id="role-droit" 
+                    name="role-droit" 
                     class="py-2.5 px-4 block w-full border-gray-200 rounded-lg text-sm focus:border-blue-500 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-400 dark:focus:ring-neutral-600 transition-colors"
+                    required
                   >
                     <option value="">Sélectionner un rôle</option>
                     <option value="comptable">Comptable</option>
@@ -428,21 +548,19 @@
                   </select>
                 </div>
 
-                <div class="pt-2">
-                  <label class="flex items-center gap-3 cursor-pointer">
-                    <input 
-                      type="checkbox" 
-                      id="notification-mails" 
-                      name="notification-mails" 
-                      class="shrink-0 size-4 border-gray-200 rounded text-blue-600 focus:ring-2 focus:ring-blue-500 focus:ring-offset-0 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800 transition-colors"
-                    >
-                    <span class="text-sm text-gray-700 dark:text-neutral-300 font-medium">
-                      Notification mails
-                    </span>
-                  </label>
-                  <p class="mt-1 text-xs text-gray-500 dark:text-neutral-400 ms-7">
-                    L'utilisateur recevra des notifications par email
-                  </p>
+                <div class="bg-blue-50 dark:bg-blue-900/20 rounded-lg p-4">
+                  <div class="flex gap-x-3">
+                    <svg class="flex-shrink-0 size-5 text-blue-600 dark:text-blue-400" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+                      <circle cx="12" cy="12" r="10"/>
+                      <path d="M12 16v-4"/>
+                      <path d="M12 8h.01"/>
+                    </svg>
+                    <div class="flex-1">
+                      <p class="text-sm text-blue-800 dark:text-blue-400">
+                        Cet accès sera ajouté au site actuellement sélectionné : <strong id="modal-site-name">Auto 33</strong>
+                      </p>
+                    </div>
+                  </div>
                 </div>
               </form>
             </div>
@@ -453,181 +571,58 @@
               <button 
                 type="button" 
                 class="py-2.5 px-4 inline-flex items-center gap-x-2 text-sm font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-white dark:hover:bg-neutral-700 transition-colors" 
-                data-hs-overlay="#modal-ajouter-utilisateur"
+                data-hs-overlay="#modal-ajouter-droit"
               >
                 Annuler
               </button>
               <button 
                 type="button" 
-                class="py-2.5 px-4 inline-flex items-center gap-x-2 text-sm font-medium rounded-lg border border-transparent bg-blue-600 text-white hover:bg-blue-700 focus:outline-hidden focus:bg-blue-700 disabled:opacity-50 disabled:pointer-events-none dark:focus:outline-hidden dark:focus:ring-1 dark:focus:ring-neutral-700 transition-colors"
+                class="py-2.5 px-4 inline-flex items-center gap-x-2 text-sm font-medium rounded-lg border border-transparent bg-blue-600 text-white hover:bg-blue-700 focus:outline-none focus:bg-blue-700 disabled:opacity-50 disabled:pointer-events-none transition-colors"
               >
-                Ajouter
+                Ajouter l'accès
               </button>
             </div>
             <!-- End Footer -->
         </div>
       </div>
     </div>
-    <!-- End Modal Ajouter Utilisateur -->
+    <!-- End Modal Ajouter Droit -->
     
     <!-- Preline UI - Chargé à la fin du body pour une initialisation correcte -->
     <script src="https://cdn.jsdelivr.net/npm/preline@2.1.0/dist/preline.js"></script>
     
-    <!-- Script pour le dropdown de notifications -->
+    <!-- Script principal -->
     <script>
-      // Gérer le dropdown de notifications
       document.addEventListener('DOMContentLoaded', function() {
-        const notificationButton = document.getElementById('hs-notification-dropdown');
-        const notificationMenu = document.getElementById('notification-dropdown-menu');
-        
-        if (notificationButton && notificationMenu) {
-          function updateDropdownPosition() {
-            const buttonRect = notificationButton.getBoundingClientRect();
-            notificationMenu.style.top = (buttonRect.bottom + 8) + 'px';
-            notificationMenu.style.right = (window.innerWidth - buttonRect.right) + 'px';
-            notificationMenu.style.maxWidth = '400px';
-          }
-          
-          notificationButton.addEventListener('click', function(e) {
-            e.stopPropagation();
-            const isExpanded = notificationButton.getAttribute('aria-expanded') === 'true';
-            const newExpanded = !isExpanded;
-            
-            notificationButton.setAttribute('aria-expanded', newExpanded);
-            
-            if (newExpanded) {
-              updateDropdownPosition();
-              notificationMenu.classList.remove('opacity-0', 'invisible', 'translate-y-2');
-              notificationMenu.classList.add('opacity-100', 'visible', 'translate-y-0');
-            } else {
-              notificationMenu.classList.remove('opacity-100', 'visible', 'translate-y-0');
-              notificationMenu.classList.add('opacity-0', 'invisible', 'translate-y-2');
-            }
-          });
-          
-          document.addEventListener('click', function(e) {
-            if (!notificationButton.contains(e.target) && !notificationMenu.contains(e.target)) {
-              notificationMenu.classList.remove('opacity-100', 'visible', 'translate-y-0');
-              notificationMenu.classList.add('opacity-0', 'invisible', 'translate-y-2');
-              notificationButton.setAttribute('aria-expanded', 'false');
-            }
-          });
-          
-          window.addEventListener('resize', function() {
-            if (notificationButton.getAttribute('aria-expanded') === 'true') {
-              updateDropdownPosition();
-            }
-          });
-        }
-      });
-    </script>
-    
-    <!-- Script pour gérer le changement de site dans le dropdown et la modal -->
-    <script>
-      document.addEventListener('DOMContentLoaded', function() {
-        // Fonctions de gestion de la modal
-        const modal = document.getElementById('modal-ajouter-utilisateur');
-        const modalButton = document.getElementById('btn-add-user');
-        const modalInner = modal ? modal.querySelector('div[class*="hs-overlay-open"]') : null;
-        
-        function openModal() {
-          if (modal && modalInner) {
-            modal.classList.remove('hidden');
-            document.body.style.overflow = 'hidden';
-            // Forcer les classes d'animation
-            setTimeout(() => {
-              modalInner.classList.add('mt-7', 'opacity-100');
-            }, 10);
-          }
-        }
-        
-        function closeModal() {
-          if (modal && modalInner) {
-            modalInner.classList.remove('mt-7', 'opacity-100');
-            setTimeout(() => {
-              modal.classList.add('hidden');
-              document.body.style.overflow = '';
-            }, 300);
-          }
-        }
-        
-        // Ouvrir la modal au clic sur le bouton
-        if (modalButton) {
-          modalButton.addEventListener('click', function(e) {
-            e.preventDefault();
-            e.stopPropagation();
-            openModal();
-          });
-        }
-        
-        // Fermer la modal avec les boutons de fermeture
-        const closeButtons = modal ? modal.querySelectorAll('[data-hs-overlay="#modal-ajouter-utilisateur"]') : [];
-        closeButtons.forEach(btn => {
-          if (btn.id !== 'btn-add-user') { // Ne pas ajouter l'écouteur au bouton d'ouverture
-            btn.addEventListener('click', function(e) {
-              e.preventDefault();
-              closeModal();
-            });
-          }
-        });
-        
-        // Fermer la modal en cliquant à l'extérieur
-        if (modal) {
-          modal.addEventListener('click', function(e) {
-            if (e.target === modal) {
-              closeModal();
-            }
-          });
-        }
-        
-        // Fermer avec la touche Échap
-        document.addEventListener('keydown', function(e) {
-          if (e.key === 'Escape' && modal && !modal.classList.contains('hidden')) {
-            closeModal();
-          }
-        });
-        
-        // Attendre que Preline soit chargé pour le dropdown
+        // Gérer le changement de site dans le dropdown (onglet droits)
         setTimeout(function() {
-          // Gérer le changement de site dans le dropdown
           const dropdownButton = document.getElementById('hs-dropdown-access');
           const dropdownContainer = dropdownButton?.closest('.hs-dropdown');
           const dropdownMenu = dropdownContainer?.querySelector('.hs-dropdown-menu');
           const dropdownItems = dropdownMenu?.querySelectorAll('a');
           const selectedSiteSpan = document.getElementById('selected-site');
-          const addButtonText = document.getElementById('btn-add-user-text');
+          const siteTitle = document.getElementById('site-title');
+          const modalSiteName = document.getElementById('modal-site-name');
           
           // Valeur par défaut
-          let selectedSite = 'auto 33';
+          let selectedSite = 'Auto 33';
           
           if (dropdownItems && dropdownItems.length > 0) {
             dropdownItems.forEach(item => {
               item.addEventListener('click', function(e) {
                 e.preventDefault();
                 const selectedText = this.textContent.trim();
-                selectedSite = selectedText.toLowerCase();
+                selectedSite = selectedText;
                 
-                // Mettre à jour le texte du bouton dropdown
+                // Mettre à jour tous les textes
                 if (selectedSiteSpan) {
                   selectedSiteSpan.textContent = selectedText;
                 }
-                
-                // Mettre à jour le texte du bouton "Ajouter un utilisateur"
-                if (addButtonText) {
-                  addButtonText.textContent = `Ajouter un utilisateur [[${selectedText}]]`;
+                if (siteTitle) {
+                  siteTitle.textContent = selectedText;
                 }
-                
-                // Mettre à jour le select dans la modal
-                const siteSelect = document.getElementById('site');
-                if (siteSelect) {
-                  const optionMap = {
-                    'admin rh': 'admin-rh',
-                    'admin it': 'admin-it',
-                    'dashboard it': 'dashboard-it',
-                    'dashboard rh': 'dashboard-rh',
-                    'auto 33': 'auto33'
-                  };
-                  siteSelect.value = optionMap[selectedSite] || 'auto33';
+                if (modalSiteName) {
+                  modalSiteName.textContent = selectedText;
                 }
               });
             });