/* ===== VARIABLES CSS ===== */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --secondary: #64748b;
  --secondary-dark: #475569;
  --success: #10b981;
  --success-dark: #059669;
  --warning: #f59e0b;
  --warning-dark: #d97706;
  --danger: #ef4444;
  --danger-dark: #dc2626;
  --dark: #1e293b;
  --dark-light: #334155;
  --light: #f8fafc;
  --lighter: #f1f5f9;
  --border: #e2e8f0;
  --border-dark: #cbd5e1;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

/* ===== RESET ET BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
}

/* ===== HEADER ET NAVIGATION ===== */
.header {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  gap: 2rem;
}

/* Logo Container */
.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.logo-icon {
  font-size: 2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Logo ASPR */
.aspr-logo {
    max-width: 250px; /* Ajuster selon la taille de votre logo */
    margin: 0 auto 1.5rem;
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.aspr-logo-img {
  width: 100%;
  height: auto;

}

.aspr-logo-img:hover {
  transform: scale(1.05);
}

.aspr-logo-text {
  font-weight: 800;
  color: var(--primary-dark);
  font-size: 1.2rem;
  letter-spacing: -0.5px;
}

.aspr-partner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1rem;
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.aspr-partner:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Navigation Links */
.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  color: var(--dark);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  background: transparent;
  border: 2px solid transparent;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--success));
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.nav-link:hover::before {
  width: 80%;
}

.nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
  border-color: var(--primary);
  font-weight: 600;
}

.nav-link.active::before {
  width: 100%;
}

/* ===== BOUTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), #3730a3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--light);
  color: var(--primary);
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
}

.btn-secondary:hover {
  background: var(--lighter);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-success {
  background: linear-gradient(135deg, var(--success), var(--success-dark));
  color: white;
  box-shadow: var(--shadow);
}

.btn-success:hover {
  background: linear-gradient(135deg, var(--success-dark), #047857);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), var(--danger-dark));
  color: white;
  box-shadow: var(--shadow);
}

.btn-danger:hover {
  background: linear-gradient(135deg, var(--danger-dark), #b91c1c);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-warning {
  background: linear-gradient(135deg, var(--warning), var(--warning-dark));
  color: white;
  box-shadow: var(--shadow);
}

.btn-warning:hover {
  background: linear-gradient(135deg, var(--warning-dark), #b45309);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* ===== MAIN CONTENT ===== */
.main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== CARDS ===== */
.card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--success));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.card:hover::before {
  opacity: 1;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-subtitle {
  color: var(--secondary);
  font-size: 1rem;
  margin-top: 0.25rem;
}

/* ===== STATISTIQUES ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--success));
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--success));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--secondary);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== TABLES ===== */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: white;
  margin: 1.5rem 0;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.table th,
.table td {
  padding: 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.table th {
  background: linear-gradient(135deg, var(--primary-light), #e0f2fe);
  font-weight: 700;
  color: var(--dark);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table tbody tr {
  transition: all 0.3s ease;
}

.table tbody tr:hover {
  background: var(--lighter);
  transform: scale(1.01);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* ===== FORMULAIRES ===== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--dark);
  font-size: 1rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
  font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: var(--border-dark);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

/* Checkbox personnalisée */
.form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.form-checkbox:hover {
  color: var(--primary);
}

.form-checkbox input {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background: white;
}

.form-checkbox input:checked + .checkmark {
  background: var(--primary);
  border-color: var(--primary);
}

.form-checkbox input:checked + .checkmark::after {
  content: '✓';
  color: white;
  font-size: 12px;
  font-weight: bold;
}

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid transparent;
}

.badge-pending {
  background: #fef3c7;
  color: #92400e;
  border-color: #f59e0b;
}

.badge-approved {
  background: #d1fae5;
  color: #065f46;
  border-color: #10b981;
}

.badge-rejected {
  background: #fee2e2;
  color: #991b1b;
  border-color: #ef4444;
}

.badge-in_progress {
  background: #dbeafe;
  color: #1e40af;
  border-color: #3b82f6;
}

.badge-resolved {
  background: #dcfce7;
  color: #166534;
  border-color: #22c55e;
}

.badge-high {
  background: #fee2e2;
  color: #991b1b;
  border-color: #ef4444;
}

.badge-medium {
  background: #fef3c7;
  color: #92400e;
  border-color: #f59e0b;
}

.badge-low {
  background: #d1fae5;
  color: #065f46;
  border-color: #10b981;
}

.badge-critical {
  background: #fecaca;
  color: #7f1d1d;
  border-color: #dc2626;
}

/* ===== SELECTEUR DE LANGUE ===== */
.language-selector {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  background: var(--light);
  padding: 0.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.lang-btn {
  background: none;
  border: 2px solid transparent;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  color: var(--secondary);
}

.lang-btn:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.lang-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

/* ===== ACTIONS RAPIDES ===== */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.action-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--success));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.action-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.action-card:hover::before {
  transform: scaleX(1);
}

.action-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
}

.action-card:hover .action-icon {
  transform: scale(1.1) rotate(5deg);
}

.action-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}

