
/* ===============================================
   YAHR - Fichier CSS complet et optimisé
   Version : 3.0 - Décembre 2025
   =============================================== */

/* RESET ET VARIABLES */
:root {
  --primary: #4361ee;
  --primary-light: #4895ef;
  --primary-dark: #3f37c9;
  --secondary: #3a0ca3;
  --light: #f8f9fa;
  --dark: #212529;
  --success: #4cc9f0;
  --warning: #f72585;
  --gray: #6c757d;
  --light-gray: #e9ecef;
  
  /* Variables modernes */
  --gradient-primary: linear-gradient(135deg, #4361ee, #3f37c9);
  --gradient-text: linear-gradient(135deg, #4361ee, #7209b7);
  --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 20px 40px rgba(67, 97, 238, 0.15);
  --border-radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* TYPOGRAPHIE MODERNE */
body {
  font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
  background-color: #f5f7fa;
  color: var(--dark);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
}

/* STRUCTURE PRINCIPALE */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.form-control.is-invalid {
  border-color: var(--warning);
  box-shadow: 0 0 0 3px rgba(247, 37, 133, 0.1);
}

.form-control.is-valid {
  border-color: #28a745;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.form-control.changed {
  background-color: rgba(67, 97, 238, 0.05);
  transition: background-color 0.3s ease;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.input-group {
  display: flex;
}

.input-group .form-control {
  border-radius: 8px 0 0 8px;
  border-right: none;
}

.input-group-text {
  padding: 0.75rem 1rem;
  background: var(--light);
  border: 1px solid var(--light-gray);
  border-left: none;
  border-radius: 0 8px 8px 0;
  color: var(--gray);
  font-weight: 500;
}

.invalid-feedback {
  display: block;
  margin-top: 0.5rem;
  color: var(--warning);
  font-size: 0.85rem;
}

.valid-feedback {
  display: block;
  margin-top: 0.5rem;
  color: #28a745;
  font-size: 0.85rem;
}

.readonly-field {
  background-color: #e9ecef !important;
  cursor: not-allowed;
}

.form-help {
  color: var(--gray);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.full-width {
  grid-column: 1 / -1;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-check-input {
  width: 1.2em;
  height: 1.2em;
}

.form-check-label {
  margin-bottom: 0;
}

/* ===============================================
   BOUTONS
   =============================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
  color: white;
  text-decoration: none;
}

.button-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.button-outline:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.2);
}

.btn-danger {
  background-color: var(--warning);
  border-color: var(--warning);
}

.btn-danger:hover {
  background-color: #e60049;
  border-color: #e60049;
  transform: translateY(-1px);
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-icon {
  width: 35px;
  height: 35px;
  border: none;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: var(--light);
  color: var(--gray);
  text-decoration: none;
}

.btn-icon:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-1px);
}

.btn-danger:hover {
  background-color: var(--warning);
}

/* ===============================================
   INSCRIPTION - CHOIX DE MÉTHODE
   =============================================== */

.registration-container {
  max-width: 900px;
  margin: 0 auto;
}

.registration-steps {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.step {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background-color: var(--light-gray);
  color: var(--gray);
  font-size: 0.9rem;
  position: relative;
}

.step.active {
  background-color: var(--primary);
  color: white;
}

.step.completed {
  background-color: var(--success);
  color: white;
}

.method-selection {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  margin: 3rem 0;
}

.method-card {
  background: white;
  border: 2px solid var(--light-gray);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.method-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(67, 97, 238, 0.15);
}

.method-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.method-content h3 {
  color: var(--dark);
  margin-bottom: 1rem;
}

.method-content p {
  color: var(--gray);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.method-pros {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.pro-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--gray);
}

.pro-item i {
  color: var(--success);
}

.method-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-gray);
  color: var(--gray);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-weight: 600;
}

/* ===============================================
   FOOTER
   =============================================== */

.main-footer {
  background: var(--dark);
  color: white;
  padding: 2rem 0 1rem;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: white;
}

.footer-section a {
  display: block;
  color: #ccc;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: var(--primary-light);
}

.footer-logo img {
  height: 35px;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 1rem;
  text-align: center;
  color: #ccc;
  font-size: 0.9rem;
}

footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--light-gray);
  text-align: center;
  color: var(--gray);
}

footer nav {
  margin-top: 1rem;
}

footer nav a {
  color: var(--gray);
  text-decoration: none;
  margin: 0 0.75rem;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

footer nav a:hover {
  color: var(--primary);
}

/* ===============================================
   STYLES GÉNÉRIQUES EXISTANTS
   =============================================== */

/* EN-TÊTE */
header {
  text-align: center;
  margin-bottom: 3rem;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* FEATURES ORIGINALES */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.feature-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1.5rem;
}

/* ANCIENNE SECTION CTA */
.cta-section {
  text-align: center;
  margin: 3rem 0;
}

.cta-section h2 {
  margin-bottom: 2rem;
}

.buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===============================================
   NOUVEAUX STYLES POUR DASHBOARD ET PAGES
   =============================================== */

/* PAGE HEADER STYLES */
.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--light-gray);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.header-text h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-text p {
  color: var(--gray);
  font-size: 1rem;
}

.header-actions {
  display: flex;
  gap: 1rem;
}

/* DASHBOARD STYLES */
.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  gap: 2rem;
}

.dashboard-header {
  margin-bottom: 2rem;
}

.header-text h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-light);
  border: 1px solid #f1f3f4;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.stat-label {
  color: var(--gray);
  font-size: 0.9rem;
  font-weight: 500;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  transition: var(--transition);
}

