@import url("https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;600;700&family=Rubik:wght@400;500;700&display=swap");

:root {
  /* --- COULEURS DE BASE --- */
  --black: #000000;
  --white: #fffbeb;
  --transparent: transparent;

  /* --- ARRIÈRE-PLANS --- */
  --bg-body: #0c0a00;
  --bg-header: rgba(20, 18, 0, 0.95);
  --bg-footer: #050400;
  --bg-panel: #141205;
  --bg-panel-hover: #24200a;
  --bg-nav: #262202;
  --bg-input: #0a0900;
  --bg-meta: #121002;
  --bg-badge: #332d03;
  --bg-pagination: #171403;

  /* --- ACCENTS --- */
  --fire-primary: #fbbf24;
  --fire-secondary: #b45309;
  
  /* --- TEXTE --- */
  --text-main: #fffbeb;
  --text-muted: #fde68a;
  --text-dim: #d97706;
  --text-dark: #78350f;
  --text-light-grey: #fef3c7;

  /* --- BORDURES --- */
  --border-solid: #78350f;
  --border-dark: #451a03;
  --border-header-b: #fbbf24;
  --border-light-translucent: rgba(251, 191, 36, 0.2);

  /* --- OMBRES & EFFETS --- */
  --shadow-header: rgba(20, 15, 0, 0.8);
  --shadow-glow: rgba(251, 191, 36, 0.4);

  /* --- FONTS --- */
  --font-head: 'Chakra Petch', sans-serif;
  --font-body: 'Rubik', sans-serif;

  /* --- ANIMATION JS --- */
  --anim-bg-start: #451a03;
  --anim-bg-end: #0c0a00;
  --anim-ember-r: 255;
  --anim-ember-g-min: 180;
  --anim-ember-g-range: 50;
  --anim-ember-b: 0;
}

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

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.2s ease;
}
ul {
  list-style: none;
}

/* CANVAS */
#ember-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  /* Utilisation des variables pour le dégradé */
  background: linear-gradient(to top, var(--anim-bg-start) 0%, var(--anim-bg-end) 40%);
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  border-bottom: 2px solid var(--fire-primary);
  height: 70px;
  display: flex;
  align-items: center;
  box-shadow: 0 5px 20px var(--shadow-header);
}
.header-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 15px;
}
.logo-area img {
  height: 40px;
  width: auto;
}
.site-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-style: italic;
}
nav ul {
  display: flex;
  gap: 2px;
  background: var(--bg-nav);
  padding: 4px;
  transform: skewX(-10deg);
}
nav a, .auth-buttons a {
  padding: 6px 18px;
  color: var(--text-muted);
  font-weight: 600;
  font-family: var(--font-head);
  text-transform: uppercase;
  transform: skewX(10deg);
}
nav a:hover,
nav a.active {
  background: var(--fire-primary);
  color: var(--white);
}

.auth-buttons a:hover{
  color: var(--white);
}

/* BANNIÈRE */
.banner-container {
  width: 100%;
  height: 260px;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--border-header-b);
  margin-bottom: -50px;
  z-index: 1;
}
.banner-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(40%) contrast(120%);
}
.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--transparent) 50%, var(--bg-body) 100%);
}

/* LAYOUT */
.main-container {
  max-width: 1100px;
  margin: 0 auto 60px;
  padding: 0 25px;
  position: relative;
  z-index: 10;
}
h1.page-title {
  font-family: var(--font-head);
  font-size: 3rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-style: italic;
  color: var(--white);
  text-shadow: 3px 3px 0px var(--bg-nav);
}
p.page-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
  border-left: 3px solid var(--fire-secondary);
  padding-left: 15px;
}
.breadcrumb {
  margin-bottom: 20px;
  color: var(--fire-secondary);
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
}

/* FORUM LIST */
.forum-section {
  margin-bottom: 40px;
}
.forum-header {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--text-main);
  margin-bottom: 15px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}