.action-card p {
  color: var(--secondary);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

/* ===== ÉTAPES DE FORMULAIRE ===== */
.form-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
  position: relative;
  padding: 0 1rem;
}

.form-steps::before {
  content: '';
  position: absolute;
  top: 25px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border);
  z-index: 1;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 1;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--border);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  border: 3px solid white;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.step.active .step-number {
  background: linear-gradient(135deg, var(--primary), var(--success));
  color: white;
  transform: scale(1.1);
}

.step-label {
  font-size: 0.9rem;
  text-align: center;
  font-weight: 600;
  color: var(--secondary);
  transition: all 0.3s ease;
}

.step.active .step-label {
  color: var(--primary);
  font-weight: 700;
}

.form-section {
  display: none;
  animation: slideIn 0.4s ease;
}

.form-section.active {
  display: block;
}

@keyframes slideIn {
  from { 
    opacity: 0;
    transform: translateY(20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}

/* ===== EN-TÊTE ASPR ===== */
.aspr-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 3rem 2rem;
  border-radius: var(--radius-xl);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.aspr-header::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" opacity="0.1"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="white" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.aspr-logo {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-xl);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 2;
}

.aspr-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.aspr-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 0.3rem;
}

.aspr-slogan {
  font-size: 0.9rem;
  opacity: 0.8;
  font-style: italic;
  margin-top: 0.5rem;
}

/* ===== ACADEMIE DE SECURITE ===== */
.academy-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  border-radius: var(--radius-xl);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.academy-hero::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" opacity="0.1"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="white" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.aspr-logo {
  max-width: 200px;
  margin: 0 auto 1.5rem;
  background: rgba(255,255,255,0.1);
  padding: 1rem;
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.aspr-logo img {
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.category-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid var(--primary);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.category-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.article-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.article-card:hover {
  transform: translateY(-3px);
}

.article-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(45deg, #f0f9ff, #e0f2fe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.article-content {
  padding: 1.5rem;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--secondary);
}

