/* ============================================================
   GTout.net — Tableau d'affichage / kraft theme
   Refonte 2026-05-02 (mobile-first 320px+)
   Palette : kraft #f4eddc / sceau rouge #c8202c / lichen #5a8e1a
             charbon #1a1a1a / punaise dorée #d4a52e
   ============================================================ */
:root {
  --kraft: #f4eddc;
  --kraft-2: #ece2cc;
  --accent-red: #c8202c;
  --accent-red-dark: #a51820;
  --accent-green: #5a8e1a;
  --accent-green-dark: #3f6612;
  --ink: #1a1a1a;
  --ink-muted: #4a4338;
  --pin-gold: #d4a52e;
  --paper-shadow: 4px 4px 0 var(--ink);
  --kraft-line: 1px solid var(--ink);
  --rad: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
body {
  font-family: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--kraft);
  background-image:
    radial-gradient(rgba(0,0,0,.04) 1px, transparent 1px),
    radial-gradient(rgba(0,0,0,.03) 1px, transparent 1px);
  background-size: 24px 24px, 17px 17px;
  background-position: 0 0, 12px 12px;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 80px; /* room for mobile bottom bar */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 .6em 0;
  line-height: 1.15;
}
h1 { font-size: clamp(1.5rem, 5vw, 2.5rem); word-break: break-word; }
h2 { font-size: clamp(1.25rem, 3.5vw, 1.75rem); }
h3 { font-size: 1.2rem; }

