* {
  box-sizing: border-box;
}

:root {
  --bg-dark: #050914;
  --bg-blue: #07111f;
  --paper: #101827;
  --yellow: #ffcc00;
  --red: #e21b2d;
  --cyan: #18d6ff;
  --white: #f5f5f5;
  --muted: #9aa4b2;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 204, 0, 0.18), transparent 16%),
    radial-gradient(circle at 80% 35%, rgba(226, 27, 45, 0.12), transparent 18%),
    linear-gradient(180deg, #02040a, #07111f 45%, #03050b);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "×  ?  ◯  PREUVE  SUSPECT  ?  ×  INDICE  ◯  ?";
  position: fixed;
  inset: 0;
  color: rgba(255,255,255,0.05);
  font-size: 42px;
  line-height: 120px;
  letter-spacing: 24px;
  transform: rotate(-12deg);
  pointer-events: none;
  z-index: -1;
}

/* HEADER */
.topbar,
.site-header {
  background: rgba(2, 5, 12, 0.92);
  border-bottom: 2px solid rgba(255, 204, 0, 0.5);
  padding: 18px 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-weight: 900;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 18px;
  text-decoration: none;
}

nav a {
  color: var(--white);
  text-decoration: none;
  margin-left: 22px;
  font-size: 15px;
  font-weight: 700;
  position: relative;
}

nav a:hover {
  color: var(--yellow);
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  height: 3px;
  width: 0;
  background: var(--red);
  transition: 0.25s;
}

nav a:hover::after {
  width: 100%;
}

/* CONTENEUR */
.container {
  width: min(1120px, calc(100% - 40px));
  margin: 45px auto;
}

.page-content {
  max-width: 1200px;
  margin: 50px auto;
  padding: 30px;
}

/* BOUTONS */
.btn,
button {
  display: inline-block;
  background: var(--red);
  color: white;
  border: none;
  padding: 16px 24px;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 6px 6px 0 #000;
  transition: 0.2s;
  border-radius: 4px;
}

.btn:hover,
button:hover {
  background: var(--yellow);
  color: #111;
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 #000;
}

.btn.primary {
  background: var(--yellow);
  color: #111;
  box-shadow: 0 8px 0 #9b7800;
}

.btn.secondary {
  background: var(--red);
  color: white;
  box-shadow: 0 8px 0 #780914;
}

/* ACCUEIL */
.hero {
  position: relative;
  max-width: 820px;
  min-height: 680px;
  margin: 60px auto;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 204, 0, 0.28), transparent 65%);
  filter: blur(8px);
  z-index: -1;
}

.label,
.badge {
  display: inline-block;
  background: var(--red);
  color: white;
  padding: 9px 18px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  clip-path: polygon(0 0, 92% 0, 100% 50%, 92% 100%, 0 100%, 6% 50%);
}

h1 {
  font-size: clamp(54px, 8vw, 104px);
  line-height: 0.92;
  margin: 26px 0 20px;
  text-transform: uppercase;
  letter-spacing: -3px;
}

h1 span,
.yellow {
  color: var(--yellow);
  text-shadow: 4px 4px 0 #000, 0 0 18px rgba(255,204,0,0.45);
}

.hero h1 {
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.9;
  margin: 0 0 20px;
  text-transform: uppercase;
  text-shadow: 5px 6px 0 rgba(0,0,0,0.6);
}

.hero h1 span {
  color: var(--yellow);
  display: block;
  transform: rotate(-2deg);
}

.hero-text p,
.intro {
  max-width: 620px;
  color: #dce3ef;
  font-size: 20px;
  line-height: 1.6;
}

.mission-card {
  margin-top: 28px;
  padding: 24px;
  max-width: 560px;
  background: rgba(8, 14, 28, 0.88);
  border: 2px solid rgba(255,255,255,0.12);
  border-left: 6px solid var(--yellow);
  box-shadow: 0 25px 50px rgba(0,0,0,0.45);
  position: relative;
}

.mission-card::after {
  content: "CONFIDENTIEL";
  position: absolute;
  top: -14px;
  right: 18px;
  background: #111827;
  border: 1px solid rgba(255, 204, 0, 0.6);
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  padding: 5px 10px;
  letter-spacing: 1px;
}

.mission-card h2 {
  margin-top: 0;
  color: var(--yellow);
  text-transform: uppercase;
}

