/* Variables CSS pour le thème pastel coloré */
:root {
  --primary-color: #228AFF; /* Bleu principal */
  --secondary-color: #DCEEFF; /* Bleu clair (fond de zone de drop) */
  --accent-color: #1666D8; /* Bleu plus foncé pour les liens, texte actif */
  --success-color: #A3C9F9; /* Vert de validation */
  --info-color: #A3C9F9; /* Bleu doux pour info, ajusté */
  --warning-color: #FFD93D; /* Jaune pour les avertissements */
  --error-color: #FF6B6B; /* Rouge clair pour les erreurs */
  --purple-color: #EAF4FF; /* Bleu très pâle, utilisé comme fond secondaire */
  --pink-color: #FAEDCD; /* Conserve un ton pastel doux */
  --text-dark: #1F1F1F; /* Texte principal */
  --text-light: #B0B8C4; /* Texte secondaire, descriptions */
  --background: #F2F8FF; /* Fond global très clair */
  --white: #FFFFFF; /* Blanc pur */
  --border-color: #E0E0E0; /* Bordures neutres */
  --shadow: 0 2px 15px rgba(136, 204, 241, 0.1); /* Ombre douce */
  --shadow-hover: 0 8px 25px rgba(136, 204, 241, 0.2); /* Ombre en survol */
  --border-radius: 20px; /* Bords arrondis comme dans la maquette */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background );
  min-height: 100vh;
}

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

/* Header */
.header {
  background: var(--F9FBFF);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  color : var(--text-dark);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
    position: relative;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-dark);
}

.logo i {
  margin-right: 0.5rem;
  font-size: 2rem;
  color: var(--warning-color);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  color: var(--text-dark);
  border-radius: var(--border-radius);
  transition: var(--transition);
  font-weight: 500;
  backdrop-filter: blur(10px);
  border: 2px solid transparent;
}

.nav-link i {
  margin-right: 0.5rem;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--accent-color);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--white);
  font-weight: 500;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--warning-color), var(--pink-color));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--white);
}

/* Main content */
.main-content {
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--purple-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header h1 i {
  color: var(--accent-color);
  margin-right: 0.5rem;
  -webkit-text-fill-color: var(--accent-color);
}

.page-header p {
  font-size: 1.1rem;
  color: var(--text-light);
}

.welcome-section {
  text-align: center;
  margin-bottom: 3rem;
}

.welcome-section h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--purple-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-section h1 i {
  color: var(--info-color);
  margin-right: 0.5rem;
  -webkit-text-fill-color: var(--info-color);
}
.upload-notice {
  background: linear-gradient(
    135deg,
    rgba(163, 201, 249, 0.15),
    rgba(226, 240, 255, 0.15)
  );
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-top: 1rem;
  border-left: 4px solid var(--accent-color);
  color: var(--text-dark);
}

.upload-notice a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.upload-notice a:hover {
  text-decoration: underline;
}

/* Login Form */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

.login-form {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-hover);
  width: 100%;
  max-width: 400px;
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.login-form::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: var(--border-radius);
  z-index: -1;
}

.login-form h2 {
  text-align: center;
  margin-bottom: 2rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--purple-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 154, 158, 0.1);
}
/* Statistiques */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  display: flex; 
  align-items: center;
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}


.stat-card::before {
  content: none;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-color);
}
.stat-icon {
  width: 70px;
  height: 70px;
  min-width: 70px;
  min-height: 70px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  font-size: 1.8rem;
  flex-shrink: 0; 
  overflow: hidden;
}


.stat-content h3 {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.stat-content p {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  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;
}

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

.btn i {
  margin-right: 0.5rem;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-3px);
  /* box-shadow: 0 6px 20px rgba(255, 154, 158, 0.4); */
}

.btn-secondary {
  background: var(--success-color);
  color: var(--white);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  /* box-shadow: 0 6px 20px rgba(168, 230, 207, 0.4); */
}

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

.btn-accent:hover {
  transform: translateY(-3px);
  /* box-shadow: 0 6px 20px rgba(255, 217, 61, 0.4); */
}
.btn-danger {
  background-color: var(--error-color); /* Rouge doux : #FF6B6B */
  color: var(--white);
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.btn-danger:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(255, 107, 107, 0.3);
}