a { color: var(--accent-red); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ---------- Layout container ---------- */
.gt-shell { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 12px; }
@media (min-width: 768px) { .gt-shell { padding: 0 20px; } }

/* ---------- Header ---------- */
.gt-header {
  background: var(--kraft);
  border-bottom: 2px solid var(--ink);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 0 rgba(0,0,0,.06);
}
.gt-header-inner {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
}
@media (min-width: 768px) { .gt-header-inner { padding: 14px 20px; } }

.gt-logo {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none; line-height: 1;
  display: inline-flex; align-items: baseline;
  white-space: nowrap;
}
.gt-logo:hover { text-decoration: none; color: var(--ink); }
.gt-logo .gt-logo-i { position: relative; display: inline-block; }
.gt-logo .gt-logo-i::before {
  content: '';
  position: absolute; left: 50%; top: -.32em;
  width: 8px; height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 1px 0 rgba(0,0,0,.4);
}
.gt-logo .gt-logo-tld { color: var(--accent-red); font-weight: 800; }

.gt-search {
  flex: 1; min-width: 0;
  display: flex;
  border: var(--kraft-line);
  background: #fff8e7;
  box-shadow: 2px 2px 0 var(--ink);
}
.gt-search input {
  flex: 1; min-width: 0;
  border: 0; background: transparent;
  padding: 8px 12px; font: inherit; color: var(--ink);
  outline: none;
}
.gt-search button {
  border: 0; border-left: var(--kraft-line);
  background: var(--ink); color: var(--kraft);
  padding: 8px 14px; font-family: 'JetBrains Mono', monospace;
  font-size: .8rem; font-weight: 700; cursor: pointer;
  text-transform: uppercase; letter-spacing: .05em;
}
.gt-search button:hover { background: var(--accent-red); }

.gt-nav-desktop { display: none; }
@media (min-width: 992px) {
  .gt-nav-desktop { display: flex; gap: 16px; align-items: center; }
  .gt-nav-desktop a {
    color: var(--ink); font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 600; font-size: .95rem;
  }
  .gt-nav-desktop a:hover { color: var(--accent-red); text-decoration: none; }
  .gt-nav-cta {
    background: var(--accent-red); color: #fff !important;
    padding: 8px 16px; box-shadow: 3px 3px 0 var(--ink);
    text-transform: uppercase; font-size: .85rem !important;
    letter-spacing: .03em;
  }
  .gt-nav-cta:hover {
    background: var(--accent-red-dark);
    transform: translate(1px,1px); box-shadow: 2px 2px 0 var(--ink);
  }
}

/* ---------- Main layout ---------- */
.gt-main {
  display: block;
  padding: 16px 0;
}
@media (min-width: 992px) {
  .gt-main { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 24px 0; }
}

.gt-sidebar { display: none; }
@media (min-width: 992px) {
  .gt-sidebar {
    display: block;
    align-self: start;
    position: sticky; top: 90px;
  }
  .gt-sidebar h3 {
    font-size: .8rem; text-transform: uppercase; letter-spacing: .08em;
    font-family: 'JetBrains Mono', monospace; font-weight: 700;
    border-bottom: var(--kraft-line); padding-bottom: 8px; margin-bottom: 8px;
  }
  .gt-sidebar ul { list-style: none; padding: 0; margin: 0; }
  .gt-sidebar li a {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 6px; color: var(--ink);
    border-bottom: 1px dashed rgba(0,0,0,.15);
    font-size: .95rem;
  }
  .gt-sidebar li a:hover { background: var(--kraft-2); color: var(--accent-red); text-decoration: none; }
  .gt-sidebar .gt-sidebar-icon {
    width: 20px; text-align: center; color: var(--accent-green-dark);
    font-weight: 700; font-family: 'JetBrains Mono', monospace;
  }
}

/* ---------- Hero ---------- */
.gt-hero {
  background: #fff8e7;
  border: var(--kraft-line);
  box-shadow: var(--paper-shadow);
  padding: 20px 16px;
  margin: 12px 0 20px 0;
  position: relative;
  transform: rotate(-.3deg);
}
.gt-hero::before {
  content: ''; position: absolute;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--pin-gold);
  border: 2px solid var(--ink);
  top: -7px; left: 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.gt-hero h1 {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  margin: 0 0 .4em 0;
  word-break: break-word;
  hyphens: auto;
}
.gt-hero p {
  margin: 0; color: var(--ink-muted);
  font-style: italic; font-size: clamp(.95rem, 2.5vw, 1.05rem);
}

/* ---------- Cat grid (home) ---------- */
.gt-cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0 0 24px 0;
}
@media (min-width: 480px) { .gt-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (min-width: 768px) { .gt-cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .gt-cat-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }

.gt-cat-card {
  display: flex; align-items: center; gap: 12px;
  background: #fff8e7;
  border: var(--kraft-line);
  box-shadow: var(--paper-shadow);
  padding: 14px 14px;
  color: var(--ink); text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
  min-height: 64px;
}
.gt-cat-card:hover {
  transform: translate(2px,2px);
  box-shadow: 2px 2px 0 var(--ink);
  text-decoration: none; color: var(--ink);
  background: var(--kraft-2);
}
.gt-cat-card .gt-cat-emoji {
  font-size: 1.4rem; line-height: 1;
  width: 36px; height: 36px; flex: 0 0 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--kraft); border-radius: 50%;
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(0,0,0,.3);
}
.gt-cat-card .gt-cat-label {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700; font-size: 1rem;
  line-height: 1.2;
}

