/* ==========================================================================
   STYLE SYSTEM - REVUE IVOIRIENNE DE LANGUES ÉTRANGÈRES (NEW RILE)
   Charte Visuelle Institutionnelle basée sur templatemo_header.png
   - Couleur Fond du Menu : Ochre Ambré #d47000
   - Accent Secondaire : Bleu Cyan #0895d6
   ========================================================================== */

:root {
  --color-primary: #d47000;
  --color-primary-dark: #a85400;
  --color-primary-light: #fffbeb;
  --color-cyan: #0895d6;
  --color-cyan-dark: #0073ab;
  --color-accent: #d47000;
  --color-accent-hover: #b85c00;
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-text-main: #1e293b;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-main: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-cyan-dark);
}

/* ==========================================================================
   HEADER & NAVIGATION INSTITUTIONNELLE
   ========================================================================== */

.top-bar {
  background-color: #0f172a;
  color: #cbd5e1;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-info {
  display: flex;
  gap: 20px;
  align-items: center;
}

.top-bar-info span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar-admin a {
  color: #fbbf24;
  font-weight: 600;
}

.top-bar-admin a:hover {
  color: #ffffff;
}

/* En-tête avec Logos des Universités et Titre Pont de Lianes */
.header-banner-wrapper {
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: 18px 0;
}

.header-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.logo-uni {
  max-height: 75px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.logo-uni:hover {
  transform: scale(1.04);
}

.header-banner-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.header-title-box {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none !important;
}

.bridge-img {
  max-height: 80px;
  width: auto;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease;
}

.header-title-box:hover .bridge-img {
  transform: scale(1.02);
}

.header-title-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.header-title-text .main-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: #1e293b;
  letter-spacing: -0.5px;
  line-height: 1.1;
  text-transform: uppercase;
  font-family: Arial, Helvetica, sans-serif;
}

.header-title-text .sub-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: #dc2626;
  letter-spacing: -0.5px;
  line-height: 1.1;
  text-transform: uppercase;
  font-family: Arial, Helvetica, sans-serif;
  margin-top: 3px;
  text-shadow: 0 1px 2px rgba(220, 38, 38, 0.15);
}

/* Navbar principal - COULEUR AMBRÉE OCHRE #d47000 */
.main-navbar {
  background: #d47000;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(212, 112, 0, 0.25);
  border-bottom: 2px solid #b85c00;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  height: 100%;
}

.nav-links li {
  height: 100%;
}

.nav-links li a {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 0 18px;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.98rem;
  transition: all 0.2s ease;
  border-bottom: 4px solid transparent;
}

.nav-links li a i {
  font-size: 1.1rem;
  margin-right: 2px;
  opacity: 0.9;
}

.nav-links li a:hover,
.nav-links li a.active {
  background-color: #b85c00;
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #ffffff;
  cursor: pointer;
  padding: 5px;
}

/* ==========================================================================
   ESPACE ADMINISTRATION - STYLES SPÉCIFIQUES RESPONSIVES
   ========================================================================== */

.admin-top-bar {
  background: #0f172a;
  color: #ffffff;
  padding: 12px 0;
  border-bottom: 3px solid #d47000;
}

.admin-top-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-top-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-top-right {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.admin-navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: 8px 0;
}

.admin-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  color: #334155;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.admin-nav-item:hover {
  background: #f1f5f9;
  color: var(--color-primary);
}

.admin-nav-item.active {
  background: var(--color-primary);
  color: #ffffff;
}

.admin-nav-item.btn-cyan {
  background: var(--color-cyan);
  color: #ffffff;
}

.admin-nav-item.btn-cyan:hover {
  background: var(--color-cyan-dark);
}

/* Header de Page Admin */
.admin-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 25px;
}

.admin-page-header h1 {
  font-size: 1.6rem;
  color: #0f172a;
  font-weight: 800;
  line-height: 1.2;
}

/* Tables de Données Admin - Scroll Horizontal et Min-width */
.admin-table-wrapper {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 25px;
}

.admin-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.admin-table th {
  background: #f1f5f9;
  padding: 14px 18px;
  font-weight: 700;
  color: #334155;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.admin-table tr:hover {
  background: #f8fafc;
}

