:root {
  --bg-main: #1e1f24;
  --bg-card: #22242a;
  --text-light: #f4f4f4;
  --accent: #6c5ce7;
  --border: #2f3138;
  --hover: #2d2f36;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: var(--bg-main);
  color: var(--text-light);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--bg-card);
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
header h1 {
  font-size: 1.5rem;
}
header nav a {
  margin-left: 1.5rem;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
}
header nav a:hover {
  color: var(--accent);
}

main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.projet-detail-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 4rem;
}

.projet-detail-container img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  max-height: 400px;
}

.projet-detail-container h1 {
  margin: 0;
  font-size: 2rem;
  color: var(--accent);
}

.projet-detail-container p {
  margin: 0.4rem 0;
  font-size: 1rem;
}

hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 2rem 0 1rem;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1rem;
}

.comment {
  display: flex;
  gap: 1rem;
  background: var(--hover);
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  align-items: flex-start;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.comment-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--bg-card);
}

.comment-content {
  flex-grow: 1;
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .4rem;
  font-size: 0.9rem;
  color: #bbb;
}

.comment-content p {
  margin: 0;
  line-height: 1.5;
  color: var(--text-light);
}

.comment-date {
  font-size: 0.8rem;
  color: #888;
}

.form-commentaire {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem;
  background: var(--hover);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.form-commentaire textarea {
  width: 100%;
  min-height: 120px;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-main);
  color: var(--text-light);
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  outline: none;
  transition: border 0.2s ease;
}

.form-commentaire textarea:focus {
  border-color: var(--accent);
}

.form-commentaire button {
  align-self: flex-end;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  color: white;
  padding: .7rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(108, 92, 231, 0.4);
  transition: all 0.2s ease-in-out;
}

.form-commentaire button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.5);
  background: linear-gradient(135deg, #7b6dfa, #b2abff);
}

.form-commentaire button:active {
  transform: scale(0.98);
  box-shadow: 0 3px 8px rgba(108, 92, 231, 0.3);
}


footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid #C0C5C1;
}