.difficulty {
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.difficulty-beginner { background: #d1fae5; color: #065f46; }
.difficulty-intermediate { background: #fef3c7; color: #92400e; }
.difficulty-advanced { background: #fee2e2; color: #991b1b; }

.search-section {
  background: var(--light);
  padding: 2rem;
  border-radius: var(--radius-xl);
  margin: 2rem 0;
}

.progress-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  border-radius: var(--radius-xl);
  margin: 3rem 0;
  text-align: center;
}

.module-count {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

/* ===== LOGIN PAGE ===== */
.login-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
  color: white;
  padding: 2rem;
  text-align: center;
  border-radius: var(--radius-xl);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.login-hero::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" opacity="0.1"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="white" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.aspr-logo-content {
  text-align: center;
  color: white;
  font-weight: bold;
  position: relative;
  z-index: 2;
}

.aspr-logo-title {
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
  line-height: 1.2;
}

.aspr-logo-subtitle {
  font-size: 0.7rem;
  opacity: 0.9;
  margin-bottom: 0.3rem;
}

.aspr-logo-slogan {
  font-size: 0.65rem;
  opacity: 0.8;
  font-style: italic;
}

.visitor-access {
  text-align: center;
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--light);
  border-radius: var(--radius);
}

.partner-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* ===== MESSAGES ET NOTIFICATIONS ===== */
.message-temp {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-lg);
  color: white;
  font-weight: 600;
  z-index: 10000;
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 400px;
  animation: slideInRight 0.3s ease;
}

.message-success {
  background: linear-gradient(135deg, var(--success), var(--success-dark));
}

.message-error {
  background: linear-gradient(135deg, var(--danger), var(--danger-dark));
}

.message-info {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.message-warning {
  background: linear-gradient(135deg, var(--warning), var(--warning-dark));
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* ===== STYLES POUR LE DASHBOARD (AJOUTÉS) ===== */

/* Styles pour le menu admin dans le sidebar du dashboard */
.sidebar-admin-section {
  margin-top: 15px;
  padding: 0 10px;
  animation: fadeIn 0.5s ease;
}

.sidebar-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-divider {
  margin: 15px 0;
  border-color: rgba(255, 255, 255, 0.2);
  border-width: 1px;
}

.sidebar-submenu {
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  margin-left: 10px;
  margin-top: 5px;
  padding-left: 5px;
}

.sidebar-submenu .sidebar-link {
  padding: 8px 15px;
  font-size: 0.9rem;
  margin: 2px 0;
  opacity: 0.9;
  border-left: 2px solid transparent;
  transition: all 0.3s ease;
}

.sidebar-submenu .sidebar-link:hover {
  opacity: 1;
  border-left-color: var(--warning);
  background: rgba(255, 255, 255, 0.05);
}

/* Animation pour l'apparition du menu admin */
@keyframes slideInAdmin {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sidebar-admin-section {
  animation: slideInAdmin 0.3s ease;
}

/* Badge admin pour les utilisateurs administrateurs */
.badge-admin {
  background: linear-gradient(135deg, var(--warning), var(--warning-dark));
  color: white;
  border-color: var(--warning);
}

.badge-agent {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-color: var(--primary);
}

.badge-user {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: white;
  border-color: var(--secondary);
}

/* Icônes pour le menu admin */
.fa-crown {
  color: var(--warning);
}

.fa-calendar-check {
  color: #3b82f6;
}

.fa-newspaper {
  color: #10b981;
}

.fa-images {
  color: #8b5cf6;
}

.fa-plus {
  color: #06b6d4;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .nav {
    padding: 1rem;
    gap: 1rem;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-links {
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .nav-link {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
  
  .main {
    padding: 0 1rem;
    margin: 1rem auto;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .quick-actions-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .hero {
    padding: 2rem 1rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .form-steps {
    flex-direction: column;
    gap: 1rem;
  }
  
  .form-steps::before {
    display: none;
  }
  
  .step {
    flex-direction: row;
    gap: 1rem;
    text-align: left;
  }
  
  .aspr-partner {
    display: none;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
  }
  
  /* Ajustements pour le menu admin sur mobile */
  .sidebar-admin-section {
    padding: 0 5px;
  }
  
  .sidebar-title {
    font-size: 0.8rem;
    padding: 6px 10px;
  }
  
  .sidebar-submenu {
    margin-left: 5px;
  }
}

@media (max-width: 480px) {
  .nav-links {
    flex-direction: column;
    width: 100%;
  }
  
  .nav-link {
    width: 100%;
    justify-content: center;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .form-navigation {
    flex-direction: column;
  }
  
  .form-navigation .btn {
    width: 100%;
  }
  
  /* Ajustements pour le menu admin sur très petits écrans */
  .sidebar-submenu .sidebar-link {
    padding: 6px 10px;
    font-size: 0.85rem;
  }
}

/* ===== ANIMATIONS SUPPLEMENTAIRES ===== */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0,0,0);
  }
  40%, 43% {
    transform: translate3d(0,-8px,0);
  }
  70% {
    transform: translate3d(0,-4px,0);
  }
  90% {
    transform: translate3d(0,-2px,0);
  }
}

.bounce {
  animation: bounce 1s ease infinite;
}

/* ===== UTILITAIRES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.hidden { display: none; }
.flex { display: flex; }
.grid { display: grid; }
.block { display: block; }
.inline-block { display: inline-block; }

.w-full { width: 100%; }
.h-full { height: 100%; }

/* ===== ACCESSIBILITÉ ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus visible pour l'accessibilité */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* Mode sombre (préparation) */
@media (prefers-color-scheme: dark) {
  :root {
    --dark: #f8fafc;
    --light: #1e293b;
    --lighter: #334155;
    --border: #475569;
  }
}