/* ==========================================================================
   MODAL DE CONFIRMATION DE SUPPRESSION (STYLE DESIGN MODERNE)
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  width: 100%;
  padding: 28px;
  border: 1px solid var(--color-border);
  animation: slideUp 0.25s ease-out;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.modal-icon-warning {
  width: 48px;
  height: 48px;
  background: #fef2f2;
  color: #dc2626;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 6px #fee2e2;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

.modal-body p {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 24px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-secondary {
  background: #e2e8f0;
  color: #334155;
}

.btn-secondary:hover {
  background: #cbd5e1;
}

.btn-danger {
  background: #dc2626;
  color: #ffffff;
}

.btn-danger:hover:not(:disabled) {
  background: #b91c1c;
}

.btn-danger:disabled {
  background: #fca5a5;
  color: #ffffff;
  cursor: not-allowed;
  opacity: 0.65;
}

.modal-steps-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 10px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.modal-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #94a3b8;
}

.modal-step .step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
}

.modal-step.active {
  color: #0f172a;
}

.modal-step.active .step-num {
  background: #d47000;
  color: #ffffff;
  box-shadow: 0 0 0 3px #ffedd5;
}

.modal-step.done {
  color: #16a34a;
}

.modal-step.done .step-num {
  background: #16a34a;
  color: #ffffff;
}

.modal-step-line {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  border-radius: 2px;
  transition: background 0.25s ease;
}

.modal-step-line.active {
  background: #16a34a;
}

.modal-step-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 4px;
}

.modal-step-badge.step-1 {
  background: #ffedd5;
  color: #c2410c;
}

.modal-step-badge.step-2 {
  background: #fee2e2;
  color: #b91c1c;
}

.modal-item-preview {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  word-break: break-word;
}

.modal-confirm-check {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  padding: 12px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
  user-select: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.modal-confirm-check:hover {
  border-color: #dc2626;
  background: #fff5f5;
}

.modal-confirm-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #dc2626;
  cursor: pointer;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ==========================================================================
   LAYOUT GENERAL & LAYOUT CONTAINERS
   ========================================================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.main-content {
  flex: 1;
  padding: 40px 0;
}

/* Hero Banner Section */
.hero-section {
  background: linear-gradient(135deg, #d47000 0%, #0895d6 100%);
  color: #ffffff;
  padding: 60px 50px;
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 10px 0;
}

.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: 1.15rem;
  opacity: 0.95;
  margin-bottom: 30px;
  font-weight: 400;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-cyan);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--color-cyan-dark);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-accent {
  background-color: var(--color-accent);
  color: #ffffff;
}

.btn-accent:hover {
  background-color: var(--color-accent-hover);
  color: #ffffff;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

/* Stats Cards Bar */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--color-surface);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 50px;
  height: 50px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* Grid d'articles et numéros */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 12px;
}