/* ---------- Listing ---------- */
.gt-listing {
  display: grid; grid-template-columns: 1fr; gap: 14px;
  margin: 0;
}
@media (min-width: 768px) {
  .gt-listing { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
}

.gt-card {
  background: #fff8e7;
  border: var(--kraft-line);
  box-shadow: var(--paper-shadow);
  display: block;
  color: var(--ink); text-decoration: none;
  position: relative;
  transition: transform .12s ease, box-shadow .12s ease;
  overflow: hidden;
}
.gt-card:hover {
  transform: translate(2px,2px);
  box-shadow: 2px 2px 0 var(--ink);
  color: var(--ink); text-decoration: none;
}
.gt-card-inner {
  display: flex; align-items: stretch;
  min-height: 110px;
}
.gt-card-text {
  flex: 1; min-width: 0;
  padding: 12px 12px 12px 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.gt-card-photo {
  flex: 0 0 110px; width: 110px;
  background: var(--kraft-2) center/cover no-repeat;
  border-left: var(--kraft-line);
  position: relative;
}
@media (min-width: 480px) { .gt-card-photo { flex-basis: 130px; width: 130px; } }
.gt-card-noimg::after {
  content: 'Sans photo'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-size: .7rem;
  color: rgba(0,0,0,.35); text-align: center;
}
.gt-card-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700; font-size: 1.02rem;
  line-height: 1.25;
  margin: 0;
  color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.gt-card-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--ink-muted);
  margin: 0;
}
.gt-card-price {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800; color: var(--accent-green-dark);
  font-size: 1.1rem;
}

/* sceau catégorie */
.gt-card-seal {
  position: absolute; top: -6px; left: -6px;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent-red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: .62rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .03em;
  text-align: center; line-height: 1.05;
  padding: 4px;
  transform: rotate(-8deg);
  border: 2px solid var(--ink);
  box-shadow: 1px 1px 0 var(--ink);
  z-index: 2;
  pointer-events: none;
}

/* ---------- Breadcrumb ---------- */
.gt-breadcrumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: .78rem;
  color: var(--ink-muted);
  margin: 0 0 14px 0;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(0,0,0,.2);
  word-break: break-word;
}
.gt-breadcrumb a { color: var(--ink-muted); }
.gt-breadcrumb a:hover { color: var(--accent-red); }
.gt-breadcrumb .gt-bc-sep { margin: 0 4px; opacity: .5; }
.gt-breadcrumb .gt-bc-current { color: var(--ink); font-weight: 700; }

/* ---------- Pagination ---------- */
.gt-pagination {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 22px 0 8px 0;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
}
.gt-pagination a, .gt-pagination span {
  border: var(--kraft-line);
  background: #fff8e7;
  padding: 6px 11px;
  color: var(--ink);
  font-size: .9rem;
  box-shadow: 2px 2px 0 var(--ink);
}
.gt-pagination a:hover { background: var(--kraft-2); text-decoration: none; }
.gt-pagination .active { background: var(--accent-red); color: #fff; border-color: var(--ink); }

/* ---------- Detail page ---------- */
.gt-detail {
  display: grid; grid-template-columns: 1fr; gap: 18px;
}
@media (min-width: 992px) {
  .gt-detail { grid-template-columns: 1.3fr 1fr; gap: 28px; }
}

.gt-detail-photo {
  width: 100%; max-height: 520px; object-fit: contain;
  background: var(--kraft-2);
  border: var(--kraft-line);
  box-shadow: var(--paper-shadow);
}

.gt-gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  margin-top: 12px;
}
.gt-gallery a { display: block; }
.gt-gallery img {
  width: 100%; height: 70px; object-fit: cover;
  border: var(--kraft-line); background: var(--kraft-2);
}

.gt-detail-title { margin-bottom: .3em; }
.gt-detail-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: .8rem;
  display: flex; flex-wrap: wrap; gap: 10px;
  color: var(--ink-muted);
  margin: 0 0 14px 0;
}
.gt-detail-meta span { display: inline-flex; align-items: center; gap: 4px; }
.gt-detail-pro {
  display: inline-block;
  background: var(--accent-green); color: #fff;
  padding: 2px 8px; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
}

.gt-detail-price {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800; font-size: 2rem;
  color: var(--accent-green-dark);
  border-top: 2px dashed rgba(0,0,0,.25);
  border-bottom: 2px dashed rgba(0,0,0,.25);
  padding: 8px 0; margin: 12px 0 16px 0;
}