.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn-primary i {
  color: white !important;
}

/* Actions rapides */
.quick-actions {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 3rem;
}

.quick-actions h2 {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.quick-actions h2 i {
  color: var(--info-color);
  margin-right: 0.5rem;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
/* Upload */
.upload-section {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  border: 2px solid transparent;
  transition: var(--transition);
}

.upload-section:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-color);
}

.upload-area {
  border: 2px dashed var(--accent-color); /* plus doux */
  border-radius: var(--border-radius);
  padding: 3rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  background: var(--background); /* remplace le dégradé trop coloré */
}

.upload-area:hover,
.upload-area.dragover {
  border-color: var(--primary-color);
  background: #EAF4FF; /* plus visible mais harmonieux */
  transform: scale(1.02);
}

.upload-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.upload-area h3 {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.upload-area p {
  color: var(--text-light);
}

.upload-area input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}


/* Aperçu des fichiers */
.file-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.file-preview-item {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.file-preview-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.file-preview-content {
  position: relative;
  height: 150px;
  overflow: hidden;
}

.file-preview-content img,
.file-preview-content video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-preview-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--accent-color)
  );
  color: var(--text-dark);
  font-size: 2rem;
}

.file-preview-info {
  padding: 1rem;
}

.file-preview-name {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-preview-size {
  color: var(--text-light);
  font-size: 0.8rem;
}

.file-preview-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--error-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
}

.file-preview-item:hover .file-preview-remove {
  opacity: 1;
}

.file-preview-remove:hover {
  background: #d63031;
  transform: scale(1.1);
}

.file-list {
  margin: 2rem 0;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--border-radius);
  margin-bottom: 0.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent-color);
}

.file-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.file-info i {
  font-size: 1rem;
  /* color: var(--accent-color);  */
  flex-shrink: 0; 
}


.file-name {
  font-weight: 500;
}

.file-size {
  color: var(--text-light);
  font-size: 0.875rem;
}

.btn-remove {
  background: var(--error-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-remove:hover {
  background: #d63031;
  transform: scale(1.1);
}

.upload-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}.upload-info {
  background: linear-gradient(
    135deg,
    rgba(163, 201, 249, 0.15),
    rgba(226, 240, 255, 0.15)
  );
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--accent-color);
}

.upload-info h3 {
  margin-bottom: 1rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
}

.upload-info h3 i {
  color: var(--accent-color);
  margin-right: 0.5rem;
}

.upload-info ul {
  list-style: none;
  padding-left: 0;
}

.upload-info li {
  padding: 0.25rem 0;
  color: var(--text-light);
  display: flex;
  align-items: center;
}

.upload-info li::before {
  content: "✓";
  color: var(--accent-color);
  margin-right: 0.5rem;
  font-weight: bold;
  font-size: 1rem;
}


/* Albums */
.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}
.album-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 2px solid transparent;
}

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

.album-preview {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.album-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--accent-color)
  );
  color: var(--text-dark);
  font-size: 3rem;
}

.album-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(34, 138, 255, 0.1); 
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.album-preview:hover .album-overlay {
  opacity: 1;
}

.album-info {
  padding: 1.5rem;
}

.album-info h3 {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.album-meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-light);
  font-size: 0.875rem;
}

.album-meta span {
  display: flex;
  align-items: center;
}

.album-meta i {
  margin-right: 0.25rem;
}

/* Fichiers */
/* Fichiers */
.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.file-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 2px solid transparent;
}

.file-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-color);
}

.file-preview {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.file-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.file-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary-color);
  color: var(--accent-color);
  font-size: 3rem;
}

.file-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
}

.file-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.file-info {
  padding: 1rem;
}

.file-info h4 {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-light);
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.file-actions {
  display: flex;
  gap: 0.5rem;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--border-radius);
}

.lightbox-caption {
  text-align: center;
  color: var(--white);
  margin-top: 1rem;
  font-size: 1.1rem;
}

/* Activités récentes */
.recent-activities {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--info-color);
}

