/* ===========================
   GLOBAL
   =========================== */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #120814;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.06) 0px,
      rgba(255, 255, 255, 0.06) 1px,
      transparent 3px,
      transparent 6px
    ),
    radial-gradient(circle at top left, #ffb3ff 0, #ff77c7 30%, #5b105f 65%, #05000a 100%);
  min-height: 100vh;
}

/* petite classe pratique si tu veux des liens en style "texte" */
a {
  color: inherit;
}

/* ===========================
   LAYOUT GENERAL
   =========================== */

.wrapper {
  display: flex;
  min-height: 100vh;
}

/* ===========================
   SIDEBAR PUNK
   =========================== */

.sidebar {
  flex: 0 0 260px;
  padding: 16px 14px 18px;
  background:
    radial-gradient(circle at top, #ff8bf6 0, transparent 55%),
    linear-gradient(to bottom, #1b0224, #020010);
  color: #fef4ff;
  display: flex;
  flex-direction: column;
  /* on enlève le centrage vertical */
  /* justify-content: space-between; */
  border-right: 2px solid #ff49c3;
  box-shadow: 4px 0 0 #1a001e;
  min-height: 100vh; /* on peut garder ça si tu l'as déjà */
}


/* étiquette "VIGNETTES" façon VHS / sticker */
.vhs-label {
  border: 1px solid #fef4ff;
  padding: 10px 12px 8px;
  border-radius: 3px;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.1) 0,
      rgba(255, 255, 255, 0.1) 2px,
      transparent 2px,
      transparent 4px
    );
  box-shadow: 3px 3px 0 #000000;
}

.vhs-label-title {
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.vhs-label-line {
  margin-top: 6px;
  height: 1px;
  background: linear-gradient(to right, #fffb94, #ffffff, #8df2ff);
}

.vhs-label-subtitle {
  font-size: 10px;
  margin-top: 4px;
  opacity: 0.7;
}

/* blocs dans la sidebar */

.sidebar-section {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.85;
}

.nav-section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.7;
  margin-bottom: 6px;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item + .nav-item {
  margin-top: 6px;
}

/* liens comme de gros boutons rétro */

.nav-link {
  display: block;
  padding: 6px 8px;
  font-size: 0.9rem;
  text-decoration: none;
  color: #fef4ff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(7, 0, 21, 0.65);
  text-transform: none;
  box-shadow: 2px 2px 0 #000000;
  transition: transform 0.08s ease-out, box-shadow 0.08s ease-out, background 0.08s ease-out;
}

.nav-link:hover {
  background: #ff49c3;
  color: #1b0224;
  transform: translate(-1px, -1px) rotate(-0.5deg);
  box-shadow: 4px 4px 0 #000000;
}

.sidebar-footer {
  margin-top: auto;
  font-size: 0.7rem;
  opacity: 0.78;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px dashed rgba(255, 255, 255, 0.3);
  padding-top: 8px;
}

/* ===========================
   MAIN
   =========================== */

.main {
  flex: 1;
  padding: 26px 30px 32px;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}

/* légère bande verticale style "marge" */
.main::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 0;
  width: 3px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.3) 0,
    rgba(255, 255, 255, 0.3) 4px,
    transparent 4px,
    transparent 8px
  );
  opacity: 0.8;
}

/* ===========================
   TYPO TITRES
   =========================== */

.main-header {
  max-width: 760px;
  margin-bottom: 24px;
}

h1, h2 {
  letter-spacing: 0.04em;
}

h1 {
  margin: 0 0 12px;
  font-size: 2.1rem;
  text-transform: uppercase;
  font-weight: 900;
  color: #ffe5ff;
  text-shadow:
    2px 2px 0 #120018,
    -2px 0 0 #4affff;
}

h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 30px 0 16px;
  text-transform: uppercase;
  color: #ffe9ff;
  text-shadow:
    1px 1px 0 #26001b,
    -1px 0 0 #92ffe8;
}

/* ===========================
   TEXTE
   =========================== */

.intro {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #fef6ff;
  max-width: 720px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.highlight {
  background: #000000;
  color: #fffb94;
  padding: 0 5px;
  border-radius: 2px;
  box-shadow: 2px 2px 0 #ff49c3;
}

/* ===========================
   LAYOUT INTERNE DU MAIN
   =========================== */

.main-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(260px, 1fr);
  gap: 24px;
  align-items: flex-start;
  margin-top: 8px;
}

.content-column {
  position: relative;
  z-index: 1;
}