.gt-specs {
  background: #fff8e7;
  border: var(--kraft-line);
  box-shadow: var(--paper-shadow);
  padding: 12px 14px;
  margin-bottom: 16px;
}
.gt-specs dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.gt-specs dt {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem; text-transform: uppercase;
  color: var(--ink-muted); align-self: center;
}
.gt-specs dd { margin: 0; font-weight: 600; }

.gt-detail-desc {
  background: #fff8e7;
  border: var(--kraft-line);
  box-shadow: var(--paper-shadow);
  padding: 16px;
  margin-bottom: 16px;
  white-space: pre-line;
  word-wrap: break-word;
}

.gt-tags { margin: 14px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.gt-tag {
  background: var(--kraft-2);
  border: var(--kraft-line);
  padding: 3px 9px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .78rem;
}

/* CTAs */
.gt-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-red); color: #fff;
  border: 2px solid var(--ink);
  padding: 10px 18px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  font-size: .95rem;
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  text-decoration: none;
  margin: 0 8px 8px 0;
}
.gt-cta:hover {
  background: var(--accent-red-dark); color: #fff;
  transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink);
  text-decoration: none;
}
.gt-cta-secondary { background: var(--kraft-2); color: var(--ink); }
.gt-cta-secondary:hover { background: var(--pin-gold); color: var(--ink); }
.gt-cta-gold { background: var(--pin-gold); color: var(--ink); }

/* GOLDS sidebar */
.gt-similar { margin-top: 24px; }
.gt-similar h3 {
  font-size: .85rem; text-transform: uppercase; letter-spacing: .08em;
  font-family: 'JetBrains Mono', monospace; font-weight: 700;
  border-bottom: var(--kraft-line); padding-bottom: 6px;
}
.gt-similar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gt-similar-grid .gt-card { box-shadow: 2px 2px 0 var(--ink); }
.gt-similar-grid .gt-card-photo { flex-basis: 80px; width: 80px; }
.gt-similar-grid .gt-card-inner { min-height: 80px; }
.gt-similar-grid .gt-card-title { font-size: .85rem; }

/* ---------- iframe wrappers ---------- */
.gt-iframe-card {
  background: #fff8e7;
  border: var(--kraft-line);
  box-shadow: var(--paper-shadow);
  padding: 0;
  margin: 0 0 20px 0;
  overflow: hidden;
}
.gt-iframe-card iframe {
  display: block; border: 0; width: 100%;
  background: transparent;
}

/* ---------- Alerts / empty / error ---------- */
.gt-alert {
  background: #fff8e7;
  border-left: 6px solid var(--accent-red);
  border-top: var(--kraft-line);
  border-bottom: var(--kraft-line);
  border-right: var(--kraft-line);
  box-shadow: var(--paper-shadow);
  padding: 18px 16px;
  margin: 16px 0;
  text-align: center;
}
.gt-alert h2, .gt-alert h1 { margin-top: 0; }

/* ---------- Mobile bottom bar (ticket) ---------- */
.gt-bottombar {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: 64px; z-index: 100;
  background: var(--ink); color: var(--kraft);
  display: flex; align-items: stretch;
  justify-content: space-between;
  border-top: 2px solid var(--ink);
  box-shadow: 0 -2px 8px rgba(0,0,0,.18);
}
@media (min-width: 992px) { .gt-bottombar { display: none; } body { padding-bottom: 0; } }

