/* Reset et styles de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #2c3e50;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  margin-bottom: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(71, 85, 105, 0.08);
  border: 1px solid rgba(71, 85, 105, 0.05);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-size: 2rem;
  font-weight: bold;
  color: #1e40af;
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: #475569;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #1e40af;
}

/* Cards */
.card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(71, 85, 105, 0.08);
  border: 1px solid rgba(71, 85, 105, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(71, 85, 105, 0.12);
}

.card h1,
.card h2 {
  color: #1e40af;
  margin-bottom: 1rem;
}

/* Formulaires */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
}

input[type="text"],
input[type="password"],
textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: #ffffff;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
  outline: none;
  border-color: #1e40af;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Boutons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(30, 64, 175, 0.3);
}

.btn-secondary {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.btn-secondary:hover {
  box-shadow: 0 6px 20px rgba(100, 116, 139, 0.3);
}

.btn-danger {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.btn-danger:hover {
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
}

/* Messages */
.message {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.message.success {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.message.error {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Commentaires */
.comment {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid #1e40af;
  box-shadow: 0 2px 10px rgba(71, 85, 105, 0.05);
}

.comment-meta {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.comment-text {
  color: #2c3e50;
  line-height: 1.6;
}

/* User info */
.user-info {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  text-align: center;
  border: 1px solid rgba(71, 85, 105, 0.05);
  box-shadow: 0 2px 10px rgba(71, 85, 105, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .container {
    padding: 10px;
  }

  .card {
    padding: 1rem;
  }
}

/* Animation d'entrée */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeInUp 0.6s ease;
}

/* Styles supplémentaires pour pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
}

.pagination a {
  padding: 8px 16px;
  background: #ffffff;
  color: #1e40af;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background: #1e40af;
  color: #ffffff;
  border-color: #1e40af;
}

.pagination .current {
  padding: 8px 16px;
  background: #1e40af;
  color: #ffffff;
  border: 1px solid #1e40af;
  border-radius: 6px;
}