.detail-item:hover {
  background: #e9ecef;
}

.detail-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
}

.detail-content {
  flex: 1;
}

.detail-label {
  display: block;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 0.25rem;
}

.detail-value {
  font-weight: 500;
  color: var(--dark);
}

.website-link {
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.website-link:hover {
  text-decoration: underline;
}

.employee-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.summary-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.summary-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.summary-text h4 {
  margin-bottom: 0.25rem;
  color: var(--dark);
}

.summary-text p {
  color: var(--gray);
  font-size: 0.9rem;
}

.recent-employees {
  margin-top: 2rem;
}

.recent-employees h4 {
  margin-bottom: 1rem;
  color: var(--dark);
  font-size: 1.1rem;
}

.employees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.employee-card {
  background: white;
  border: 1px solid #f1f3f4;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}

.employee-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-light);
}

.employee-avatar {
  width: 40px;
  height: 40px;
  background: var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
}

.employee-info {
  flex: 1;
}

.employee-info h5 {
  margin-bottom: 0.25rem;
  color: var(--dark);
  font-size: 0.95rem;
}

.employee-info p {
  color: var(--gray);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.employee-info small {
  color: var(--gray);
  font-size: 0.75rem;
}

.documents-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.document-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  transition: var(--transition);
}

.document-card:hover {
  background: #e9ecef;
}

.document-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

.document-info {
  flex: 1;
}

.document-name {
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.document-date {
  color: var(--gray);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.document-actions {
  display: flex;
  gap: 0.5rem;
}

.documents-footer {
  margin-top: 1rem;
  text-align: center;
}

.empty-state {
  text-align: center;
  padding: 3rem 2rem;
}

.empty-icon {
  width: 80px;
  height: 80px;
  background: var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--gray);
  font-size: 2rem;
}

.empty-state h4 {
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.empty-state p {
  color: var(--gray);
  margin-bottom: 2rem;
}

.empty-actions {
  margin-bottom: 2rem;
}

.empty-help {
  display: flex;
  justify-content: center;
}

.help-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray);
  font-size: 0.9rem;
}

.help-item i {
  color: var(--primary);
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.quick-action-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border: 1px solid #f1f3f4;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.quick-action-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-light);
  text-decoration: none;
  color: inherit;
}

.action-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.action-content {
  flex: 1;
}

.action-content h4 {
  margin-bottom: 0.25rem;
  color: var(--dark);
  font-size: 1rem;
}

.action-content p {
  color: var(--gray);
  font-size: 0.85rem;
}

.action-arrow {
  color: var(--gray);
  transition: var(--transition);
}

.quick-action-card:hover .action-arrow {
  color: var(--primary);
  transform: translateX(3px);
}

/* ===============================================
   EMPLOYÉS - AJOUT ET GESTION
   =============================================== */

.add-employee-card {
  max-width: 900px;
  margin: 0 auto;
}

.employee-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.method-selection-section {
  text-align: center;
  margin-bottom: 2rem;
}