.section-title {
  font-size: 1.4rem;
  color: #0f172a;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 22px;
  background: var(--color-primary);
  border-radius: 3px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.card-badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.card-title {
  font-size: 1.15rem;
  color: #0f172a;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.35;
}

.card-title a {
  color: #0f172a;
}

.card-title a:hover {
  color: var(--color-cyan);
}

.card-subtitle {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.card-footer {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Table des Matières UI */
.toc-container {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-top: 24px;
}

.toc-list {
  list-style: none;
}

.toc-item {
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
  transition: background 0.15s ease;
}

.toc-item:last-child {
  border-bottom: none;
}

.toc-item:hover {
  background-color: #f8fafc;
}

.toc-number {
  font-weight: 800;
  color: var(--color-primary);
  font-size: 1.1rem;
  min-width: 32px;
}

.toc-details {
  flex: 1;
}

.toc-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
  line-height: 1.4;
}

.toc-author {
  font-size: 0.9rem;
  color: var(--color-accent);
  font-weight: 600;
}

.toc-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 4px;
  display: flex;
  gap: 15px;
}

.toc-action {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Comités Tabs */
.tabs-container {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.tabs-nav {
  display: flex;
  background: #f1f5f9;
  border-bottom: 1px solid var(--color-border);
}

.tab-btn {
  flex: 1;
  padding: 16px 20px;
  border: none;
  background: none;
  font-weight: 700;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  font-size: 0.95rem;
}

.tab-btn.active {
  background: var(--color-surface);
  color: var(--color-primary);
  border-bottom: 3px solid var(--color-primary);
}

.tab-content {
  padding: 30px;
  display: none;
}

.tab-content.active {
  display: block;
}

.committee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.committee-member {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border-left: 4px solid var(--color-primary);
}

.member-name {
  font-weight: 700;
  color: #0f172a;
  font-size: 1rem;
}

.member-title {
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 600;
}

.member-affiliation {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* Espace Administration Forms */
.form-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: #334155;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(212, 112, 0, 0.15);
}

/* ==========================================================================
   FOOTER INSTITUTIONNEL
   ========================================================================== */

footer.site-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 50px 0 25px 0;
  margin-top: auto;
  border-top: 4px solid var(--color-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 18px;
  font-weight: 700;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 35px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links li a {
  color: #cbd5e1;
  transition: color 0.2s ease;
}

.footer-links li a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.85rem;
}

/* ==========================================================================
   PAGINATION (PUBLIC & ADMIN)
   ========================================================================== */

.pagination-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 14px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.pagination-wrapper.pagination-top {
  margin-top: 0;
  margin-bottom: 18px;
}

.pagination-wrapper.pagination-bottom {
  margin-top: 20px;
  margin-bottom: 10px;
}

.pagination-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #475569;
}

.pagination-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.pagination-range strong {
  color: #0f172a;
  font-weight: 700;
}

.pagination-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pagination-numbers {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  cursor: pointer;
}

/* Boutons Numéros (1, 2, 3...) */
.page-num-btn {
  min-width: 36px;
  height: 34px;
  padding: 0 10px;
  border-radius: 7px;
  background: transparent;
  color: #334155;
  border: 1px solid transparent;
}

.page-num-btn:hover:not(.active) {
  background: #ffffff;
  color: var(--color-primary);
  border-color: #fed7aa;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.page-num-btn.active {
  background: linear-gradient(135deg, #d47000 0%, #b45309 100%);
  color: #ffffff;
  border-color: #b45309;
  box-shadow: 0 3px 8px rgba(212, 112, 0, 0.35);
  cursor: default;
}

/* Boutons Précédent & Suivant */
.page-nav-btn {
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.page-nav-btn i {
  font-size: 0.8rem;
  color: var(--color-primary);
  transition: transform 0.2s ease;
}

.page-nav-btn:hover:not(.disabled) {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(212, 112, 0, 0.28);
  transform: translateY(-1px);
}

.page-nav-btn:hover:not(.disabled) i {
  color: #ffffff;
}

.page-nav-btn:hover:not(.disabled) .fa-arrow-left {
  transform: translateX(-3px);
}

.page-nav-btn:hover:not(.disabled) .fa-arrow-right {
  transform: translateX(3px);
}

.page-nav-btn.disabled {
  background: #f8fafc;
  color: #94a3b8;
  border-color: #e2e8f0;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.7;
}

.page-nav-btn.disabled i {
  color: #cbd5e1;
}

.page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  color: #64748b;
  font-weight: 800;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (MOBILE & TABLETTE)
   ========================================================================== */

@media (max-width: 768px) {
  .admin-page-header {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .admin-page-header .btn {
    width: 100%;
  }

  .admin-nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
  }

  .admin-top-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-banner {
    flex-direction: column;
    text-align: center;
  }

  .header-title-box {
    flex-direction: column;
    text-align: center;
  }

  .header-title-text {
    text-align: center;
  }
  
  .mobile-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    width: 100%;
    background: #d47000;
    box-shadow: var(--shadow-lg);
    height: auto;
    padding: 10px 0;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li a {
    padding: 12px 20px;
    height: auto;
    border-bottom: none;
    border-left: 4px solid transparent;
  }

  .nav-links li a:hover,
  .nav-links li a.active {
    border-left-color: #ffffff;
    background-color: #b85c00;
  }

  .hero-section {
    padding: 35px 20px;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .tabs-nav {
    flex-direction: column;
  }

  .form-card {
    padding: 20px 15px;
  }
}