.info-column {
  position: relative;
  z-index: 1;
}

/* ===========================
   CARTES DES VIGNETTES
   =========================== */

.vignettes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

/* style post-it punk */

.vignettes-list li {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #160612;
  border: 1px solid #160612;
  box-shadow: 3px 3px 0 #160612;
  position: relative;
  transform-origin: top left;
  transition: transform 0.09s ease-out, box-shadow 0.09s ease-out;
}

/* variations légères de rotation pour casser le côté trop propre */
.vignettes-list li:nth-child(1) {
  transform: rotate(-0.6deg);
}
.vignettes-list li:nth-child(2) {
  transform: rotate(0.3deg);
}
.vignettes-list li:nth-child(3) {
  transform: rotate(-0.2deg);
}

.vignettes-list li:hover {
  transform: translate(-2px, -2px) rotate(0deg);
  box-shadow: 5px 5px 0 #160612;
}

.vignettes-list li strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
  text-transform: uppercase;
}

/* ===========================
   BLOC MODE D'EMPLOI
   =========================== */

.box {
  border-radius: 8px;
  padding: 14px 16px;
}

.box-mode-emploi {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #160612;
  box-shadow: 3px 3px 0 #160612;
  position: sticky;
  top: 24px;
}

.box-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 10px;
  color: #160612;
}

.box-body {
  margin-bottom: 10px;
}

.small {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #160612;
}

/* ===========================
   BLOC REGLES
   =========================== */

.rules-block {
  background: #fff7de;
  border: 1px dashed #c7882a;
  border-left: 4px solid #f9a93a;
  border-radius: 6px;
  padding: 8px 10px 8px 12px;
  margin-top: 12px;
  box-shadow: 2px 2px 0 #160612;
}

.rules-list {
  margin: 4px 0 0;
  padding-left: 18px;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 900px) {
  .wrapper {
    flex-direction: column;
  }

  .sidebar {
    flex: none;
    width: 100%;
    box-shadow: none;
    border-right: none;
    border-bottom: 2px solid #ff49c3;
  }

  .main {
    padding: 18px 16px 26px;
  }

  .main::before {
    display: none;
  }

  .main-layout {
    grid-template-columns: 1fr;
  }

  .box-mode-emploi {
    position: static;
    margin-top: 18px;
  }

  h1 {
    font-size: 1.7rem;
  }

  h2 {
    font-size: 1.15rem;
  }
}
/* ===========================
   GRILLE DE CARTES PÊLE-MÊLE
   =========================== */

.ideas-grid {
  margin-top: 18px;
  position: relative; /* important pour le drag */
}
.topic-title {
  margin: 26px 0 8px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #ffe5ff;
  text-shadow: 1px 1px 0 #26001b;
}

.topic-zone {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 10px;

}

/* curseur “main” pour montrer qu’on peut bouger la carte */
.idea-card {
  cursor: grab;
}

.idea-card.dragging {
  cursor: grabbing;
  box-shadow: 8px 8px 0 #160612; /* un peu plus fort quand on la tire */
}


/* Carte style polaroid / post-it */
.idea-card {
  background: #fffef6;
  border: 1px solid #160612;
  border-radius: 6px;
  padding: 10px 12px;
  box-shadow: 3px 3px 0 #160612;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #160612;

  /* largeur “pas trop propre” */
  width: 230px;
  max-width: 260px;

  position: relative;
  transform-origin: top left;
  transition: transform 0.09s ease-out, box-shadow 0.09s ease-out;
}

/* petites variations de rotation pour casser le côté grid */
.idea-card:nth-child(3n+1) {
  transform: rotate(-1.8deg);
}
.idea-card:nth-child(3n+2) {
  transform: rotate(1.2deg);
}
.idea-card:nth-child(3n+3) {
  transform: rotate(-0.6deg);
}

/* effet “je tire la carte” au hover */
.idea-card:hover {
  transform: translate(-3px, -3px) rotate(0deg);
  box-shadow: 6px 6px 0 #160612;
  z-index: 2;
}

/* Titre sur la carte */
.idea-title {
  margin: 0 0 4px;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.idea-title a {
  text-decoration: none;
  color: inherit;
}

.idea-title a:hover {
  text-decoration: underline;
}

/* Petit tag 🌱 / 🌿 / 🌲 */
.idea-card .tag {
  display: inline-block;
  margin-bottom: 6px;
}

/* Extrait de texte */
.idea-excerpt {
  margin: 0;
  font-size: 0.86rem;
}


