/* Accueil — Galerie de collection. Styles isolés du thème global. */
.ltx-home {
  --ltx-bg: #0b141c;
  --ltx-surface: #121f29;
  --ltx-photo: #182731;
  --ltx-text: #f3f0e9;
  --ltx-muted: #aab7bf;
  --ltx-gold: #dcc394;
  --ltx-line: #2c3a44;
  --ltx-body: Inter, system-ui, sans-serif;
  --ltx-heading: Georgia, "Times New Roman", serif;
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: var(--ltx-bg);
  color: var(--ltx-text);
  font: 400 1rem/1.65 var(--ltx-body);
  color-scheme: dark;
}
.ltx-home *, .ltx-home *::before, .ltx-home *::after { box-sizing: border-box; }
.ltx-home .ltx-container { width: min(100%, 1200px); margin-inline: auto; padding-inline: 16px; }
.ltx-home .ltx-section { padding-block: 36px; }
.ltx-home a { text-decoration: none; }
.ltx-home :is(a, button, input, select):focus-visible { outline: 2px solid var(--ltx-gold); outline-offset: 5px; }
.ltx-home svg { flex: 0 0 auto; }
.ltx-home .ltx-eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; color: var(--ltx-gold); font: 500 .6875rem/1.6 var(--ltx-body); text-transform: uppercase; letter-spacing: .15em; }
.ltx-home .ltx-eyebrow__line { width: 24px; height: 1px; flex: 0 0 auto; background: currentColor; }
.ltx-home .ltx-title { margin: 0; color: var(--ltx-text); font: 400 clamp(1.5rem, 1.15rem + 1.2vw, 2rem)/1.25 var(--ltx-heading); letter-spacing: -.025em; text-wrap: balance; }
.ltx-home .ltx-title em { color: var(--ltx-gold); font-weight: inherit; }
.ltx-home .ltx-note { margin: 12px 0 0; color: var(--ltx-muted); font-size: .9375rem; }
.ltx-home .ltx-section__heading { display: flex; align-items: start; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.ltx-home .ltx-btn { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 48px; padding: 12px 20px; border: 1px solid transparent; border-radius: 5px; font: 600 .875rem/1.5 var(--ltx-body); text-align: center; cursor: pointer; transition: background-color 180ms ease, border-color 180ms ease; }
.ltx-home .ltx-btn--gold { background: var(--ltx-gold); color: #17212a; }
.ltx-home .ltx-text-link { display: inline-flex; align-items: center; justify-content: flex-start; gap: 10px; min-height: 44px; color: var(--ltx-text); font: 500 .8125rem/1.5 var(--ltx-body); text-underline-offset: 5px; }

/* Intro compacte : texte et vrai visuel de collection. */
.ltx-home .ltx-hero { display: grid; gap: 28px; align-items: center; padding-block: 36px 28px; }
.ltx-home .ltx-hero__inner { min-width: 0; }
.ltx-home .ltx-hero__title { margin: 0; color: var(--ltx-text); font: 400 clamp(2rem, 1.6rem + 1.8vw, 2.875rem)/1.13 var(--ltx-heading); letter-spacing: -.035em; text-wrap: balance; }
.ltx-home .ltx-hero__title em { color: var(--ltx-gold); font-weight: inherit; }
.ltx-home .ltx-hero__desc { max-width: 48ch; margin: 20px 0 0; color: var(--ltx-muted); font-size: 1rem; line-height: 1.75; }
.ltx-home .ltx-hero__ctas { display: flex; align-items: flex-start; flex-direction: column; gap: 8px; margin-top: 24px; }
.ltx-home .ltx-hero__footnote { margin: 18px 0 0; color: var(--ltx-muted); font-size: .75rem; }
.ltx-home .ltx-hero__visual { position: relative; display: grid; place-items: center; isolation: isolate; min-width: 0; margin: 0; padding: 20px 32px 50px; border: 1px solid var(--ltx-line); border-radius: 100px 100px 8px 8px; background: radial-gradient(ellipse at 50% 45%, #29424a 0, #15232d 48%, #101c26 75%); }
.ltx-home .ltx-hero__image { position: relative; z-index: 1; display: block; width: 100%; height: 210px; max-width: 260px; object-fit: contain; }
.ltx-home .ltx-hero__orbit { position: absolute; width: 72%; aspect-ratio: 1; border: 1px solid #dcc39430; border-radius: 50%; pointer-events: none; }
.ltx-home .ltx-hero__orbit::after { content: ''; position: absolute; inset: 12px; border: 1px solid #dcc39414; border-radius: inherit; }
.ltx-home .ltx-hero__vertical { position: absolute; top: 50%; right: 14px; writing-mode: vertical-rl; transform: translateY(-50%); font-size: .5625rem; letter-spacing: .24em; color: var(--ltx-muted); }
.ltx-home .ltx-hero__caption { position: absolute; inset: auto 16px 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; font-size: .625rem; color: var(--ltx-muted); }
.ltx-home .ltx-hero__caption span:first-child { color: var(--ltx-gold); }

/* Chiffres discrets, toujours fournis par le serveur. */
.ltx-home .ltx-stats__items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; margin: 0; padding-block: 24px; border-block: 1px solid var(--ltx-line); }
.ltx-home .ltx-stats__cell { display: flex; flex-direction: column-reverse; gap: 4px; min-width: 0; text-align: center; }
.ltx-home .ltx-stats__cell dt { color: var(--ltx-muted); font-size: .75rem; }
.ltx-home .ltx-stats__cell dd { margin: 0; color: var(--ltx-gold); font: 500 1.5rem/1.1 var(--ltx-body); font-variant-numeric: tabular-nums; }

/* Filtres visibles, contrôles tactiles et champs sans débordement. */
.ltx-home .ltx-search { scroll-margin-top: 100px; }
.ltx-home .ltx-search__panel { margin: 0; padding: 16px; background: var(--ltx-surface); border: 1px solid var(--ltx-line); border-radius: 8px; }
.ltx-home .ltx-search__types { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.ltx-home .ltx-chip { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; border: 1px solid var(--ltx-line); border-radius: 4px; color: var(--ltx-muted); background: transparent; font: 500 .8125rem/1.4 var(--ltx-body); cursor: pointer; transition: background-color 180ms ease, color 180ms ease; }
.ltx-home .ltx-chip.is-on { color: var(--ltx-gold); border-color: var(--ltx-gold); background: #dcc39410; }
.ltx-home .ltx-search__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; align-items: end; }
.ltx-home .ltx-field { display: grid; min-width: 0; gap: 8px; margin: 0; }
.ltx-home .ltx-field--query, .ltx-home .ltx-field--universe, .ltx-home .ltx-search__go { grid-column: 1 / -1; }
.ltx-home .ltx-field > span { color: var(--ltx-muted); font-size: .75rem; }
.ltx-home .ltx-field input, .ltx-home .ltx-field select { display: block; min-width: 0; width: 100%; min-height: 48px; margin: 0; padding: 10px 12px; border: 1px solid #40505c; border-radius: 4px; background: var(--ltx-bg); color: var(--ltx-text); font: 400 1rem/1.5 var(--ltx-body); }
.ltx-home .ltx-field input::placeholder { opacity: 1; color: var(--ltx-muted); }
.ltx-home .ltx-universes { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin-top: 16px; font-size: .75rem; }
.ltx-home .ltx-universes > span { color: var(--ltx-muted); }
.ltx-home .ltx-universes a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ltx-text); text-underline-offset: 5px; }

/* Grille, pas de carrousel caché : chaque photo reste entière. */
.ltx-home .ltx-featured { border-top: 1px solid var(--ltx-line); }
.ltx-home .ltx-featured__items { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px 12px; margin: 0; padding: 0; list-style: none; }
.ltx-home .ltx-card { min-width: 0; margin: 0; padding: 0; }
.ltx-home .ltx-card__link { display: block; color: var(--ltx-text); border-radius: 6px; }
.ltx-home .ltx-card__media { display: block; position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ltx-photo); border: 1px solid var(--ltx-line); border-radius: 6px; transition: border-color 180ms ease; }
.ltx-home .ltx-card__media picture { display: block; width: 100%; height: 100%; }
.ltx-home .ltx-card__media img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; padding: 12px; object-fit: contain; object-position: center; }
.ltx-home .ltx-card__badge { position: absolute; left: 10px; top: 10px; max-width: calc(100% - 20px); padding: 4px 8px; color: var(--ltx-text); background: #0b141ce8; border: 1px solid #ffffff20; border-radius: 3px; font-size: .625rem; overflow-wrap: anywhere; }
.ltx-home .ltx-card__placeholder { display: grid; place-items: center; height: 100%; color: var(--ltx-muted); font-size: .875rem; }
.ltx-home .ltx-card__meta { display: grid; gap: 5px; padding-top: 12px; }
.ltx-home .ltx-card__title { color: var(--ltx-text); font-size: .875rem; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.ltx-home .ltx-card__price { color: var(--ltx-gold); font-size: 1rem; font-weight: 600; }
.ltx-home .ltx-card__city { color: var(--ltx-muted); font-size: .75rem; }

.ltx-home .ltx-cta { padding-bottom: 48px; }
.ltx-home .ltx-cta__frame { display: grid; gap: 24px; padding: 24px; border: 1px solid #dcc39445; border-radius: 8px; background: linear-gradient(110deg, #dcc39409, transparent 70%); }
.ltx-home .ltx-cta__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }

/* Le thème partagé impose ces propriétés avec !important : isoler l'accueil. */
.ltx-home .ltx-hero__title { font-size: clamp(1.875rem, 1.6rem + 1.8vw, 2.875rem) !important; }
.ltx-home .ltx-title { font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2rem) !important; }
.ltx-home .ltx-btn--gold { background: var(--ltx-gold) !important; color: #17212a !important; border-color: transparent !important; }
.ltx-home .ltx-field input, .ltx-home .ltx-field select { background: var(--ltx-bg) !important; color: var(--ltx-text) !important; border-color: var(--ltx-line) !important; }
.ltx-home .ltx-field input::placeholder { color: var(--ltx-muted) !important; }
.ltx-home .ltx-chip { flex: 1 1 calc(50% - 8px); }

[data-theme="light"] .ltx-home {
  --ltx-bg: #f7f5ef;
  --ltx-surface: #ffffff;
  --ltx-photo: #eeece5;
  --ltx-text: #172a35;
  --ltx-muted: #546571;
  --ltx-gold: #82602b;
  --ltx-line: #d6d9d7;
  color-scheme: light;
}
[data-theme="light"] .ltx-home .ltx-btn--gold { background: #dcc394 !important; }
[data-theme="light"] .ltx-home .ltx-card__badge { color: #f3f0e9; }
[data-theme="light"] .ltx-home .ltx-hero__visual {
  background: var(--ltx-bg);
  border-color: var(--ltx-line);
  color: var(--ltx-text);
}
[data-theme="light"] .ltx-home .ltx-hero__orbit {
  border-color: #82602b38;
}
[data-theme="light"] .ltx-home .ltx-hero__orbit::after {
  border-color: #82602b20;
}
[data-theme="light"] .ltx-home .ltx-hero__caption,
[data-theme="light"] .ltx-home .ltx-hero__vertical { color: var(--ltx-muted); }
[data-theme="light"] .ltx-home .ltx-hero__caption span:first-child { color: var(--ltx-gold); }
.ltx-home .ltx-hero__visual { color: #f3f0e9; }
.ltx-home .ltx-hero__caption, .ltx-home .ltx-hero__vertical { color: #aab7bf; }
.ltx-home .ltx-hero__caption span:first-child { color: #dcc394; }

@media (min-width: 360px) {
  .ltx-home .ltx-featured__items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 480px) {
  .ltx-home .ltx-container { padding-inline: 24px; }
  .ltx-home .ltx-chip { flex: 0 1 auto; }
  .ltx-home .ltx-hero__ctas { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px; }
}
@media (min-width: 768px) {
  .ltx-home .ltx-container { padding-inline: 32px; }
  .ltx-home .ltx-section { padding-block: 48px; }
  .ltx-home .ltx-hero { grid-template-columns: 1.15fr 1fr; gap: 48px; padding-block: 44px; }
  .ltx-home .ltx-hero__visual { padding: 24px 40px 56px; border-radius: 180px 180px 8px 8px; }
  .ltx-home .ltx-hero__image { height: 330px; }
  .ltx-home .ltx-hero__caption { inset-inline: 20px; font-size: .6875rem; }
  .ltx-home .ltx-stats__items { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .ltx-home .ltx-stats__cell + .ltx-stats__cell { border-left: 1px solid var(--ltx-line); }
  .ltx-home .ltx-section__heading { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; }
  .ltx-home .ltx-section__heading > .ltx-text-link { flex: 0 0 auto; }
  .ltx-home .ltx-search__panel { padding: 24px; }
  .ltx-home .ltx-search__fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ltx-home .ltx-field--query, .ltx-home .ltx-field--universe { grid-column: span 2; }
  .ltx-home .ltx-search__go { grid-column: span 2; }
  .ltx-home .ltx-featured__items { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
  .ltx-home .ltx-card__media { aspect-ratio: 1; }
  .ltx-home .ltx-card__media img { padding: 20px; }
  .ltx-home .ltx-cta__frame { grid-template-columns: 1fr auto; align-items: center; padding: 36px; }
}
@media (min-width: 1024px) {
  .ltx-home .ltx-search__fields { grid-template-columns: minmax(0, 2.3fr) minmax(0, 1.6fr) minmax(0, .9fr) minmax(0, 1fr) auto; gap: 14px; }
  .ltx-home .ltx-field--query, .ltx-home .ltx-field--universe, .ltx-home .ltx-search__go { grid-column: auto; }
}
@media (hover: hover) {
  .ltx-home .ltx-btn--gold:hover { background: #ecd6ae !important; }
  .ltx-home .ltx-text-link:hover, .ltx-home .ltx-universes a:hover { color: var(--ltx-gold); text-decoration: underline; }
  .ltx-home .ltx-chip:hover { color: var(--ltx-gold); background: #dcc39412; }
  .ltx-home .ltx-card__link:hover .ltx-card__media { border-color: var(--ltx-gold); }
}
@media (prefers-reduced-motion: reduce) {
  .ltx-home *, .ltx-home *::before, .ltx-home *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


/* Titre d'accueil — registre « catalogue » : n° d'inventaire en mono, serif
   dense et grasse, mot-clé surligné à l'encre plutôt qu'en italique doré. */
.ltx-home { --ltx-mark: rgba(220, 195, 148, .34); }
[data-theme="light"] .ltx-home { --ltx-mark: rgba(220, 184, 116, .55); }
.ltx-home .ltx-hero .ltx-eyebrow { gap: 10px; margin: 0 0 20px; color: var(--ltx-muted); font: 500 .6875rem/1.4 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .04em; text-transform: none; }
.ltx-home .ltx-hero .ltx-eyebrow__line { width: auto; height: auto; padding: 3px 7px; border: 1px solid currentColor; border-radius: 2px; background: none; color: var(--ltx-text); }
.ltx-home .ltx-hero .ltx-eyebrow__line::before { content: "Nº 001"; }
.ltx-home .ltx-hero__title { font-family: Fraunces, Georgia, serif !important; font-weight: 600 !important; font-variation-settings: "opsz" 144; font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem) !important; line-height: 1 !important; letter-spacing: -.045em !important; }
.ltx-home .ltx-hero__title em { padding: 0 .08em; margin: 0 -.04em; color: inherit; font-style: normal; background: linear-gradient(transparent 56%, var(--ltx-mark) 56% 90%, transparent 90%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Visuel « viseur » : boucle vidéo par thème ; l'image fixe du même viseur sert de fond
   (premier affichage, chargement, moins d'animations). Le fond de la vidéo = fond de la page,
   bords fondus pour qu'aucun rectangle n'apparaisse. */
.ltx-home .ltx-hero__visual.ltx-hero__visual--scouter { display: block; width: 100%; max-width: 560px; margin-inline: auto; padding: 0; border: 0; border-radius: 0; background: none; }
.ltx-home .ltx-hero__scouter {
  position: relative; width: 100%; aspect-ratio: 760 / 620;
  background: url("/img/accueil/scouter-dark.webp") center / contain no-repeat;
  /* Fondu large en haut et en bas (zones vides de la vidéo), étroit sur les côtés (lentille et oreillette) */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2.5%, #000 97.5%, transparent), linear-gradient(transparent, #000 13%, #000 86%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
[data-theme="light"] .ltx-home .ltx-hero__scouter { background-image: url("/img/accueil/scouter-light.webp"); }
.ltx-home .ltx-hero__scouter video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 240ms ease; }
.ltx-home .ltx-hero__scouter video.is-playing { opacity: 1; }
.ltx-home .ltx-hero__visual--scouter .ltx-hero__caption { inset: auto 4% 2.5%; }
@media (prefers-reduced-motion: reduce) {
  .ltx-home .ltx-hero__scouter video { display: none; }
}

/* Bloc de texte de l'accueil, registre « comics » : titre en lettrage BD (Bangers, OFL),
   cartouche tramé qui « pop », encadré de narration, boutons encrés à ombre dure.
   Encre et ombres suivent le thème ; tout reste lisible sans les effets. */
@font-face { font-family: "Bangers"; src: url("/fonts/bangers-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
.ltx-home { --comic-line: #05090d; --comic-pop: #f3f0e9; --comic-title-shadow: #8c6c36; --comic-dots: rgba(220, 195, 148, .13); }
[data-theme="light"] .ltx-home { --comic-line: #17202a; --comic-pop: #17202a; --comic-title-shadow: #dcc394; --comic-dots: rgba(23, 32, 42, .1); }

.ltx-home .ltx-hero__inner { position: relative; isolation: isolate; }
.ltx-home .ltx-hero__inner::before {
  content: ""; position: absolute; z-index: -1; inset: -24px 0 28% -16px; pointer-events: none;
  background: radial-gradient(circle, var(--comic-dots) 1.4px, transparent 1.9px) 0 0 / 12px 12px;
  -webkit-mask-image: radial-gradient(ellipse 62% 70% at 22% 34%, #000 18%, transparent 74%);
  mask-image: radial-gradient(ellipse 62% 70% at 22% 34%, #000 18%, transparent 74%);
}
.ltx-home .ltx-hero .ltx-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px; padding: 5px 12px 5px 5px;
  /* !important : loguetown-theme-modes.css force la couleur de tous les <p> (clair et sombre) */
  color: #17212a !important; background: #dcc394; border: 2px solid var(--comic-line); border-radius: 2px; box-shadow: 3px 3px 0 var(--comic-pop);
  font: 700 .75rem/1.3 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .05em; text-transform: uppercase; transform: rotate(-1deg);
}
.ltx-home .ltx-hero .ltx-eyebrow__line { padding: 3px 7px; border: 0; border-radius: 1px; background: #17212a; color: #dcc394; }
.ltx-home .ltx-hero .ltx-hero__title {
  font-family: Bangers, Fraunces, Georgia, serif !important; font-weight: 400 !important; font-variation-settings: normal;
  font-size: clamp(2.9rem, 2rem + 3.6vw, 5rem) !important; line-height: .98 !important; letter-spacing: .015em !important;
  text-shadow: .055em .055em 0 var(--comic-title-shadow);
}
.ltx-home .ltx-hero .ltx-hero__title em {
  display: inline-block; margin: .1em 0 0 .08em; padding: .08em .24em .02em; color: #17212a; text-shadow: none;
  background: radial-gradient(circle, rgba(23, 33, 42, .2) 1px, transparent 1.5px) 0 0 / 6px 6px, #dcc394;
  border: 3px solid var(--comic-line); border-radius: 3px; box-shadow: 5px 5px 0 var(--comic-pop);
  transform: rotate(-2.5deg); animation: ltx-comic-pop 520ms cubic-bezier(.2, .9, .3, 1.35) 160ms both;
}
@keyframes ltx-comic-pop {
  from { opacity: 0; transform: rotate(-2.5deg) scale(.5); }
  to { opacity: 1; transform: rotate(-2.5deg) scale(1); }
}
.ltx-home .ltx-hero .ltx-btn--gold {
  border: 2.5px solid var(--comic-line) !important; border-radius: 4px; box-shadow: 4px 4px 0 var(--comic-pop); font-weight: 700;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 180ms ease;
}
.ltx-home .ltx-hero .ltx-btn--gold:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--comic-pop); }
.ltx-home .ltx-hero .ltx-text-link { font-weight: 700; text-decoration: underline; text-decoration-color: #dcc394; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.ltx-home .ltx-hero .ltx-hero__footnote { color: var(--ltx-gold) !important; font-family: Bangers, Inter, system-ui, sans-serif; font-size: 1.0625rem; letter-spacing: .06em; }
@media (hover: hover) {
  .ltx-home .ltx-hero .ltx-btn--gold:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--comic-pop); }
}
