:root {
  --bg: #787f79;
  --header: #373b37;
  --menu-text: #ffffff;
  --badge: #373b37;
  --card: #1e1e1e;
  --accent: #dcff8f;
  --btn-text: #1b1b1b;
  --text: #e6ffea;
  --muted: #98a19a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  text-align: center;
  background: var(--bg);
  color: var(--text);
}
a { color: inherit; }

/* HEADER / MENU */
header {
  background: var(--header);
  padding: 18px 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand { font-weight: 900; font-size: 1.5rem; letter-spacing: .02em; margin-bottom: 14px; }
.brand span { color: var(--accent); }
.menu {
  display: flex; gap: 6px; justify-content: center; flex-wrap: wrap;
  list-style: none; margin: 0; padding: 0 0 12px;
}
.menu-item {
  white-space: nowrap; cursor: pointer; padding: 8px 16px;
  font-weight: 600; color: var(--menu-text); border-radius: 999px; transition: .2s;
}
.menu-item:hover, .menu-item.menu-active {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(188,255,126,.4), 0 0 24px rgba(142,255,101,.2);
}

/* CONTENU */
main { max-width: 1000px; margin: 0 auto; padding: 32px 16px 120px; min-height: 70vh; }
.content-block { display: none; animation: fade .35s ease; }
.content-block.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.section-badge {
  display: inline-block; margin-bottom: 24px; padding: 6px 18px;
  background: var(--badge); color: var(--accent); border-radius: 999px;
  font-weight: 700; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase;
}
.hero h1 { font-size: clamp(2.2rem, 7vw, 4.2rem); font-weight: 900; margin: 40px 0 12px; line-height: 1.05; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: #fff; opacity: .85; font-size: 1.1rem; }
.keys-deco { display: flex; justify-content: center; margin-top: 36px; }
.keys-deco i {
  width: 34px; height: 110px; background: #f4f4ef; border: 1px solid #222;
  border-radius: 0 0 6px 6px; position: relative;
}
.keys-deco i.b { width: 0; border: 0; background: none; }
.keys-deco i.b::after {
  content: ""; position: absolute; left: -12px; top: 0; width: 24px; height: 68px;
  background: #151515; border-radius: 0 0 4px 4px; z-index: 2;
}

.partitions-intro .partitions-intro-1 { font-weight: 700; font-size: 1.1rem; }
.partitions-intro .partitions-intro-2 { opacity: .9; }
.styles-title { text-align: left; margin: 28px 0 12px; color: var(--accent); }
.resource-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.resource-card {
  display: block; text-decoration: none; background: var(--card); padding: 18px;
  border-radius: 14px; transition: .2s; border: 1px solid transparent;
}
.resource-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.resource-title { font-weight: 700; color: var(--accent); }
.resource-card p { margin: 6px 0 0; font-size: .9rem; color: var(--muted); }

.guides-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px; margin-top: 10px; }
.guide-cover {
  position: relative; aspect-ratio: 3/4; border-radius: 10px; padding: 14px 10px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.35); color: #1b1b1b;
}
.guide-cover::before { content: ""; position: absolute; inset: 8px; border: 1.5px solid rgba(0,0,0,.35); border-radius: 6px; }
.cover-title { position: relative; font-weight: 800; font-size: .95rem; line-height: 1.25; }
.cover-title small { font-weight: 500; font-size: .7rem; display: block; margin: 4px 0; }
.cover-title u { font-weight: 600; font-size: .75rem; }
.guide-price { position: absolute; right: 8px; top: 8px; background: #1b1b1b; color: #fff; font-size: .7rem; padding: 2px 8px; border-radius: 999px; z-index: 2; }
.guide-item.locked .guide-cover { filter: saturate(.6); }
.guide-item.locked .overlay {
  position: absolute; inset: 0; background: rgba(20,20,20,.72); color: #fff; z-index: 3;
  display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 600; padding: 10px; opacity: 0; transition: .2s;
}
.guide-item.locked:hover .overlay, .guide-item .overlay.show { opacity: 1; }
.guide-item p { margin: 8px 0 0; font-size: .85rem; opacity: .9; }
.t1 { background: #e7b2ab; } .t2 { background: #9dbfe5; } .t3 { background: #ae97c2; } .t4 { background: #b2c992; } .t5 { background: #ffdf86; }
.guide-item.empty .guide-cover { background: rgba(255,255,255,.15); box-shadow: none; }
.guide-item.empty .guide-cover::before { display: none; }

.teaser { margin: 18px 0 26px; font-size: 1.1rem; }
.teaser b { display: block; font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.btn {
  display: inline-block; background: var(--accent); color: var(--btn-text); border: 0; cursor: pointer;
  padding: 12px 28px; border-radius: 999px; font: 700 1rem "Inter", sans-serif; text-decoration: none; transition: .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(220,255,143,.35); }
.tile-art { font-size: 5rem; margin: 10px 0; filter: drop-shadow(0 6px 10px rgba(0,0,0,.3)); }

.shop-btn {
  position: fixed; right: 18px; bottom: 18px; background: var(--card); color: var(--accent);
  padding: 12px 20px; border-radius: 999px; text-decoration: none; font-weight: 700;
  box-shadow: 0 8px 24px rgba(0,0,0,.4); z-index: 20;
}
.shop-btn:hover { background: #000; }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,.65); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal.hidden { display: none; }
.modal-content { background: var(--card); padding: 30px; border-radius: 16px; max-width: 420px; width: 100%; position: relative; }
.close-modal { position: absolute; right: 14px; top: 8px; font-size: 1.8rem; cursor: pointer; }
.modal-content input { width: 100%; padding: 12px; margin: 14px 0; border-radius: 10px; border: 1px solid #444; background: #111; color: #fff; font: inherit; }

.back-link { position: absolute; left: 18px; top: 16px; text-decoration: none; font-weight: 600; opacity: .9; }
.back-link:hover { color: var(--accent); }
footer { padding: 24px; font-size: .8rem; opacity: .6; }

/* MENU MOBILE : burger + volet à gauche */
.burger { display: none; }
.menu-backdrop { display: none; }
@media (max-width: 760px) {
  header { position: relative; padding: 14px 12px 14px; }
  .brand { margin-bottom: 0; text-align: left; padding-left: 52px; font-size: 1.3rem; }
  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    position: absolute; left: 10px; top: 8px; width: 46px; height: 46px; padding: 11px;
    background: none; border: 0; cursor: pointer; z-index: 120;
  }
  .burger span { display: block; height: 3px; border-radius: 2px; background: var(--menu-text); transition: .25s; }
  .burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  nav { position: static; }
  .menu {
    position: fixed; top: 0; left: 0; bottom: 0; width: min(76vw, 300px);
    flex-direction: column; justify-content: flex-start; flex-wrap: nowrap; gap: 2px;
    padding: 76px 14px 24px; background: var(--header); z-index: 110;
    transform: translateX(-105%); transition: transform .28s ease;
    box-shadow: 12px 0 40px rgba(0,0,0,.45); overflow-y: auto;
  }
  .menu.open { transform: none; }
  .menu-item { text-align: left; padding: 15px 16px; border-radius: 12px; font-size: 1.05rem; }
  .menu-item.menu-active { background: rgba(255,255,255,.08); }
  .menu-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 100; opacity: 0; pointer-events: none; transition: opacity .25s; }
  .menu-backdrop.show { opacity: 1; pointer-events: auto; }
  body.menu-open { overflow: hidden; }
}