.mission-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mission-card li {
  margin: 12px 0;
  font-size: 18px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* COUVERTURE */
.cover-box {
  position: relative;
  text-align: center;
  background: linear-gradient(145deg, #111827, #030712);
  border: 2px solid rgba(255,255,255,0.15);
  padding: 18px;
  box-shadow: 0 25px 70px rgba(0,0,0,0.8);
  transform: rotate(2deg);
}

.cover-box::before,
.stamp {
  display: none;
}

.cover-placeholder {
  height: 520px;
  border: 2px dashed rgba(255,204,0,0.5);
  display: grid;
  place-items: center;
  color: var(--yellow);
  text-transform: uppercase;
  font-weight: 900;
  background:
    linear-gradient(to top, rgba(0,0,0,0.8), transparent),
    radial-gradient(circle at 40% 20%, rgba(255,204,0,0.25), transparent 25%),
    #07111f;
}

.book-cover {
  width: 100%;
  max-width: 430px;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 35px 35px rgba(0, 0, 0, 0.75));
  transform: rotate(-3deg);
  transition: 0.3s ease;
}

.book-cover:hover {
  transform: rotate(0deg) scale(1.04);
}

/* TITRES DE PAGE */
.page-title {
  max-width: 760px;
  margin-bottom: 50px;
}

.page-title h1 {
  font-size: clamp(46px, 7vw, 86px);
  margin: 10px 0;
  text-transform: uppercase;
  color: var(--yellow);
  text-shadow: 5px 6px 0 rgba(0,0,0,0.55);
}

.page-title p {
  color: #dce3ef;
  font-size: 20px;
  line-height: 1.6;
}

/* INDICES */
.clue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.clue-card {
  position: relative;
  background: linear-gradient(145deg, rgba(11, 18, 34, 0.96), rgba(20, 30, 54, 0.96));
  border: 2px solid rgba(255,255,255,0.12);
  border-top: 6px solid var(--yellow);
  padding: 26px;
  min-height: 250px;
  box-shadow: 0 25px 45px rgba(0,0,0,0.45);
  overflow: hidden;
}

.clue-card::before {
  content: "?";
  position: absolute;
  right: -10px;
  bottom: -45px;
  font-size: 160px;
  font-weight: 900;
  color: rgba(255,255,255,0.04);
}

.clue-number {
  display: inline-block;
  background: var(--red);
  color: white;
  font-weight: 900;
  text-transform: uppercase;
  padding: 6px 12px;
  margin-bottom: 18px;
  transform: rotate(-2deg);
}

.clue-card h2 {
  margin: 0 0 18px;
  color: white;
  font-size: 24px;
}

.clue-hidden {
  display: none;
  color: #dce3ef;
  line-height: 1.5;
  font-size: 17px;
}

.clue-card.revealed .clue-hidden {
  display: block;
}

.clue-btn {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  background: var(--yellow);
  color: #111;
  border: none;
  padding: 12px 16px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 0 #9b7800;
  transition: 0.2s ease;
}

.clue-card.revealed .clue-btn {
  background: var(--red);
  color: white;
  box-shadow: 0 6px 0 #780914;
}

/* PAGE COUPABLE */
.answer-box {
  max-width: 760px;
  background: linear-gradient(145deg, rgba(11, 18, 34, 0.97), rgba(24, 35, 64, 0.97));
  border: 2px solid rgba(255,255,255,0.12);
  border-left: 8px solid var(--red);
  padding: 34px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.45);
}

.answer-box h2 {
  margin-top: 0;
  color: var(--yellow);
  text-transform: uppercase;
  font-size: 32px;
}

.suspect-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.wrong-name,
.redacted-name {
  position: relative;
  display: inline-block;
  padding: 8px 14px;
  background: rgba(255,255,255,0.08);
  color: #dce3ef;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,0.14);
}

.wrong-name::after,
.redacted-name::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 3px;
  background: var(--red);
  transform: rotate(-7deg);
  opacity: 0.8;
  border-radius: 4px;
}

#culpritForm {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

#culpritForm label {
  font-weight: 900;
  text-transform: uppercase;
  color: white;
}

#culpritInput,
#pageInput,
input {
  padding: 16px;
  font-size: 18px;
  border: 2px solid rgba(255,255,255,0.18);
  background: #050914;
  color: white;
  outline: none;
}

#culpritInput:focus,
#pageInput:focus,
input:focus {
  border-color: var(--yellow);
}

.result-message {
  margin-top: 24px;
  font-size: 20px;
  font-weight: 900;
  min-height: 32px;
}

.result-message.success {
  color: #56f08a;
}

.result-message.error {
  color: #ff4b5c;
}

.hidden {
  display: none !important;
}

#nextStoryBtn {
  margin-top: 24px;
}

/* PAGE SUITE */
.story-box {
  max-width: 850px;
  margin: 40px auto;
  background: rgba(255, 255, 255, 0.08);
  padding: 35px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.story-box h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #ffffff;
}