.recent-activities h2 {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.recent-activities h2 i {
  color: var(--info-color);
  margin-right: 0.5rem;
}

.activity-list {
  max-height: 400px;
  overflow-y: auto;
}

.activity-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
  border-radius: var(--border-radius);
  margin-bottom: 0.5rem;
}

.activity-item:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 154, 158, 0.05),
    rgba(168, 230, 207, 0.05)
  );
}

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

.activity-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: var(--white);
}

.activity-content h4 {
  margin-bottom: 0.25rem;
  color: var(--text-dark);
}

.activity-content p {
  color: var(--text-light);
  font-size: 0.875rem;
}

.no-activity {
  text-align: center;
  padding: 2rem;
  color: var(--text-light);
}

.no-activity i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* Administration */
.admin-section {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  border-top: 4px solid var(--warning-color);
}

.admin-section h2 {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.admin-section h2 i {
  color: var(--warning-color);
  margin-right: 0.5rem;
}

.admin-table {
  overflow-x: auto;
}

.admin-table table {
  width: 100%;
  border-collapse: collapse;
}

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

.admin-table th {
  background: linear-gradient(
    135deg,
    rgba(255, 217, 61, 0.1),
    rgba(255, 154, 158, 0.1)
  );
  font-weight: 600;
  color: var(--text-dark);
}

.admin-input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  transition: var(--transition);
}

.admin-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 154, 158, 0.1);
}

.inline-form {
  margin: 0;
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
}

/* Alertes */
.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  border-left: 4px solid;
}

.alert i {
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

.alert-success {
  background: linear-gradient(
    135deg,
    rgba(163, 201, 249, 0.15),
    rgba(226, 240, 255, 0.15)
  );
  color: var(--accent-color);
  border-left: 4px solid var(--accent-color);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  font-size: 0.95rem;
}

.alert-warning {
  background: linear-gradient(
    135deg,
    rgba(255, 217, 61, 0.1),
    rgba(255, 167, 38, 0.1)
  );
  color: #b7791f;
  border-left-color: var(--warning-color);
}

.alert-error {
  background: linear-gradient(
    135deg,
    rgba(255, 107, 107, 0.1),
    rgba(255, 82, 82, 0.1)
  );
  color: var(--error-color);
  border-left-color: var(--error-color);
}

/* États vides */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-light);
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.empty-state h3 {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

/* Breadcrumb */
.breadcrumb {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 0.5rem;
}
/* Footer */
.footer {
  background-color: #F2F8FF; 
  color: var(--text-dark);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
  border-top: 1px solid var(--border-color);
}

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

.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--accent-color);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}

.footer-section h4 i {
  margin-right: 0.5rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  padding: 0.25rem 0;
  color: var(--text-light);
  font-size: 0.95rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-light);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
  
  .container {
    padding: 0 15px;
  }

 

  .nav {
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .action-buttons {
    flex-direction: column;
  }

  .albums-grid,
  .files-grid {
    grid-template-columns: 1fr;
  }

  .file-preview-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .file-meta {
    flex-direction: column;
    gap: 0.25rem;
  }

  .admin-table {
    font-size: 0.875rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 0.5rem;
  }

  .burger {
  display: block;
}

.nav {
  display: none;
  flex-direction: column;
  width: 100%;
  margin-top: 1rem;
  gap: 0.5rem;
}

.nav.show {
  display: flex;
}

.nav-link {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

}

@media (max-width: 480px) {
  .page-header h1 {
    font-size: 2rem;
  }
.nav-link {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
}
  .welcome-section h1 {
    font-size: 2rem;
  }

  .upload-area {
    padding: 2rem 1rem;
  }

  .upload-icon {
    font-size: 2rem;
  }

  .file-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .file-actions {
    width: 100%;
    justify-content: center;
  }

  .file-preview-grid {
    grid-template-columns: 1fr;
  }
}

.event-title {
  color: #000 !important; /* Noir */
  background: none !important;
  -webkit-text-fill-color: initial !important;
  background-clip: initial !important;
}

.album-title-black {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: black !important;
  color: black !important;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    margin-top: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.stats-table thead {
    background-color: #f5f7fa;
}

.stats-table thead th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #ddd;
}

.stats-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.stats-table tbody tr:hover {
    background-color: #eef3f7;
}

.stats-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    color: #444;
}