.method-selection-section h3 {
  margin-bottom: 0.5rem;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.method-selection-section p {
  color: var(--gray);
  margin-bottom: 2rem;
}

.method-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.method-option {
  position: relative;
}

.method-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.method-label {
  display: block;
  padding: 2rem;
  border: 2px solid var(--light-gray);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.method-option input[type="radio"]:checked + .method-label {
  border-color: var(--primary);
  background: rgba(67, 97, 238, 0.05);
}

.method-label:hover {
  border-color: var(--primary);
}

.method-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.method-content h4 {
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.method-content p {
  color: var(--gray);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.method-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(67, 97, 238, 0.1);
  color: var(--primary);
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.feature-tag i {
  font-size: 0.7rem;
}

.form-section {
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  padding: 2rem;
}

.form-section h3 {
  margin-bottom: 1.5rem;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.file-upload-area {
  margin-bottom: 1.5rem;
}

.upload-zone {
  border: 2px dashed var(--light-gray);
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--primary);
  background: rgba(67, 97, 238, 0.05);
}

.upload-icon {
  font-size: 3rem;
  color: var(--gray);
  margin-bottom: 1rem;
}

.upload-zone:hover .upload-icon {
  color: var(--primary);
}

.upload-text h4 {
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.upload-text p {
  color: var(--gray);
  margin-bottom: 1rem;
}

.upload-formats {
  font-size: 0.85rem;
  color: var(--gray);
}

.upload-help {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.upload-help .help-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray);
  font-size: 0.9rem;
}

.upload-help .help-item i {
  color: var(--primary);
}

.form-subsection {
  margin-bottom: 2rem;
}

.form-subsection:last-child {
  margin-bottom: 0;
}

.form-subsection h4 {
  margin-bottom: 1rem;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--light-gray);
}

/* ===============================================
   LISTE DES EMPLOYÉS
   =============================================== */

.employees-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.employees-stats .stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  border: 1px solid #f1f3f4;
}

.employees-stats .stat-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.employees-stats .stat-content {
  flex: 1;
}

.employees-stats .stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.employees-stats .stat-label {
  color: var(--gray);
  font-size: 0.9rem;
}

.employees-filters {
  margin-bottom: 2rem;
}

.filters-header {
  margin-bottom: 1rem;
}

.filters-header h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--dark);
}

.filters-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-bar {
  flex: 1;
}

.search-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-group i {
  position: absolute;
  left: 1rem;
  color: var(--gray);
  z-index: 1;
}

.search-input-group .form-control {
  padding-left: 3rem;
}

.filter-options {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.view-options {
  display: flex;
  gap: 0.5rem;
}

.view-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--light-gray);
  background: white;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray);
}

.view-btn:hover,
.view-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.employees-list-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.employee-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.employee-avatar {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.employee-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-cdi {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.status-cdd {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
}

.status-stage {
  background: rgba(23, 162, 184, 0.1);
  color: #17a2b8;
}

.status-apprentissage {
  background: rgba(102, 16, 242, 0.1);
  color: #6610f2;
}

.status-freelance {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.status-temps-partiel {
  background: rgba(108, 117, 125, 0.1);
  color: #6c757d;
}

.employee-info h4 {
  margin-bottom: 1rem;
  color: var(--dark);
  font-size: 1.2rem;
}

.employee-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.detail-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray);
  font-size: 0.9rem;
}

.detail-row i {
  width: 16px;
  color: var(--primary);
}

.employee-actions {
  display: flex;
  gap: 0.5rem;
  border-top: 1px solid #f1f3f4;
  padding-top: 1rem;
}

.action-btn {
  flex: 1;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.action-btn.primary {
  background: var(--primary);
  color: white;
}

.action-btn.primary:hover {
  background: var(--primary-dark);
  color: white;
  text-decoration: none;
}

.action-btn.secondary {
  background: white;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.action-btn.secondary:hover {
  background: var(--primary);
  color: white;
  text-decoration: none;
}

.employees-table-container {
  overflow-x: auto;
}

.employees-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.employees-table th,
.employees-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #f1f3f4;
}

.employees-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: var(--dark);
  position: sticky;
  top: 0;
  z-index: 1;
}

.employees-table th i {
  margin-right: 0.5rem;
  color: var(--primary);
}

.employee-row:hover {
  background: #f8f9fa;
}

.employee-cell {
  min-width: 200px;
}

.employee-mini {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mini-avatar {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

.mini-info {
  display: flex;
  flex-direction: column;
}

.mini-info strong {
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.mini-info small {
  color: var(--gray);
  font-size: 0.8rem;
}

.position-text {
  color: var(--dark);
  font-weight: 500;
}

.date-text {
  color: var(--gray);
}

.email-link {
  color: var(--primary);
  text-decoration: none;
}

.email-link:hover {
  text-decoration: underline;
}

.table-actions {
  display: flex;
  gap: 0.5rem;
}

.text-muted {
  color: var(--gray) !important;
  font-style: italic;
}

.empty-state-card {
  text-align: center;
  padding: 4rem 2rem;
}

/* ===============================================
   AUTH STYLES (LOGIN, REGISTER)
   =============================================== */

.auth-container {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.auth-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e9ecef" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.auth-card {
  max-width: 450px;
  margin: 0 auto;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-heavy);
  padding: 3rem;
  position: relative;
  z-index: 1;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo {
  margin-bottom: 1.5rem;
}

.auth-logo .logo {
  max-width: 120px;
  height: auto;
}

.auth-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.auth-header p {
  color: var(--gray);
  font-size: 1rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  pointer-events: none;
}

.input-wrapper .form-control {
  padding-left: 3rem;
}

.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s ease;
}

.password-toggle:hover {
  color: var(--primary);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.forgot-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.forgot-link:hover {
  text-decoration: underline;
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 2rem 0;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--light-gray);
}

.auth-divider span {
  background: white;
  padding: 0 1rem;
  color: var(--gray);
  font-size: 0.9rem;
}

.auth-footer {
  text-align: center;
}

.auth-footer p {
  margin-bottom: 1rem;
  color: var(--gray);
}

.auth-help {
  display: flex;
  justify-content: space-around;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--light-gray);
}

.auth-help .help-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray);
  font-size: 0.8rem;
  text-align: center;
}