.forum-header::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--fire-primary);
  margin-right: 10px;
  transform: rotate(45deg);
}
.forum-item {
  display: flex;
  align-items: center;
  background: var(--bg-panel);
  border-left: 4px solid var(--border-solid);
  padding: 18px 20px;
  margin-bottom: 8px;
  transition: 0.2s;
}
.forum-item:hover {
  background: var(--bg-panel-hover);
  border-left-color: var(--fire-primary);
  transform: translateX(5px);
  box-shadow: -5px 0 15px var(--shadow-glow);
}
.forum-avatar {
  width: 50px;
  height: 50px;
  object-fit: cover;
  margin-right: 20px;
  border: 2px solid var(--border-solid);
}
.forum-item:hover .forum-avatar {
  border-color: var(--fire-secondary);
}
.forum-subject {
  flex: 1;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-main);
  padding-right: 20px;
}
.forum-subject:hover {
  color: var(--fire-secondary);
}
.forum-author,
.forum-messages,
.forum-last-message {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-head);
  text-transform: uppercase;
}
.forum-author a {
  color: var(--white);
  font-weight: 700;
}
.forum-messages {
  background: var(--bg-badge);
  padding: 4px 10px;
  margin: 0 15px;
  font-weight: 700;
  color: var(--fire-primary);
}
.forum-last-message {
  width: 180px;
  text-align: right;
}

/* --- PAGES SPÉCIFIQUES (Thread & Profile) --- */

/* THREAD */
.comment-row {
  background: var(--bg-panel);
  border: 1px solid var(--border-solid);
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  gap: 20px;
}
.comment-sidebar {
  width: 150px;
  text-align: center;
  border-right: 2px solid var(--border-dark);
  padding-right: 15px;
  flex-shrink: 0;
}
.comment-avatar-large {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 3px solid var(--border-solid);
  margin-bottom: 10px;
}
.comment-author-name {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--fire-primary);
  text-transform: uppercase;
}
.comment-body {
  flex: 1;
}
.comment-meta {
  background: var(--bg-meta);
  padding: 5px 10px;
  margin-bottom: 15px;
  font-family: var(--font-head);
  color: var(--text-dim);
  font-size: 0.8rem;
  text-transform: uppercase;
  border-left: 3px solid var(--fire-secondary);
  display: flex;
  justify-content: space-between;
}
.comment-content {
  font-size: 1rem;
  color: var(--text-main); /* Corrigé de #ddd */
}

/* PROFILE */
.profile-header {
  background: var(--bg-panel);
  border: 1px solid var(--border-solid);
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.profile-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: var(--fire-primary);
}
.profile-avatar {
  width: 120px;
  height: 120px;
  border: 4px solid var(--border-solid);
}
.profile-info h1 {
  font-family: var(--font-head);
  font-size: 2.5rem;
  margin-bottom: 5px;
  text-transform: uppercase;
  color: var(--white);
}
.profile-job {
  color: var(--fire-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 10px;
}
.stat-badge {
  background: var(--bg-badge);
  padding: 5px 15px;
  margin-right: 10px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  border: 1px solid var(--border-solid);
  color: var(--text-light-grey);
}
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.profile-col h3 {
  font-family: var(--font-head);
  color: var(--white);
  border-bottom: 2px solid var(--fire-primary);
  padding-bottom: 10px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

/* AUTH */
.auth-form {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}
.auth-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-solid);
  border-top: 4px solid var(--fire-primary);
  padding: 40px;
  width: 100%;
  max-width: 400px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-head);
  text-transform: uppercase;
  color: var(--text-muted);
}
.auth-form-input {
  width: 100%;
  padding: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-solid);
  color: var(--white);
}
.auth-form-input:focus {
  border-color: var(--fire-primary);
  outline: none;
}

/* BUTTONS */
.btn,
.auth-submit-button,
.add-comment-button {
  background: var(--fire-primary);
  color: var(--white);
  border: none;
  padding: 10px 25px;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
  transition: 0.2s;
  display: inline-block;
  text-align: center;
  width: 100%;
}
.btn:hover,
.auth-submit-button:hover {
  background: var(--fire-secondary);
}

/* PAGINATION */
.pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 40px;
}
.page-link {
  width: 40px;
  height: 40px;
  background: var(--bg-pagination);
  border: 1px solid var(--border-solid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  color: var(--text-dim);
}
.page-link:hover,
.page-link.active {
  background: var(--fire-primary);
  color: var(--white);
  border-color: var(--fire-primary);
}

/* FOOTER */
footer {
  background: var(--bg-footer);
  border-top: 2px solid var(--border-dark);
  padding: 60px 0 30px;
  margin-top: auto;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 25px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-head);
  text-transform: uppercase;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--fire-primary);
  display: inline-block;
}
.copyright {
  text-align: center;
  margin-top: 50px;
  color: var(--text-dark);
  text-transform: uppercase;
}

.comment-content>a{
  color: var(--fire-secondary);
}

.comment-content>a:hover{
  color: var(--fire-primary);
}