.gt-bottombar a {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--kraft); text-decoration: none;
  font-family: 'JetBrains Mono', monospace; font-size: .65rem;
  text-transform: uppercase; letter-spacing: .05em;
  gap: 2px;
}
.gt-bottombar a:hover { color: #fff; text-decoration: none; }
.gt-bottombar .gt-bb-icon {
  font-size: 1.15rem; line-height: 1;
  font-family: 'Bricolage Grotesque', sans-serif;
}

.gt-bottombar-cta {
  flex: 0 0 auto;
  position: relative;
  align-self: center;
  margin-top: -22px;
  background: var(--accent-red); color: #fff !important;
  height: 56px; padding: 0 22px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: 'Bricolage Grotesque', sans-serif !important;
  font-weight: 800 !important;
  font-size: .85rem !important;
  text-transform: uppercase; letter-spacing: .05em;
  display: inline-flex !important; flex-direction: row !important;
  align-items: center; gap: 6px;
  box-shadow: 0 4px 0 rgba(0,0,0,.4);
}
.gt-bottombar-cta:hover { background-color: var(--accent-red-dark); }
.gt-bottombar-cta::before, .gt-bottombar-cta::after {
  content: ''; position: absolute; top: 50%;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink); transform: translateY(-50%);
}
.gt-bottombar-cta::before { left: -4px; }
.gt-bottombar-cta::after  { right: -4px; }

/* ---------- Footer ---------- */
.gt-footer {
  margin-top: 32px;
  background: var(--ink); color: var(--kraft);
  padding: 24px 0 88px 0; /* leave gap for bottom bar */
  font-size: .9rem;
}
@media (min-width: 992px) { .gt-footer { padding: 28px 0; } }
.gt-footer-cols {
  display: grid; grid-template-columns: 1fr; gap: 18px;
}
@media (min-width: 768px) { .gt-footer-cols { grid-template-columns: repeat(3, 1fr); } }
.gt-footer h4 {
  font-family: 'JetBrains Mono', monospace; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--pin-gold); margin: 0 0 10px 0;
  border-bottom: 1px dashed rgba(244,237,220,.2); padding-bottom: 6px;
}
.gt-footer ul { list-style: none; padding: 0; margin: 0; }
.gt-footer li { margin: 4px 0; }
.gt-footer a { color: var(--kraft); }
.gt-footer a:hover { color: var(--pin-gold); }
.gt-footer-bottom {
  margin-top: 18px; padding-top: 14px;
  border-top: 1px dashed rgba(244,237,220,.2);
  font-size: .78rem; opacity: .8;
  text-align: center;
}

/* ---------- Modal (vanilla, no JS framework) ---------- */
.gt-modal {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.55);
  padding: 16px; overflow-y: auto;
}
.gt-modal.open { display: block; }
.gt-modal-card {
  background: var(--kraft); border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  max-width: 720px; margin: 5vh auto;
  position: relative;
}
.gt-modal-head {
  padding: 12px 16px; border-bottom: var(--kraft-line);
  display: flex; align-items: center; justify-content: space-between;
}
.gt-modal-head h2 { margin: 0; font-size: 1.1rem; }
.gt-modal-close {
  background: transparent; border: 0; font-size: 1.6rem;
  cursor: pointer; color: var(--ink); line-height: 1;
}
.gt-modal-body { padding: 0; min-height: 200px; }

/* ---------- Theme prose (CGU page) ---------- */
.theme-prose * { max-width: 100% !important; word-break: break-word; box-sizing: border-box; }
.theme-prose img, .theme-prose table { width: 100% !important; height: auto !important; }
.theme-prose a { color: var(--accent-red); text-decoration: underline; }
.theme-prose p { margin-bottom: 1em; line-height: 1.6; }
.theme-prose body { background: transparent !important; }
.theme-prose {
  background: #fff8e7;
  border: var(--kraft-line);
  box-shadow: var(--paper-shadow);
  padding: 18px;
  margin: 12px 0 24px 0;
}

/* ---------- Utilities ---------- */
.gt-only-mobile { display: block; }
@media (min-width: 992px) { .gt-only-mobile { display: none; } }
.gt-only-desktop { display: none; }
@media (min-width: 992px) { .gt-only-desktop { display: block; } }

.gt-mt-2 { margin-top: 12px; }
.gt-mb-2 { margin-bottom: 12px; }
.gt-text-center { text-align: center; }
.gt-muted { color: var(--ink-muted); font-size: .9rem; }