.auth-help .help-item i {
  color: var(--primary);
  font-size: 1.2rem;
}

.auth-info {
  padding: 4rem 3rem;
  background: var(--gradient-primary);
  color: white;
  position: relative;
  z-index: 1;
}

.info-header {
  margin-bottom: 3rem;
}

.info-header h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.info-features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.info-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.feature-content h4 {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.feature-content p {
  opacity: 0.9;
  line-height: 1.5;
}

.info-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.info-stats .stat-item {
  text-align: center;
}

.info-stats .stat-item strong {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.info-stats .stat-item span {
  opacity: 0.9;
  font-size: 0.9rem;
}

/* ===============================================
   VALIDATION STATES
   =============================================== */

.form-control.valid {
  border-color: #28a745;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.8-.27-.25-1.4.8-.84v-.84l-.8-.84.25-1.4-.8-.27-1.4.25-.84-.8h-.84l-.84.8-1.4-.25-.27.8.25 1.4-.8.84v.84l.8.84-.25 1.4.27.8 1.4-.25.84.8h.84l.84-.8 1.4.25z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.invalid {
  border-color: #dc3545;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 0 1.4'/%3e%3cpath d='m5.8 8.2 0 0.07'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* ===============================================
   LOGO ET ÉLÉMENTS DIVERS
   =============================================== */

.logo {
  height: auto;
  max-width: 100%;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.error-container {
  text-align: center;
  max-width: 600px;
  margin: 4rem auto;
  padding: 2rem;
}

/* ===============================================
   ANIMATIONS
   =============================================== */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { 
    transform: translateX(100%); 
    opacity: 0; 
  }
  to { 
    transform: translateX(0); 
    opacity: 1; 
  }
}

@keyframes slideOut {
  from { 
    transform: translateX(0); 
    opacity: 1; 
  }
  to { 
    transform: translateX(100%); 
    opacity: 0; 
  }
}

.animated {
  animation: fadeIn 0.6s ease forwards;
}

.slide-in {
  animation: slideIn 0.3s ease forwards;
}

.slide-out {
  animation: slideOut 0.3s ease forwards;
}

/* ===============================================
   RESPONSIVE DESIGN POUR PAGE D'ACCUEIL
   =============================================== */

@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-visual {
    height: 300px;
  }
  
  .floating-card {
    position: relative;
    top: auto !important;
    right: auto !important;
    margin-bottom: 1rem;
    min-width: auto;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-card.featured {
    transform: none;
  }
  
  .pricing-note {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .audience-grid {
    grid-template-columns: 1fr;
  }
  
  .security-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  /* Hero Section adaptée pour mobile avec base.html */
  .hero-section-modern {
    min-height: 70vh;
    padding-top: 3rem;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-visual {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-header h2 {
    font-size: 1.75rem;
  }
  
  .shield-container i {
    font-size: 6rem;
  }
  
  .security-badges {
    flex-wrap: wrap;
  }
}

/* ===============================================
   RESPONSIVE DESIGN GÉNÉRAL
   =============================================== */

@media (max-width: 1024px) {
  .nav-container {
    padding: 0 1.5rem;
  }
  
  .container {
    padding: 0 1.5rem;
  }

  .dashboard-container {
    padding: 1.5rem;
  }
  
  .auth-container {
    grid-template-columns: 1fr;
  }
  
  .auth-info {
    order: -1;
    padding: 2rem;
  }
  
  .info-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 1.5rem;
  }
  
  .features {
    grid-template-columns: 1fr;
  }
  
  .registration-steps {
    flex-wrap: wrap;
  }

  .nav-menu {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-container {
    padding: 0 1rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .flash-messages {
    left: 10px;
    right: 10px;
    max-width: none;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .dashboard-container {
    padding: 1rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
  
  .method-selection {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .method-divider {
    order: 2;
    transform: rotate(90deg);
  }
  
  .page-header {
    margin-bottom: 1.5rem;
  }
  
  .header-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .header-actions {
    justify-content: stretch;
  }
  
  .header-actions .button {
    flex: 1;
    justify-content: center;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .details-grid {
    grid-template-columns: 1fr;
  }
  
  .employee-summary {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .summary-actions {
    width: 100%;
  }
  
  .summary-actions .button {
    width: 100%;
    justify-content: center;
  }
  
  .employees-grid {
    grid-template-columns: 1fr;
  }
  
  .employees-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .filters-content {
    gap: 1rem;
  }
  
  .filter-options {
    flex-direction: column;
    align-items: stretch;
  }
  
  .method-options {
    grid-template-columns: 1fr;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .quick-actions-grid {
    grid-template-columns: 1fr;
  }
  
  .auth-card {
    margin: 1rem;
    padding: 2rem;
  }
  
  .auth-help {
    flex-direction: column;
    gap: 1rem;
  }
  
  .info-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .employees-table-container {
    margin: 0 -1rem;
  }
  
  .employees-table {
    font-size: 0.9rem;
  }
  
  .employees-table th,
  .employees-table td {
    padding: 0.75rem 0.5rem;
  }
  
  .employee-mini {
    gap: 0.5rem;
  }
  
  .mini-avatar {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .breadcrumb {
    padding: 1rem 0;
    font-size: 0.8rem;
  }
  
  .flash-message {
    padding: 0.75rem 1rem;
  }
  
  .flash-text {
    font-size: 0.9rem;
  }
  
  .dashboard-container {
    padding: 1rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .stat-card {
    padding: 1.5rem;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .stat-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .header-text h1 {
    font-size: 1.75rem;
  }
  
  .method-label {
    padding: 1.5rem;
  }
  
  .method-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .upload-zone {
    padding: 2rem 1rem;
  }
  
  .upload-icon {
    font-size: 2rem;
  }
  
  .form-section {
    padding: 1.5rem;
  }
  
  .auth-card {
    padding: 1.5rem;
  }
  
  .auth-header h2 {
    font-size: 1.5rem;
  }
  
  .info-header h3 {
    font-size: 1.5rem;
  }
  
  .info-features {
    gap: 1.5rem;
  }
  
  .feature-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* ===============================================
   PRINT STYLES
   =============================================== */

@media print {
  .navbar,
  .flash-messages,
  .main-footer,
  .mobile-menu,
  .hero-section,
  .cta-section {
    display: none;
  }
  
  .main-content {
    margin-top: 0;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}/* ===============================================
   YAHR - Fichier CSS complet
   Version : 2.0 - Décembre 2025
   =============================================== */

/* RESET ET VARIABLES */
:root {
  --primary: #4361ee;
  --primary-light: #4895ef;
  --primary-dark: #3f37c9;
  --secondary: #3a0ca3;
  --light: #f8f9fa;
  --dark: #212529;
  --success: #4cc9f0;
  --warning: #f72585;
  --gray: #6c757d;
  --light-gray: #e9ecef;
  
  /* Nouvelles variables pour la page d'accueil */
  --gradient-primary: linear-gradient(135deg, #4361ee, #3f37c9);
  --gradient-text: linear-gradient(135deg, #4361ee, #7209b7);
  --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 20px 40px rgba(67, 97, 238, 0.15);
  --border-radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* TYPOGRAPHIE MODERNE */
body {
  font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
  background-color: #f5f7fa;
  color: var(--dark);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
}

/* Texte dégradé */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* STRUCTURE PRINCIPALE */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* ===============================================
   STYLES POUR LA NOUVELLE PAGE D'ACCUEIL
   =============================================== */

/* HERO SECTION */
.hero-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e9ecef" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(67, 97, 238, 0.1);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 2rem;
  border: 1px solid rgba(67, 97, 238, 0.2);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  font-size: 1rem;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-heavy);
  color: white;
  text-decoration: none;
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-primary.large, .btn-secondary.large {
  padding: 1.25rem 2.5rem;
  font-size: 1.1rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat-item span {
  font-size: 0.9rem;
  color: var(--gray);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 500px;
}

.floating-card {
  position: absolute;
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: float 6s ease-in-out infinite;
  min-width: 250px;
}

.floating-card i {
  font-size: 1.5rem;
  color: var(--primary);
}

.floating-card span {
  font-weight: 500;
  color: var(--dark);
}

.card-1 {
  top: 10%;
  right: 20%;
  animation-delay: 0s;
}

.card-2 {
  top: 40%;
  right: 0%;
  animation-delay: 2s;
}

.card-3 {
  top: 70%;
  right: 30%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* SECTIONS COMMUNES */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

/* FEATURES SECTION */
.features-section {
  padding: 6rem 0;
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  border: 1px solid #f1f3f4;
  transition: var(--transition);
  position: relative;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: var(--primary);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon i {
  font-size: 1.5rem;
  color: white;
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark);
}

.feature-card p {
  color: var(--gray);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--gray);
}

.feature-list i {
  color: #28a745;
  font-size: 0.8rem;
}

/* PRICING SECTION */
.pricing-section {
  padding: 6rem 0;
  background: #f8f9fa;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.pricing-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 2.5rem;
  border: 2px solid #f1f3f4;
  transition: var(--transition);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary);
  transform: scale(1.05);
  box-shadow: var(--shadow-heavy);
}

.popular-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

.pricing-header {
  text-align: center;
  margin-bottom: 2rem;
}

.pricing-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark);
}

.price {
  margin-bottom: 0.5rem;
}

.amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.period {
  font-size: 1rem;
  color: var(--gray);
}

.pricing-header p {
  color: var(--gray);
  font-size: 0.9rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--gray);
}

.pricing-features i {
  color: #28a745;
  font-size: 0.8rem;
}

.pricing-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  background: var(--gradient-primary);
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
}

.pricing-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  color: white;
  text-decoration: none;
}

.pricing-note {
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 2rem;
  color: var(--gray);
  font-size: 0.9rem;
}

.pricing-note p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-note i {
  color: #28a745;
}

/* AUDIENCE SECTION */
.audience-section {
  padding: 6rem 0;
  background: white;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.audience-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  border: 1px solid #f1f3f4;
  transition: var(--transition);
  text-align: center;
}

.audience-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: var(--primary);
}

.audience-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.audience-icon i {
  font-size: 2rem;
  color: white;
}

.audience-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark);
}

.audience-card p {
  color: var(--gray);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.audience-benefits {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.audience-benefits span {
  font-size: 0.9rem;
  color: var(--gray);
}

/* SECURITY SECTION */
.security-section {
  padding: 6rem 0;
  background: #f8f9fa;
}

.security-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.security-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.security-text p {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.security-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.security-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.security-item i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-top: 0.25rem;
}

.security-item h4 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.security-item p {
  color: var(--gray);
  font-size: 0.9rem;
}

.security-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.shield-container {
  position: relative;
  text-align: center;
}

.shield-container i {
  font-size: 8rem;
  color: var(--primary);
  margin-bottom: 2rem;
}

.security-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.badge {
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* CTA SECTION */
.cta-section {
  padding: 6rem 0;
  background: var(--gradient-primary);
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cta-buttons .btn-primary {
  background: white;
  color: var(--primary);
}

.cta-buttons .btn-primary:hover {
  background: #f8f9fa;
  color: var(--primary);
}

.cta-buttons .btn-secondary {
  background: transparent;
  color: white;
  border-color: white;
}

.cta-buttons .btn-secondary:hover {
  background: white;
  color: var(--primary);
}

.cta-note {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ===============================================
   STYLES POUR LA PAGE D'ACCUEIL AVEC BASE.HTML
   =============================================== */

/* Hero Section adaptée pour base.html */
.hero-section-modern {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-top: -3rem; /* Compense le margin du header de base.html */
  padding-top: 5rem;
}

.hero-section-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e9ecef" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

/* Ajustement pour les sections qui suivent */
.features-section {
  margin-top: 0;
}

/* Styles pour les icônes Font Awesome */
.fas, .fab {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands";
  font-weight: 900;
}

.fab {
  font-weight: 400;
}

/* ===============================================
   NAVIGATION MODERNE
   =============================================== */

.navbar {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 70px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  height: 40px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-link:hover, 
.nav-link.active {
  background: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  min-width: 280px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  border-radius: 12px;
  padding: 0;
  margin-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.nav-dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--light-gray);
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.05), rgba(58, 12, 163, 0.05));
}

.user-name {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.company-name {
  font-size: 0.85rem;
  color: var(--gray);
}

.dropdown-divider {
  height: 1px;
  background: var(--light-gray);
  margin: 0.5rem 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: var(--dark);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background-color: var(--light);
}

.dropdown-item.logout:hover {
  background-color: rgba(247, 37, 133, 0.1);
  color: var(--warning);
}

/* Menu mobile */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100vh;
  background: white;
  z-index: 1001;
  transition: left 0.3s ease;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.mobile-menu.open {
  left: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--light-gray);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.mobile-logo {
  height: 35px;
}

.mobile-close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu-content {
  padding: 1rem 0;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  color: var(--dark);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.mobile-nav-link:hover {
  background-color: var(--light);
}

.mobile-nav-link.logout:hover {
  background-color: rgba(247, 37, 133, 0.1);
  color: var(--warning);
}

.mobile-menu-divider {
  height: 1px;
  background: var(--light-gray);
  margin: 1rem 0;
}

.mobile-user-info {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--light-gray);
}

.mobile-user-info .user-name {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.mobile-user-info .company-name {
  font-size: 0.85rem;
  color: var(--gray);
}

/* ===============================================
   CONTENU PRINCIPAL
   =============================================== */

.main-content {
  margin-top: 70px;
  min-height: calc(100vh - 70px);
  padding-bottom: 60px;
}

/* Breadcrumb */
.breadcrumb {
  padding: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--gray);
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  margin: 0 0.5rem;
  color: var(--light-gray);
}

.breadcrumb-current {
  color: var(--dark);
  font-weight: 500;
}

/* ===============================================
   MESSAGES FLASH
   =============================================== */

.flash-messages {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 999;
  max-width: 400px;
}

.flash-message {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-left: 4px solid;
  background: white;
}

.flash-message.success {
  border-left-color: #28a745;
}

.flash-message.error,
.flash-message.danger {
  border-left-color: #dc3545;
}

.flash-message.warning {
  border-left-color: #ffc107;
}

.flash-message.info {
  border-left-color: #17a2b8;
}

.flash-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.flash-icon {
  font-size: 1.25rem;
}

.flash-message.success .flash-icon {
  color: #28a745;
}

.flash-message.error .flash-icon,
.flash-message.danger .flash-icon {
  color: #dc3545;
}

.flash-message.warning .flash-icon {
  color: #ffc107;
}

.flash-message.info .flash-icon {
  color: #17a2b8;
}

.flash-text {
  font-weight: 500;
}

.flash-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  color: var(--gray);
  padding: 0.25rem;
}

.flash-close:hover {
  opacity: 1;
}

/* ===============================================
   CARTES ET CONTENEURS
   =============================================== */

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--light-gray);
  margin: -2rem -2rem 2rem -2rem;
}

.card-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* ===============================================
   FORMULAIRES
   =============================================== */

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin
}
/* ===============================================
   DASHBOARD MODERNE - STYLES ADDITIONNELS
   À ajouter à la fin de votre fichier CSS existant
   =============================================== */

/* Page dashboard avec background gradient */
.dashboard-page {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: calc(100vh - 70px);
  padding: 2rem;
  margin: -2rem;
  margin-top: 0;
}

.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
}

/* Header moderne du dashboard */
.dashboard-header-modern {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.dashboard-header-modern .header-left h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: var(--dark);
  display: block;
}

.dashboard-header-modern .header-left p {
  color: var(--gray);
  font-size: 1.1rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-stats-pills {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  box-shadow: var(--shadow-light);
  border: 1px solid #f1f3f4;
  transition: var(--transition);
  min-width: 120px;
}

.stat-pill.active {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-medium);
}

.stat-pill:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

.stat-pill .stat-label {
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.stat-pill .stat-bar {
  width: 40px;
  height: 4px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.stat-pill.active .stat-bar {
  background: rgba(255, 255, 255, 0.3);
}

.stat-pill .stat-progress {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.stat-pill.active .stat-progress {
  background: white;
}

.stat-pill .stat-number {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Contrôles modernes du dashboard */
.dashboard-controls-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  background: white;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-light);
}

.dashboard-controls-modern .controls-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.dashboard-controls-modern .filter-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.dashboard-controls-modern .filter-select {
  padding: 0.6rem 1rem;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  background: white;
  font-size: 0.9rem;
  color: var(--dark);
  cursor: pointer;
  transition: var(--transition);
  min-width: 100px;
}

.dashboard-controls-modern .filter-select:hover {
  border-color: var(--primary);
}

.dashboard-controls-modern .search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.dashboard-controls-modern .search-box i {
  position: absolute;
  left: 1rem;
  color: var(--gray);
  z-index: 1;
}

.dashboard-controls-modern .search-input {
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  background: #f8f9fa;
  font-size: 0.9rem;
  width: 220px;
  transition: var(--transition);
}

.dashboard-controls-modern .search-input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.dashboard-controls-modern .controls-right {
  display: flex;
  gap: 0.75rem;
}

.dashboard-controls-modern .action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: white;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  color: var(--dark);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  text-decoration: none;
}

.dashboard-controls-modern .action-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  text-decoration: none;
}

/* Statistiques rapides de l'entreprise */
.company-quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.quick-stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: white;
  padding: 1.75rem;
  border-radius: 16px;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  border: 1px solid #f1f3f4;
}

.quick-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.quick-stat-card .stat-icon {
  width: 52px;
  height: 52px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.quick-stat-card .stat-content {
  flex: 1;
  min-width: 0;
}

.quick-stat-card .stat-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-stat-card .stat-label {
  color: var(--gray);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Conteneur du tableau moderne */
.modern-table-container {
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-light);
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid #f1f3f4;
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
}

.modern-table th {
  background: #f8f9fa;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-weight: 600;
  color: var(--dark);
  font-size: 0.9rem;
  border-bottom: 2px solid #e9ecef;
  position: sticky;
  top: 0;
  z-index: 2;
}

.modern-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f1f3f4;
  font-size: 0.95rem;
  color: var(--dark);
  vertical-align: middle;
}

.modern-table .table-row {
  transition: var(--transition);
}

.modern-table .table-row:hover {
  background: #f8f9fa;
}

.modern-table .table-row.highlighted {
  background: rgba(255, 193, 7, 0.08);
  border-left: 4px solid #ffc107;
}

.modern-table .table-row.selected {
  background: rgba(67, 97, 238, 0.05);
  border-left: 4px solid var(--primary);
}

.modern-table .checkbox-col {
  width: 60px;
}

.modern-table .table-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.modern-table .sortable {
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
}

.modern-table .sortable:hover {
  background: #e9ecef;
}

.modern-table .sortable i {
  margin-right: 0.5rem;
  color: var(--gray);
  font-size: 0.8rem;
}

/* Cellules spécialisées */
.modern-table .employee-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modern-table .employee-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid #f1f3f4;
}

.modern-table .employee-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modern-table .department-tag {
  background: rgba(67, 97, 238, 0.1);
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-block;
}

.modern-table .site-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modern-table .site-flag {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.modern-table .salary-cell {
  font-weight: 600;
  color: var(--dark);
}

.modern-table .lifecycle-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-block;
}

.modern-table .lifecycle-hired {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.modern-table .status-cell {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.modern-table .status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.modern-table .status-invited {
  background: #28a745;
}

.modern-table .position-text {
  color: var(--dark);
  font-weight: 500;
}

.modern-table .date-text {
  color: var(--gray);
}

/* État vide moderne */
.empty-state-modern {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state-modern .empty-icon {
  width: 80px;
  height: 80px;
  background: var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--gray);
  font-size: 2rem;
}

.empty-state-modern h3 {
  margin-bottom: 0.5rem;
  color: var(--dark);
  font-size: 1.3rem;
}

.empty-state-modern p {
  color: var(--gray);
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* Actions en bas - FAB */
.bottom-actions {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
}

.fab-button {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  box-shadow: var(--shadow-heavy);
  transition: var(--transition);
  font-size: 1.2rem;
}

.fab-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px rgba(67, 97, 238, 0.3);
  color: white;
  text-decoration: none;
}

/* ===============================================
   RESPONSIVE POUR DASHBOARD MODERNE
   =============================================== */

@media (max-width: 1200px) {
  .dashboard-page {
    padding: 1.5rem;
    margin: -1.5rem;
    margin-top: 0;
  }
  
  .header-stats-pills {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  .stat-pill {
    min-width: 100px;
    padding: 0.6rem 1rem;
  }
}

@media (max-width: 1024px) {
  .dashboard-header-modern {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }
  
  .dashboard-controls-modern {
    flex-direction: column;
    gap: 1.25rem;
    align-items: stretch;
  }
  
  .dashboard-controls-modern .controls-left {
    flex-direction: column;
    gap: 1rem;
  }
  
  .company-quick-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .dashboard-page {
    padding: 1rem;
    margin: -1rem;
    margin-top: 0;
  }
  
  .dashboard-header-modern .header-left h1 {
    font-size: 2rem;
  }
  
  .header-stats-pills {
    grid-template-columns: 1fr;
    width: 100%;
  }
  
  .stat-pill {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    min-width: auto;
  }
  
  .company-quick-stats {
    grid-template-columns: 1fr;
  }
  
  .modern-table-container {
    overflow-x: auto;
    border-radius: 12px;
  }
  
  .modern-table {
    min-width: 900px;
  }
  
  .modern-table th,
  .modern-table td {
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  .modern-table .employee-cell {
    gap: 0.5rem;
  }
  
  .modern-table .employee-avatar {
    width: 32px;
    height: 32px;
  }
  
  .dashboard-controls-modern .search-input {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .bottom-actions {
    bottom: 1rem;
    right: 1rem;
  }
  
  .fab-button {
    width: 56px;
    height: 56px;
    font-size: 1.1rem;
  }
  
  .dashboard-controls-modern .filter-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .quick-stat-card {
    padding: 1.25rem;
  }
  
  .quick-stat-card .stat-icon {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  .quick-stat-card .stat-value {
    font-size: 1.4rem;
  }
}

/* Styles à ajouter au CSS existant pour gérer les erreurs d'extraction */

.extraction-error {
  background-color: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.error-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  color: #e53e3e;
  font-weight: 600;
}

.error-header i {
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

.error-message {
  color: #744210;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.error-actions {
  display: flex;
  gap: 0.5rem;
}

.no-data {
  text-align: center;
  color: #718096;
  font-style: italic;
  padding: 1rem;
}

/* Amélioration des data-items pour une meilleure lisibilité */
.data-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.data-item:last-child {
  border-bottom: none;
}

.data-label {
  font-weight: 600;
  color: #4a5568;
  flex: 1;
}

.data-value {
  color: #2d3748;
  flex: 2;
  text-align: right;
  word-break: break-word;
}

/* Indicateur de confiance pour l'extraction */
.confidence-indicator {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.confidence-high {
  background-color: #c6f6d5;
  color: #2f855a;
}

.confidence-medium {
  background-color: #fefcbf;
  color: #d69e2e;
}

.confidence-low {
  background-color: #fed7d7;
  color: #e53e3e;
}