/* Comic Hunter · maquette conceptuelle. Encre, papier journal, jaune bulle. */
:root {
  --ink: #0e0e0e;
  --ink-2: #2a2a2a;
  --paper: #f6f1e4;
  --paper-2: #ece5d3;
  --white: #fffdf7;
  --yellow: #ffd60a;
  --yellow-2: #ffe566;
  --red: #d7263d;
  --muted: #5d584c;
  --line: 3px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --display: "Anton", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.5 var(--body); overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* Bandeau de maquette */
.concept {
  margin: 0; padding: 6px 16px; background: var(--red); color: #fff;
  font-size: 12.5px; line-height: 1.35; text-align: center;
}

/* En-tête */
.top {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 10px 16px; background: var(--ink); color: var(--paper);
  position: sticky; top: 0; z-index: 20; border-bottom: 3px solid var(--yellow);
}
.logo { display: block; line-height: 0; flex: none; }
.logo svg { width: 132px; height: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 12px; text-decoration: none; font-weight: 600; font-size: 15px; border-radius: 4px;
}
.nav a:hover { background: var(--yellow); color: var(--ink); }
.top-actions { display: flex; gap: 8px; align-items: center; }
.lang {
  background: transparent; border: 2px solid var(--paper); color: var(--paper);
  font-weight: 700; padding: 6px 10px; border-radius: 4px; cursor: pointer; min-height: 40px;
}
.lang:hover { background: var(--paper); color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: var(--line); border-radius: 6px; font-weight: 700; min-height: 44px; padding: 8px 16px;
  background: var(--white); color: var(--ink); box-shadow: 3px 3px 0 var(--ink);
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-go { background: var(--yellow); font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: .5px; text-transform: uppercase; }
.btn-list { background: var(--yellow); border-color: var(--yellow); box-shadow: none; min-height: 40px; padding: 6px 12px; }
.btn-list:hover { box-shadow: none; transform: none; background: var(--yellow-2); }
.btn-more { background: var(--white); }
.count {
  display: inline-block; min-width: 24px; padding: 0 6px; border-radius: 12px;
  background: var(--ink); color: var(--yellow); font-size: 13px; text-align: center; line-height: 22px;
}
.link { background: none; border: 0; padding: 8px 4px; text-decoration: underline; cursor: pointer; color: var(--ink-2); min-height: 44px; }

/* Héros */
.hero {
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 214, 10, .22) 1.4px, transparent 1.6px) 0 0 / 14px 14px,
    linear-gradient(180deg, #0e0e0e 0%, #1b1a17 100%);
  color: var(--paper); border-bottom: var(--line);
}
.hero { position: relative; overflow: hidden; }
/* Sous la souris, les points s'allument en blanc, comme une surface qu'on effleure. */
.hero::before, .hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--glow, 0); transition: opacity .3s ease; }
.hero::before {
  background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .95) 1.7px, transparent 2px) 0 0 / 14px 14px;
  -webkit-mask-image: radial-gradient(circle 170px at var(--mx, -999px) var(--my, -999px), #000 0%, rgba(0, 0, 0, .7) 35%, rgba(0, 0, 0, .25) 65%, transparent 100%);
  mask-image: radial-gradient(circle 170px at var(--mx, -999px) var(--my, -999px), #000 0%, rgba(0, 0, 0, .7) 35%, rgba(0, 0, 0, .25) 65%, transparent 100%);
}
.hero::after { background: radial-gradient(circle 240px at var(--mx, -999px) var(--my, -999px), rgba(255, 255, 255, .11), rgba(255, 255, 255, .03) 55%, transparent 100%); }
.hero-inner { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; padding: 44px 16px 36px; }
.kicker { margin: 0 0 10px; font-size: 14px; font-weight: 600; letter-spacing: .3px; color: var(--paper-2); min-height: 21px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #8a8a8a; margin-right: 4px; vertical-align: baseline; }
.dot.on { background: #35d06a; box-shadow: 0 0 0 4px rgba(53, 208, 106, .22); }
.dot.off { background: var(--red); }
h1 {
  margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(36px, 10vw, 104px); line-height: .95; letter-spacing: .5px; color: var(--yellow);
  text-shadow: 4px 4px 0 #000;
}
.lede { margin: 14px 0 22px; max-width: 56ch; font-size: clamp(16px, 2.4vw, 19px); color: var(--paper); }

.search { display: flex; gap: 10px; align-items: stretch; }
.search input {
  flex: 1; min-width: 0; min-height: 60px; padding: 0 18px; font-size: 19px; font-weight: 500;
  background: var(--white); color: var(--ink); border: var(--line); border-radius: 6px;
  box-shadow: 5px 5px 0 var(--yellow);
}
.search input::placeholder { color: #6b6553; font-weight: 400; }
.search .btn-go { min-height: 60px; padding: 0 26px; border-color: var(--ink); box-shadow: 5px 5px 0 #000; }

.load { margin-top: 14px; min-height: 34px; }
.load-bar { height: 6px; background: rgba(255, 255, 255, .16); border-radius: 3px; overflow: hidden; }
.load-bar span { display: block; height: 100%; width: var(--p, 0%); background: var(--yellow); transition: width .2s ease; }
.load p { margin: 6px 0 0; font-size: 13.5px; color: var(--paper-2); font-variant-numeric: tabular-nums; }
.load.done .load-bar { display: none; }

.chips { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips button {
  background: transparent; color: var(--paper); border: 2px solid rgba(246, 241, 228, .55);
  border-radius: 20px; padding: 6px 14px; min-height: 36px; cursor: pointer; font-size: 14px; font-weight: 500;
}
.chips button:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }

/* Recherche active : le héros se replie pour que les résultats soient visibles tout de suite. */
.searching .hero-inner { padding-top: 16px; padding-bottom: 16px; }
.searching .kicker, .searching .lede, .searching .chips { display: none; }
.searching h1 { font-size: clamp(22px, 4vw, 32px); text-shadow: 2px 2px 0 #000; margin-bottom: 10px; }
.searching .search input, .searching .search .btn-go { min-height: 50px; }
.searching .load.done { display: none; }
.searching .inventory { padding-top: 16px; }

/* Inventaire */
.inventory { padding: 26px 0 40px; }
.fwrap > summary {
  display: none; cursor: pointer; font-weight: 700; padding: 12px 14px; min-height: 44px;
  background: var(--white); border: 2px solid var(--ink); border-radius: 8px; list-style-position: inside;
}
.fwrap[open] > summary { margin-bottom: 10px; }
.filters {
  display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: flex-end;
  padding: 14px; background: var(--white); border: var(--line); border-radius: 8px; box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; flex: 1 1 200px; }
.field-s { flex: 0 1 110px; }
.field select, .field input {
  min-height: 44px; padding: 0 10px; background: var(--paper); border: 2px solid var(--ink); border-radius: 5px;
  font-size: 15px; font-weight: 500; text-transform: none; letter-spacing: 0; width: 100%;
}
.check { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }

.summary { margin: 22px 2px 10px; font-size: 15px; color: var(--muted); min-height: 22px; font-variant-numeric: tabular-nums; }
.summary strong { color: var(--ink); }

.results { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.item {
  display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: center;
  padding: 12px 14px; background: var(--white); border: 2px solid var(--ink); border-radius: 8px;
}
.item:hover { box-shadow: 4px 4px 0 var(--ink); }
.item h3 { margin: 0; font-size: 17px; line-height: 1.25; font-weight: 700; overflow-wrap: anywhere; }
.item .iss { display: inline-block; margin-left: 4px; padding: 0 7px; background: var(--ink); color: var(--yellow); border-radius: 4px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.item .ext { color: var(--muted); font-weight: 600; font-size: 14px; margin-left: 4px; }
.item .meta { margin: 3px 0 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 7px 0 0; padding: 0; list-style: none; }
.tag { font-size: 12.5px; font-weight: 600; padding: 2px 8px; border-radius: 4px; border: 1.5px solid var(--ink); background: var(--paper); overflow-wrap: anywhere; }
.tag.key { background: var(--yellow); }
.tag.grade { background: var(--ink); color: var(--white); }
.tag.grade.slab { background: var(--red); border-color: var(--red); }
.tag.cat { border-style: dashed; color: var(--muted); border-color: var(--muted); background: transparent; }
.item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.price { font-family: var(--display); font-size: 24px; line-height: 1; white-space: nowrap; }
.price.ask { font-family: var(--body); font-size: 14px; font-weight: 700; color: var(--muted); }
.add { min-height: 40px; padding: 6px 12px; font-size: 14px; white-space: nowrap; }
.add.in { background: var(--ink); color: var(--yellow); }
.more { text-align: center; margin: 18px 0 0; }
.empty { padding: 22px; background: var(--white); border: 2px dashed var(--ink); border-radius: 8px; }

.h-sec { margin: 34px 0 14px; font-family: var(--display); font-weight: 400; font-size: clamp(24px, 4.4vw, 34px); text-transform: uppercase; letter-spacing: .4px; line-height: 1.05; }
.cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.cats button {
  width: 100%; text-align: left; cursor: pointer; padding: 12px 14px; min-height: 76px;
  background: var(--white); border: 2px solid var(--ink); border-radius: 8px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 4px;
}
.cats button:hover { background: var(--yellow); box-shadow: 4px 4px 0 var(--ink); transform: translate(-1px, -1px); }
.cats .n { font-family: var(--display); font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.cats .l { font-size: 14px; font-weight: 600; line-height: 1.25; }

.notfound {
  margin: 30px 0 0; padding: 16px 18px; background: var(--yellow); border: var(--line); border-radius: 8px;
  font-weight: 600; box-shadow: var(--shadow);
}

/* Services */
.services { padding: 46px 0; background: var(--paper-2); border-top: var(--line); border-bottom: var(--line); }
.h-big { margin: 0 0 20px; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(34px, 7vw, 60px); line-height: 1; }
.panels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.panel { padding: 20px; border: var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.panel h3 { margin: 6px 0 6px; font-size: 20px; }
.panel p { margin: 0; }
.panel-n { font-family: var(--display); font-size: 54px; line-height: 1; }
.p-yellow { background: var(--yellow); }
.p-ink { background: var(--ink); color: var(--paper); box-shadow: 5px 5px 0 var(--yellow); }
.p-ink .panel-n { color: var(--yellow); }
.p-paper { background: var(--white); }

/* Visite */
.visit { padding: 46px 0; }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.addr { font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.tel { font-family: var(--display); font-size: 30px; text-decoration: none; border-bottom: 4px solid var(--yellow); }
.hours { width: 100%; border-collapse: collapse; background: var(--white); border: var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.hours caption { text-align: left; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; font-size: 13px; padding: 0 0 8px; }
.hours th, .hours td { padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--paper-2); font-weight: 500; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.today th, .hours tr.today td { background: var(--yellow); font-weight: 700; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }

.foot { padding: 22px 16px 30px; background: var(--ink); color: var(--paper-2); font-size: 13px; text-align: center; }
.foot p { margin: 4px auto; max-width: 70ch; }

/* Tiroir « Ma liste » */
.drawer {
  margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(460px, 100vw); max-width: 100vw;
  padding: 0; border: 0; border-left: var(--line); background: var(--paper); color: var(--ink);
  overflow-y: auto;
}
.drawer::backdrop { background: rgba(14, 14, 14, .6); }
.drawer-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--yellow); border-bottom: var(--line); }
.drawer-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 26px; text-transform: uppercase; }
.x { background: var(--ink); color: var(--yellow); border: 0; width: 44px; height: 44px; border-radius: 6px; font-size: 26px; line-height: 1; cursor: pointer; }
.drawer-empty { padding: 20px 16px; color: var(--muted); }
.list-items { list-style: none; margin: 0; padding: 12px 16px; display: grid; gap: 8px; }
.list-items li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 12px; background: var(--white); border: 2px solid var(--ink); border-radius: 6px; font-size: 14.5px; }
.list-items .lt { font-weight: 700; overflow-wrap: anywhere; }
.list-items .lm { grid-column: 1 / 2; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.list-items .lp { font-weight: 700; white-space: nowrap; text-align: right; }
.list-items .rm { grid-column: 2 / 3; justify-self: end; background: none; border: 0; text-decoration: underline; cursor: pointer; font-size: 13px; min-height: 32px; color: var(--ink-2); }
.drawer-foot { padding: 6px 16px 26px; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; margin: 6px 0; }
.total strong { font-family: var(--display); font-weight: 400; font-size: 28px; }
.hint { font-size: 13px; color: var(--muted); margin: 6px 0 12px; }
.mail textarea { width: 100%; padding: 10px; border: 2px solid var(--ink); border-radius: 6px; background: var(--white); font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; }
.mail { margin-top: 14px; }

@media (max-width: 760px) {
  .nav { display: none; }
  .top-actions { margin-left: auto; }
  .logo svg { width: 112px; }
  .hero-inner { padding: 30px 16px 26px; }
  .search { flex-direction: column; }
  .search .btn-go { justify-content: center; }
  .searching .search { flex-direction: row; }
  .searching .search .btn-go { display: none; }
  .concept { font-size: 11.5px; padding: 5px 10px; }
  .item { grid-template-columns: 1fr; }
  .item-side { flex-direction: row; justify-content: space-between; align-items: center; }
  .visit-grid { grid-template-columns: 1fr; }
  .fwrap > summary { display: block; }
  .field { flex: 1 1 100%; }
  .field-s { flex: 1 1 calc(50% - 7px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .load-bar span { transition: none; }
  .hero::before, .hero::after { transition: none; }
}