/* Activités récentes */
.recent-activities {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: var(--transition);
}

.recent-activities:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-color);
}

.recent-activities h2 {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  font-size: 1.25rem;
}

.recent-activities h2 i {
  color: var(--accent-color);
  margin-right: 0.5rem;
}

.activity-list {
  max-height: 400px;
  overflow-y: auto;
}

.activity-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
  border-radius: var(--border-radius);
  margin-bottom: 0.5rem;
}

.activity-item:hover {
  background: linear-gradient(
    135deg,
    rgba(173, 216, 255, 0.15),
    rgba(226, 240, 255, 0.15)
  );
}

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

.activity-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: var(--white);
}

.activity-content h4 {
  margin-bottom: 0.25rem;
  color: var(--text-dark);
}

.activity-content p {
  color: var(--text-light);
  font-size: 0.875rem;
}

.no-activity {
  text-align: center;
  padding: 2rem;
  color: var(--text-light);
}

.no-activity i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}


.file-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.file-info i {
  font-size: 1rem;
  /* color: var(--accent-color); */
  flex-shrink: 0;
}

.file-name {
  font-weight: 500;
  font-size: 0.95rem;
}

.file-size {
  color: var(--text-light);
  font-size: 0.75rem;
}


.burger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--accent-color);
}


@media (min-width: 769px) {
  .burger {
    display: none;
  }

  .nav {
    display: flex !important;
    flex-direction: row;
    gap: 1rem;
    margin-top: 0;
  }
}

/* Burger menu (visible en mobile seulement) */
.burger-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--accent-color);
}

@media (max-width: 768px) {
  .burger-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 1.2rem;
    z-index: 1001;
  }

  .nav {
    display: none;
    flex-direction: column;
    background: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius);
    position: absolute;
    right: 20px;
    top: 60px;
    box-shadow: var(--shadow);
    width: calc(100% - 40px);
  }

  .nav.show {
    display: flex;
  }

  .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--white);
  }

  .header-content {
    position: relative;
  }
}
.logo {
  display: flex;

  align-items: center;
  gap: 0.5rem;
}

/* Cacher le texte "ABC Distribution" sur mobile */
@media (max-width: 768px) {
  .logo span {
    display: none;
  }
}
@media (max-width: 768px) {
  .logo img {
    height: 32px !important;
  }
  .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 48px !important; /* Logo plus gros en mobile */
}

.logo span {
  display: none; /* Cacher le texte */
}

.burger-toggle {
  display: block;
  font-size: 2rem;
  cursor: pointer;
  color: var(--accent-color);
}

}
@media (min-width: 769px) {
  .burger-toggle {
    display: none;
  }

  .logo span {
    display: inline;
  }

  .logo img {
    height: 40px !important;
  }
}

.header-content {
  display: flex;
  justify-content: space-between;
  margin-left: 2rem;
  align-items: center;
  padding: 1rem 0;
  position: relative;
}
/* Logo à gauche, texte caché sur mobile */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 48px;
}
@media (max-width: 768px) {
  .logo img {
    height: 56px; /* logo plus gros */
  }

  .logo span {
    display: none; /* texte masqué */
  }
}

/* Burger positionné à droite */
.burger-toggle {
  display: none;
  
}

@media (max-width: 768px) {
  .burger-toggle {
    display: block;
    font-size: 2rem;
    color: var(--accent-color);
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 1rem;
    z-index: 1001;
  }

 .nav {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #F2F8FF; /* ou var(--background), si tu préfères */
  padding: 1rem;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: var(--shadow);
  z-index: 999;
}
  .nav.show {
    display: flex;
  }
}

.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  backdrop-filter: blur(5px);
  background: rgba(255, 255, 255, 0.3); /* tu peux ajuster l'opacité */
  z-index: 998;
}
@media (max-width: 768px) {
  .nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--background); /* ou une autre couleur de fond */
    z-index: 999;
    padding: 2rem;
    gap: 1rem;
    overflow-y: auto;
  }

  .nav.show {
    display: flex;
  }
}
