/* =====================================================
   RESET & BASE
   ===================================================== */
* { box-sizing: border-box; }

body.dark {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top, #220000, #050000);
  color: #ededed;
  overflow-x: hidden;
}

/* =====================================================
   HEADER / TOPBAR
   ===================================================== */
.topbar.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 35px 20px 20px;
  background: linear-gradient(to bottom, #120000, #050000);
  border-bottom: 1px solid rgba(255,0,0,0.2);
}

.topbar.fixed {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.logo-center img {
  height: 95px;
  margin-bottom: 18px;
  filter: drop-shadow(0 0 18px rgba(255,0,0,0.45));
}

.main-nav {
  display: flex;
  gap: 35px;
  justify-content: center;
}

.main-nav a {
  color: #ededed;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1.5px;
  position: relative;
  padding-bottom: 6px;
}

.main-nav a:hover { color: #ff2a2a; }

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: #ff1a1a;
}

.admin-link { color: #ff1a1a !important; }

/* =====================================================
   FEED CONTAINER
   ===================================================== */
.feed-container {
  max-width: 1000px;
  margin: 240px auto 100px;
  padding: 0 30px;
}

/* =====================================================
   AVATAR
   ===================================================== */
.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff1a1a, #7a0c0c);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 20px;
}

.avatar.big {
  width: 64px;
  height: 64px;
  font-size: 22px;
}

/* =====================================================
   COMPOSER
   ===================================================== */
.composer-card {
  background: #0b0000;
  padding: 35px;
  border-radius: 18px;
  margin-bottom: 80px;
  box-shadow: 0 30px 80px rgba(255,0,0,0.35);
}

.composer-header {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.composer-text { margin-left: 18px; }

.composer-title { font-size: 18px; font-weight: 700; }

.composer-sub { font-size: 13px; color: #999; }

.composer-card textarea {
  width: 100%;
  min-height: 140px;
  background: #120000;
  border: none;
  padding: 20px;
  border-radius: 14px;
  color: #fff;
  font-size: 16px;
  line-height: 1.6;
  resize: none;
}

.composer-card textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px #ff1a1a;
}

.composer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.composer-info {
  font-size: 13px;
  color: #888;
}

/* =====================================================
   POST CARD
   ===================================================== */
.post-card {
  background: #0d0000;
  padding: 40px;
  border-radius: 22px;
  margin-bottom: 90px;
  box-shadow: 0 35px 90px rgba(255,0,0,0.28);
}

.post-header {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
}

.post-meta { margin-left: 18px; }

.post-author {
  font-size: 20px;
  font-weight: 700;
}

.post-date {
  font-size: 13px;
  color: #999;
}

.post-body {
  font-size: 17px;
  line-height: 1.9;
  color: #eee;
  margin-bottom: 35px;
}

/* =====================================================
   POST IMAGE + NSFW
   ===================================================== */
.post-image {
  margin: 25px 0;
  overflow: hidden;
  border-radius: 18px;
}

.post-image img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 25px 70px rgba(255,0,0,0.3);
}

.nsfw-blur {
  filter: blur(18px);
  transition: filter 0.3s ease;
  cursor: pointer;
}

.nsfw-blur.revealed { filter: none; }

.nsfw-label {
  font-size: 12px;
  color: #ff1a1a;
  margin-top: 6px;
  text-align: center;
  letter-spacing: 1px;
}

/* =====================================================
   POST ACTIONS + SIGNALEMENT
   ===================================================== */
.post-actions {
  display: flex;
  gap: 30px;
  font-size: 15px;
  color: #aaa;
  align-items: center;
}

.report-form {
  display: inline-flex;
  align-items: center;
}

.report-link {
  background: none;
  border: none;
  color: #ff4d4d;
  cursor: pointer;
  font-size: 14px;
}

/* =====================================================
   ADMIN
   ===================================================== */
.admin-section { margin-bottom: 80px; }

.admin-section h2 {
  margin-bottom: 30px;
  font-size: 26px;
}

.admin-card {
  background: #0d0000;
  padding: 25px 30px;
  border-radius: 14px;
  margin-bottom: 25px;
  box-shadow: 0 20px 50px rgba(255,0,0,0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-post-content {
  margin: 15px 0;
  color: #eee;
  line-height: 1.6;
}

.admin-actions { display: flex; gap: 15px; }

.report-box {
  background: #3b0000;
  border: 1px solid #ff4d4d;
  color: #ffb3b3;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin: 10px 0;
}

/* =====================================================
   TOAST
   ===================================================== */
#toast {
  position: fixed;
  top: 25px;
  right: 25px;
  background: linear-gradient(135deg, #ff1a1a, #7a0c0c);
  color: #000;
  padding: 16px 22px;
  border-radius: 14px;
  font-weight: 600;
  box-shadow: 0 20px 60px rgba(255,0,0,0.45);
  z-index: 9999;
}
.post-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 14px;
  color: #aaa;
}

.report-form {
  display: inline-flex;
  align-items: center;
}

.report-link {
  background: none;
  border: none;
  color: #ff4d4d;
  cursor: pointer;
  font-size: 14px;
  transition: color 0.2s ease;
}

.report-link:hover {
  color: #ff1a1a;
}
/* ===== PREVIEW IMAGE (COMPOSER) ===== */
.image-preview {
  display: block;
  max-width: 100%;
  max-height: 420px;
  margin: 20px auto 0;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(255, 0, 0, 0.35);
  background: #0b0000;
}

/* ===== BOUTON PUBLIER ===== */
.composer-card button,
.composer-card .btn-red {
  background: linear-gradient(135deg, #7a0c0c, #ff1a1a);
  color: #fff;
  padding: 14px 36px;
  border-radius: 30px;
  border: none;
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 12px 35px rgba(255, 0, 0, 0.45);
  transition: all 0.25s ease;
}

.composer-card button:hover,
.composer-card .btn-red:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(255, 0, 0, 0.6);
}

/* ================= ADMIN IMAGE FIX ================= */

.admin-post-image {
  margin-top: 20px;
  padding: 14px;
  background: #080000;
  border-radius: 16px;
  display: flex;
  justify-content: center;
}

.admin-post-image img {
  max-width: 100%;
  max-height: 420px;        /* LIMITE CLAIRE */
  object-fit: contain;     /* PAS DE DÉFORMATION */
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(255,0,0,0.35);
}

/* ================= ADMIN ACTIONS ================= */

.admin-actions {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

.btn-delete {
  background: linear-gradient(135deg, #7a0c0c, #ff1a1a);
  color: #000;
  padding: 10px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 35px rgba(255,0,0,0.4);
}

.btn-delete:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

/* ================= ADMIN BUTTONS — STYLÉS ================= */

.admin-actions a {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 10px 35px rgba(0,0,0,0.4);
}

/* ✅ VALIDER */
.admin-actions .btn-green {
  background: linear-gradient(135deg, #0f7a2a, #22c55e);
  color: #000;
}

.admin-actions .btn-green:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

/* ❌ REFUSER / SUPPRIMER */
.admin-actions .btn-red,
.admin-actions .btn-delete {
  background: linear-gradient(135deg, #7a0c0c, #ff1a1a);
  color: #000;
}

.admin-actions .btn-red:hover,
.admin-actions .btn-delete:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

/* ESPACEMENT */
.admin-actions {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  background: #120000;
  border: 1px solid rgba(255,0,0,0.3);
  padding: 14px;
  margin-bottom: 20px;
  color: #fff;
  border-radius: 10px;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 25px;
}

.checkbox-group label {
  font-size: 14px;
  cursor: pointer;
}

/* ================= FILE UPLOAD BUTTON ================= */

.file-btn {
  display: inline-block;
  background: linear-gradient(135deg, #7a0c0c, #ff1a1a);
  color: #000;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 10px 35px rgba(255,0,0,0.4);
  transition: all 0.25s ease;
  margin-right: 10px;
}

.file-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.file-name {
  font-size: 13px;
  color: #aaa;
}


/* ===== SECTION PHOTOS INSCRIPTION ===== */

.photo-section {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 25px;
}

.photo-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.photo-label {
  font-size: 14px;
  color: #ccc;
}

/* Bouton upload */
.upload-btn {
  width: fit-content;
  cursor: pointer;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 999px;
}

/* Zone preview */
.photo-preview {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Image miniature */
.photo-preview img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255,0,0,0.4);
  box-shadow: 0 8px 25px rgba(255,0,0,0.35);
}

/* Galerie */
.photo-preview.gallery img {
  width: 70px;
  height: 70px;
}

.flash-message {
  background: linear-gradient(135deg, #7a0c0c, #ff1a1a);
  padding: 16px 25px;
  border-radius: 12px;
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
  box-shadow: 0 20px 50px rgba(255,0,0,0.4);
}

/* LANDING PAGE */
.landing-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 20px 60px;
}

.landing-hero {
  text-align: center;
  margin-bottom: 100px;
}

.landing-hero h1 {
  font-size: 64px;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.tagline {
  font-size: 22px;
  color: #ccc;
  margin-bottom: 40px;
}

.btn-red.large {
  padding: 18px 40px;
  font-size: 18px;
  border-radius: 999px;
}

.small-note {
  margin-top: 20px;
  font-size: 13px;
  opacity: 0.6;
}

.landing-section {
  margin-bottom: 100px;
  text-align: center;
}

.landing-section h2 {
  font-size: 32px;
  margin-bottom: 40px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.info-card {
  background: rgba(0,0,0,0.4);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 0 40px rgba(255,0,0,0.05);
}

.info-card h3 {
  margin-bottom: 10px;
}

.steps {
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
  font-size: 18px;
}

.steps li {
  margin-bottom: 15px;
}


.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 26px;
  border-radius: 14px;

  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;

  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;

  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  transition: all 0.25s ease;
}

/* HOVER */
.btn-outline:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

/* ACTIVE */
.btn-outline:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.12);
}