.story-box p {
  font-size: 18px;
  line-height: 1.8;
  color: #e5e7eb;
  margin-bottom: 18px;
}

.story-box .btn {
  margin-top: 20px;
}

footer {
  text-align: center;
  padding: 30px;
  color: var(--muted);
}

/* RESPONSIVE */
@media (max-width: 950px) {
  .clue-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 850px) {
  .topbar,
  .site-header {
    flex-direction: column;
    gap: 15px;
    padding: 18px;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  nav a {
    margin-left: 0;
  }

  .hero {
    padding: 20px;
    min-height: auto;
  }

  .cover-placeholder {
    height: 360px;
  }
}

@media (max-width: 650px) {
  .clue-grid {
    grid-template-columns: 1fr;
  }

  h1,
  .page-title h1 {
    letter-spacing: -1px;
  }

  .answer-box,
  .story-box {
    padding: 24px;
  }
}
/* ============================= */
/* MODIFICATIONS PAGE ACCUEIL */
/* ============================= */

/* Logo en haut : "Ce n’est pas" blanc + "Maya !" jaune */
.logo-title {
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--yellow);
  letter-spacing: 1px;
}

.logo-title span {
  color: white;
}

/* Enlever la banderole rouge 10-14 ans / livre-jeu / enquête */
.badge,
.label {
  display: none !important;
}

/* Enlever le tampon s’il existe encore */
.stamp,
.cover-box::before {
  display: none !important;
}

/* Enlever le petit "CONFIDENTIEL" sur la carte mission */
.mission-card::after {
  display: none !important;
  content: none !important;
}

/* Texte d’introduction de l’accueil */
.intro-text {
  max-width: 560px;
  color: #d6dbe6;
  font-size: 21px;
  line-height: 1.55;
}

/* Liste mission sans émojis */
.mission-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mission-card li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  font-size: 18px;
}

/* Grosse flèche devant chaque mission */
.mission-arrow {
  color: var(--yellow);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 3px 3px 0 #000;
}

/* Titre principal */
.hero h1 {
  color: white;
}

.hero h1 span {
  color: var(--yellow);
}
#culpritForm {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#culpritForm label {
  display: block;
  color: white;
  font-weight: 700;
  margin-top: 8px;
}

#culpritForm input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 16px 18px;
  border-radius: 14px;
  border: 3px solid #ffd43b;
  background: white;
  color: #111;
  font-size: 18px;
  outline: none;
  position: relative;
  z-index: 2;
}

#culpritForm input:focus {
  border-color: #ff4d6d;
  box-shadow: 0 0 0 4px rgba(255, 77, 109, 0.25);
}

#pageInput {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  min-height: 55px !important;
  pointer-events: auto !important;
}

/* ============================= */
/* PAGE INDICES — texte + exemples barrés */
/* ============================= */
.clue-text {
  color: #dce3ef;
  line-height: 1.5;
  font-size: 16px;
  margin: 0 0 4px;
  position: relative;
  z-index: 2;
}
.clue-hidden {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255,255,255,0.15);
}
.clue-card.revealed .clue-hidden { display: block; }

.ex {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.ok, .ko {
  display: inline-block;
  padding: 5px 11px;
  font-weight: 800;
  font-size: 15px;
  border-radius: 4px;
  position: relative;
}
/* prénom qui RESPECTE l'indice : gardé, liseré vert */
.ok {
  background: rgba(86, 240, 138, 0.12);
  border: 1px solid rgba(86, 240, 138, 0.5);
  color: #b6f5cd;
}
/* prénom qui NE respecte PAS : barré en rouge */
.ko {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: #aeb6c4;
}
.ko::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 50%;
  height: 1.5px;
  background: rgba(226, 27, 45, 0.55);
  transform: rotate(-4deg);
  border-radius: 4px;
}

/* ============================= */
/* TITRE FORMAT ACCUEIL sur la page Indices */
/* ============================= */
.brand-title {
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.9;
  margin: 0 0 24px;
  text-transform: uppercase;
  color: white;                       /* "Ce n'est pas" en blanc */
  text-shadow: 5px 6px 0 rgba(0,0,0,0.55);
}
.brand-title span {
  color: var(--yellow);               /* "Maya !" en jaune */
  display: block;
  transform: rotate(-2deg);
  text-shadow: 4px 4px 0 #000, 0 0 18px rgba(255,204,0,0.45);
}
.page-heading {
  font-size: clamp(28px, 4vw, 44px);
  margin: 18px 0 14px;
  text-transform: uppercase;
  color: var(--yellow);
  text-shadow: 3px 4px 0 rgba(0,0,0,0.5);
}
