@charset "UTF-8";
/* ============================================================================
   ho-trovato — « LO SCAFFALE »  (feuille unique, préfixe ht-)
   Création 2026-10-14. Site généraliste 100 % italien.

   Métaphore : l'edicola di quartiere. Chaque rubrique est un SCAFFALE
   (étagère) : une barre de bois/encre sous une rangée d'inserzioni.
   Palette : carta (fond chaud neutre) + encre, accents rosso / verde
   désaturés (lecture italienne), panneaux sombres pour le rail et le footer.
   Fonts : Fraunces (display, serif optique) + Archivo (texte).

   SOMMAIRE
     01. Tokens & reset
     02. Typographie & utilitaires
     03. Boutons, chips, note
     04. Insegna (header) + rail de rubriche
     05. Drawer & dialog
     06. Hero + collage « ho trovato »
     07. Tuiles de rubriche
     08. Scaffale (étagère) + rack
     09. Scheda (carte d'annonce)
     10. Listing : en-tête, filtres, grille, vide
     11. Pagination
     12. Fiche détail (pagina aperta)
     13. Pages statiques, prose, FAQ, iframes
     14. Promo / void (404, rimosso)
     15. Footer + barra inferiore
     16. Gate 18+
     17. Media queries & préférences
   ============================================================================ */

/* ---------------------------------------------------------------- 01. TOKENS */
:root {
  color-scheme: light;

  /* Carta & encre */
  --paper:    #f3f2ed;
  --paper-2:  #fffefb;
  --paper-3:  #eae7de;
  --ink:      #17181c;
  --ink-2:    #585b64;
  --ink-3:    #7c8089;
  --line:     #dcd8cd;
  --line-2:   #c8c3b5;

  /* Accents */
  --rosso:    #c8102e;
  --rosso-d:  #a00c24;
  --rosso-w:  #fdecef;
  --verde:    #15704a;
  --verde-w:  #e7f1ec;

  /* Panneaux sombres */
  --panel:    #1c1f25;
  --panel-2:  #2a2e36;
  --on-panel: #f3f2ed;

  /* Rythme */
  --r-sm: 3px;
  --r:    6px;
  --r-lg: 12px;
  --gap:  clamp(14px, 2.2vw, 22px);
  --pad:  clamp(16px, 4vw, 28px);
  --sec:  clamp(34px, 6vw, 62px);
  --wrap: 1180px;

  --sh-1: 0 1px 2px rgba(23, 24, 28, .06), 0 2px 10px rgba(23, 24, 28, .05);
  --sh-2: 0 6px 24px rgba(23, 24, 28, .12);

  /* Fonts */
  --fd: "Fraunces", Georgia, "Times New Roman", serif;
  --fb: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--fb);
  font-size: clamp(15px, 0.9rem + 0.25vw, 17px);
  line-height: 1.55;
  font-synthesis-weight: none;
  padding-bottom: calc(66px + env(safe-area-inset-bottom));   /* barra inferiore */
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--rosso);
  outline-offset: 2px;
  border-radius: 2px;
}

.ht-skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper-2);
  padding: 10px 16px; border-radius: 0 0 var(--r) 0; text-decoration: none;
}
.ht-skip:focus { left: 0; }

.ht-sr {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ------------------------------------------------- 02. TYPO & UTILITAIRES */
.ht-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
.ht-main { display: block; }
.ht-sec  { margin-block: var(--sec); }
.ht-page { margin-block: clamp(20px, 4vw, 40px); }

h1, h2, h3 { font-family: var(--fd); font-weight: 800; line-height: 1.12; margin: 0 0 .45em; letter-spacing: -.01em; }
h1, .ht-h1 { font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.6rem); text-wrap: balance; }
h2 { font-size: clamp(1.25rem, 1rem + 1.1vw, 1.85rem); text-wrap: balance; }
.ht-h2 { font-family: var(--fd); font-size: clamp(1.1rem, 0.95rem + 0.7vw, 1.4rem); font-weight: 700; margin: 1.6em 0 .5em; }
h3 { font-size: 1.02rem; font-weight: 700; }
p { margin: 0 0 .9em; }

.ht-kicker {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--fb); font-size: .74rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--rosso); margin: 0 0 .5em;
}
.ht-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--verde); flex: none; }

.ht-lead  { font-size: clamp(1rem, 0.95rem + 0.35vw, 1.12rem); color: var(--ink-2); max-width: 62ch; }
.ht-muted { color: var(--ink-3); font-size: .9rem; }
.ht-center { text-align: center; }
.ht-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.1em 0; }
.ht-center.ht-actions { justify-content: center; }

.ht-sec__head { margin-bottom: var(--gap); }
.ht-sec__head--row { display: flex; flex-wrap: wrap; gap: 12px var(--gap); align-items: end; justify-content: space-between; }
.ht-sec__sub { color: var(--ink-2); font-size: .95rem; margin: 0; max-width: 62ch; }
.ht-sec__ref {
  display: inline-grid; place-items: center; min-width: 22px; height: 20px;
  padding: 0 5px; margin-right: 2px;
  background: var(--ink); color: var(--paper-2);
  font-family: var(--fb); font-size: .7rem; font-weight: 700; letter-spacing: 0;
  border-radius: var(--r-sm);
}
.ht-count { color: var(--ink-2); font-size: .92rem; margin: .2em 0 0; }
.ht-count b { color: var(--ink); font-weight: 700; }

/* --------------------------------------------- 03. BOUTONS, CHIPS, NOTES */
.ht-btn {
  --btn-bg: var(--paper-2); --btn-fg: var(--ink); --btn-bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd); border-radius: var(--r);
  font-family: var(--fb); font-size: .95rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, transform .12s ease;
}
.ht-btn:hover { border-color: var(--ink); }
.ht-btn:active { transform: translateY(1px); }
.ht-btn--primary { --btn-bg: var(--rosso); --btn-fg: #fff; --btn-bd: var(--rosso); }
.ht-btn--primary:hover { --btn-bg: var(--rosso-d); --btn-bd: var(--rosso-d); }
.ht-btn--ghost { --btn-bg: transparent; }
.ht-btn--sm { min-height: 38px; padding: 7px 13px; font-size: .88rem; }
.ht-btn--lg { min-height: 52px; padding: 13px 26px; font-size: 1.02rem; }

.ht-chip {
  display: inline-block; padding: 1px 7px; border-radius: 999px;
  background: var(--paper-3); color: var(--ink-2);
  font-family: var(--fb); font-size: .68rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; font-style: normal;
}
.ht-chip--new { background: var(--verde-w); color: var(--verde); }

.ht-note {
  border-left: 4px solid var(--verde);
  background: var(--paper-2); border-radius: 0 var(--r) var(--r) 0;
  padding: 12px 16px; margin: var(--gap) 0;
  font-size: .94rem; color: var(--ink-2);
}
.ht-note b { color: var(--ink); }
.ht-note--sub { border-left-color: var(--rosso); }
.ht-note--slim { padding: 9px 13px; font-size: .88rem; margin: 1em 0; }

/* Timbro de prix + drapeau « in evidenza » */
.ht-stamp {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  padding: 4px 10px;
  background: var(--paper-2); color: var(--ink);
  border: 1.5px solid var(--rosso); border-radius: var(--r-sm);
  font-family: var(--fd); font-size: .98rem; font-weight: 800;
  box-shadow: var(--sh-1); rotate: -2.5deg;
}
.ht-flag {
  position: absolute; right: 0; top: 10px; z-index: 2;
  padding: 3px 10px 3px 12px;
  background: var(--verde); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  border-radius: var(--r-sm) 0 0 var(--r-sm);
}
.ht-flag--abs { position: absolute; }

/* ------------------------------------------ 04. INSEGNA (header) + RAIL */
.ht-insegna {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 92%, #fff);
  border-bottom: 1px solid var(--line);
}
@supports not (background: color-mix(in srgb, red, blue)) {
  .ht-insegna { background: #f6f5f1; }
}
.ht-insegna__in {
  max-width: var(--wrap); margin-inline: auto; padding: 10px 16px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px 14px;
}

.ht-brand {
  position: relative; display: inline-flex; align-items: baseline; gap: 2px;
  text-decoration: none; padding-bottom: 4px; flex: none;
}
.ht-brand__word {
  font-family: var(--fd); font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(1.25rem, 1rem + 1.1vw, 1.7rem); line-height: 1;
}
.ht-brand__word--em { color: var(--rosso); }
.ht-brand__rule {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--verde) 0 33%, var(--paper-2) 33% 66%, var(--rosso) 66% 100%);
  border-radius: 2px;
}

.ht-find { display: flex; align-items: stretch; gap: 6px; min-width: 0; }
.ht-find input {
  flex: 1 1 auto; min-width: 0; min-height: 44px;
  padding: 10px 14px;
  background: var(--paper-2); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: var(--r);
  font: inherit;
}
.ht-find input::placeholder { color: var(--ink-3); }
.ht-find > button {
  flex: none; min-width: 48px; min-height: 44px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--paper-2);
  border: 1px solid var(--ink); border-radius: var(--r); cursor: pointer;
}
.ht-find > button svg { width: 20px; height: 20px; }
.ht-find--top { display: none; }
.ht-find--hero { margin: 1.2em 0; max-width: 540px; }
.ht-find--hero .ht-btn { flex: none; }

.ht-insegna__cta { display: none; }
.ht-burger {
  flex: none; width: 46px; height: 44px;
  display: grid; place-content: center; gap: 5px;
  background: var(--paper-2); border: 1px solid var(--line-2);
  border-radius: var(--r); cursor: pointer;
}
.ht-burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }

.ht-rail { background: var(--panel); color: var(--on-panel); }
.ht-rail__in {
  max-width: var(--wrap); margin-inline: auto;
  display: flex; gap: 2px; align-items: stretch;
  overflow-x: auto; scrollbar-width: none;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.ht-rail__in::-webkit-scrollbar { display: none; }
.ht-rail__in > a, .ht-rail__more {
  flex: none; scroll-snap-align: start;
  padding: 11px 14px; min-height: 42px;
  display: inline-flex; align-items: center;
  background: transparent; border: 0; border-bottom: 3px solid transparent;
  color: color-mix(in srgb, var(--on-panel) 78%, transparent);
  font-size: .9rem; font-weight: 500; text-decoration: none;
  white-space: nowrap; cursor: pointer;
}
@supports not (color: color-mix(in srgb, red, blue)) {
  .ht-rail__in > a, .ht-rail__more { color: #cfcdc6; }
}
.ht-rail__in > a:hover, .ht-rail__more:hover { color: #fff; background: var(--panel-2); }
.ht-rail__in > a[aria-current="page"] { color: #fff; border-bottom-color: var(--rosso); font-weight: 700; }
.ht-rail__more { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------- 05. DRAWER & DIALOG */
.ht-drawer, .ht-dlg {
  border: 0; padding: 0; max-width: none; max-height: none;
  background: var(--paper-2); color: var(--ink);
}
.ht-drawer::backdrop, .ht-dlg::backdrop { background: rgba(23, 24, 28, .55); }
.ht-drawer {
  width: min(380px, 92vw); height: 100%; max-height: 100dvh;
  margin: 0 0 0 auto; padding: 16px 16px calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto; border-left: 1px solid var(--line);
}
.ht-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ht-drawer__title { font-family: var(--fd); font-weight: 800; font-size: 1.2rem; }
.ht-x {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--paper-3); border: 1px solid var(--line-2); border-radius: var(--r);
  font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.ht-drawer__h {
  font-family: var(--fb); font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
  margin: 1.4em 0 .4em;
}
.ht-drawer__list { list-style: none; margin: 0; padding: 0; }
.ht-drawer__list a {
  display: flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 8px 10px;
  border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500;
}
.ht-drawer__list a:hover { background: var(--paper-3); }
.ht-drawer__list a[aria-current="page"] { color: var(--rosso); font-weight: 700; }
.ht-drawer__list i {
  flex: none; min-width: 24px; padding: 1px 4px; text-align: center;
  background: var(--paper-3); border-radius: var(--r-sm);
  font-size: .72rem; font-weight: 700; font-style: normal; color: var(--ink-2);
}
.ht-drawer__list--svc a { font-weight: 600; }

.ht-dlg {
  width: min(680px, 94vw); max-height: 88dvh; overflow: auto;
  margin: auto; border-radius: var(--r-lg); box-shadow: var(--sh-2);
}
.ht-dlg__head {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; background: var(--paper-2); border-bottom: 1px solid var(--line);
  font-family: var(--fd); font-weight: 700;
}
.ht-dlg__body { padding: 14px; }
.ht-dlg__reg {
  font-family: var(--fb); font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
  margin: 1.1em 0 .4em;
}
.ht-dlg__depts { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 4px; }
.ht-dlg__depts a {
  display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 6px 9px;
  border: 1px solid var(--line); border-radius: var(--r);
  text-decoration: none; font-size: .88rem;
}
.ht-dlg__depts a:hover { border-color: var(--ink); background: var(--paper-3); }
.ht-dlg__depts a[aria-current="page"] { border-color: var(--rosso); color: var(--rosso); font-weight: 700; }
.ht-dlg__depts i { font-style: normal; font-weight: 700; color: var(--ink-3); min-width: 24px; }

.ht-dlg--answer { width: min(560px, 96vw); }
.ht-dlg__frame { min-height: 60dvh; }
.ht-dlg__frame iframe { width: 100%; min-height: 60dvh; border: 0; display: block; }
.ht-dlg--zoom { width: min(1000px, 96vw); background: var(--panel); }
.ht-dlg--zoom img { width: 100%; height: auto; display: block; }
.ht-x--zoom { position: absolute; right: 10px; top: 10px; z-index: 3; }

/* ------------------------------------------- 06. HERO + COLLAGE */
.ht-hero {
  background:
    radial-gradient(900px 420px at 88% -10%, var(--rosso-w), transparent 70%),
    linear-gradient(180deg, var(--paper-2), var(--paper) 72%);
  border-bottom: 1px solid var(--line);
}
.ht-hero__in {
  display: grid; gap: var(--gap);
  padding-block: clamp(24px, 5vw, 54px);
  min-height: clamp(380px, 58dvh, 560px);
  align-content: center;
}
.ht-hero__h1 em { font-style: italic; color: var(--rosso); }
.ht-hero__lead { font-size: clamp(1rem, 0.95rem + 0.4vw, 1.14rem); color: var(--ink-2); max-width: 56ch; }
.ht-hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 1.2em 0 0; padding: 0; }
.ht-hero__facts li { display: grid; }
.ht-hero__facts b { font-family: var(--fd); font-size: clamp(1.2rem, 1rem + 0.9vw, 1.6rem); font-weight: 800; line-height: 1.1; }
.ht-hero__facts span { font-size: .78rem; color: var(--ink-3); letter-spacing: .02em; }

/* Collage de 3 « ritagli » (découpes) légèrement pivotés. */
.ht-collage { position: relative; min-height: 240px; display: none; }
.ht-clip {
  position: absolute; display: block; width: 62%;
  background: var(--paper-2); padding: 8px 8px 0;
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh-2); text-decoration: none; overflow: hidden;
  transition: rotate .2s ease, translate .2s ease;
}
.ht-clip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); background: var(--paper-3); }
.ht-clip__tab {
  position: absolute; left: -2px; top: 16px;
  padding: 3px 11px 3px 9px; background: var(--rosso); color: #fff;
  font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.ht-clip__cap {
  display: block; padding: 7px 2px 9px;
  font-size: .78rem; color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ht-clip__cap b { color: var(--ink); }
.ht-clip--1 { right: 2%;  top: 0;    rotate: 2deg;    z-index: 3; }
.ht-clip--2 { left: 0;    top: 16%;  rotate: -3.2deg; z-index: 2; }
.ht-clip--3 { right: 12%; bottom: 0; rotate: 1.4deg;  z-index: 1; }
.ht-clip:hover { rotate: 0deg; translate: 0 -3px; z-index: 4; }
.ht-collage__ph { display: none; }

/* --------------------------------------------- 07. TUILES DE RUBRICHE */
.ht-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; }
.ht-tile {
  position: relative; display: grid; align-content: start; gap: 4px;
  padding: 14px 14px 36px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r);
  text-decoration: none; overflow: hidden;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.ht-tile:hover { border-color: var(--ink); box-shadow: var(--sh-1); }
.ht-tile__ref {
  font-family: var(--fd); font-size: 1.5rem; font-weight: 800; line-height: 1;
  color: var(--line-2);
}
.ht-tile__label { font-family: var(--fd); font-size: 1.06rem; font-weight: 700; }
.ht-tile__teaser { font-size: .82rem; color: var(--ink-2); line-height: 1.4; }
.ht-tile__go { position: absolute; right: 12px; bottom: 10px; color: var(--rosso); font-size: 1.1rem; }
.ht-tile--adult { border-color: var(--line-2); background: linear-gradient(180deg, var(--paper-2), var(--rosso-w)); }
.ht-tiles--compact .ht-tile { padding: 12px 12px 14px; }
.ht-tiles--compact .ht-tile__go { display: none; }
.ht-tiles--pick { margin-block: var(--gap); }

/* ------------------------------------------- 08. SCAFFALE (étagère) */
.ht-shelf { position: relative; }
.ht-rack {
  display: grid; gap: var(--gap);
  grid-auto-flow: column; grid-auto-columns: 76%;
  overflow-x: auto; scrollbar-width: thin;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding-bottom: 14px;
  /* Lèvre de l'étagère : trait d'encre + ombre portée sous la rangée. */
  border-bottom: 3px solid var(--ink);
  box-shadow: 0 7px 10px -8px rgba(23, 24, 28, .45);
  margin-inline: -16px; padding-inline: 16px;
}
.ht-rack > * { scroll-snap-align: start; }

/* ----------------------------------------- 09. SCHEDA (carte annonce) */
.ht-card {
  background: var(--paper-2);
  border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden;
  transition: border-color .16s ease, box-shadow .16s ease;
  /* ⚠️ Aucune animation de reveal sur les cartes (LCP). */
}
.ht-card:hover { border-color: var(--ink); box-shadow: var(--sh-1); }
.ht-card--top { border-color: var(--verde); }
.ht-card__link { display: grid; grid-template-rows: auto 1fr; height: 100%; text-decoration: none; }
.ht-card__shot { position: relative; display: block; background: var(--paper-3); }
.ht-card__shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ht-card__shot--empty img { object-fit: contain; padding: 14%; opacity: .85; }
.ht-card__body { display: grid; align-content: start; gap: 5px; padding: 11px 13px 13px; }
.ht-card__kicker {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3);
}
.ht-card__kicker i {
  font-style: normal; padding: 1px 5px; border-radius: var(--r-sm);
  background: var(--ink); color: var(--paper-2); letter-spacing: 0;
}
.ht-card__title {
  font-family: var(--fd); font-size: 1.02rem; font-weight: 700; line-height: 1.22;
  margin: 0; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ht-card__desc {
  font-size: .86rem; color: var(--ink-2); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ht-card__foot {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  margin-top: 2px; padding-top: 7px; border-top: 1px dashed var(--line-2);
  font-size: .8rem; color: var(--ink-2);
}
.ht-card__place { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ht-card__when { flex: none; color: var(--ink-3); letter-spacing: .04em; }
.ht-card__ask { font-size: .8rem; color: var(--ink-3); }

/* -------------------------------------------------- 10. LISTING */
.ht-listing { scroll-margin-top: 110px; }
.ht-list__head { margin-bottom: var(--gap); }
.ht-list__head small { font-family: var(--fb); font-size: .5em; font-weight: 500; color: var(--ink-3); }

.ht-filters {
  position: sticky; top: 56px; z-index: 40;
  display: grid; gap: 8px;
  margin-bottom: var(--gap); padding: 9px 0;
  background: color-mix(in srgb, var(--paper) 94%, #fff);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
@supports not (background: color-mix(in srgb, red, blue)) { .ht-filters { background: #f6f5f1; } }
.ht-filters__cats {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  scroll-snap-type: x proximity; margin-inline: -16px; padding-inline: 16px;
}
.ht-filters__cats::-webkit-scrollbar { display: none; }
.ht-filters__cats a {
  flex: none; scroll-snap-align: start;
  min-height: 38px; padding: 7px 13px;
  display: inline-flex; align-items: center;
  background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 999px;
  font-size: .87rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.ht-filters__cats a:hover { border-color: var(--ink); }
.ht-filters__cats a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--paper-2); }
.ht-filters__geo { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ht-select {
  min-height: 38px; padding: 7px 11px; max-width: 100%;
  background: var(--paper-2); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: var(--r);
  font: inherit; font-size: .88rem;
}
.ht-filters__clear { font-size: .85rem; color: var(--rosso); text-underline-offset: 3px; }

.ht-grid { display: grid; grid-template-columns: 1fr; gap: var(--gap); }

.ht-empty {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--pad); text-align: center;
}
.ht-empty h2 { margin-top: .2em; }
.ht-empty .ht-actions { justify-content: center; }

/* ----------------------------------------------- 11. PAGINATION */
.ht-pager { margin-top: var(--sec); display: grid; gap: 8px; justify-items: center; }
.ht-pager__label { font-size: .82rem; color: var(--ink-3); letter-spacing: .04em; }
.ht-pager__row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.ht-pager__row a, .ht-pager__row .is-current, .ht-pager__gap {
  min-width: 44px; min-height: 44px; padding: 0 10px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--paper-2); text-decoration: none; font-weight: 600; font-size: .92rem;
}
.ht-pager__row a:hover { border-color: var(--ink); }
.ht-pager__row .is-current { background: var(--ink); border-color: var(--ink); color: var(--paper-2); }
.ht-pager__gap { border-color: transparent; background: transparent; color: var(--ink-3); }

/* ------------------------------------- 12. FICHE DÉTAIL (pagina aperta) */
.ht-crumbs {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  font-size: .82rem; color: var(--ink-3); margin-bottom: var(--gap);
}
.ht-crumbs a { color: var(--ink-2); text-underline-offset: 3px; }
.ht-crumbs span[aria-current] { color: var(--ink); font-weight: 600; }

.ht-sheet {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--sh-1);
}
.ht-gal { position: relative; background: var(--panel); }
.ht-gal__strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.ht-gal__strip::-webkit-scrollbar { display: none; }
.ht-gal__cell {
  scroll-snap-align: center; display: block; padding: 0; border: 0;
  background: var(--panel); cursor: zoom-in;
}
.ht-gal__cell[disabled] { cursor: default; }
.ht-gal__cell img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.ht-gal__hint {
  position: absolute; right: 10px; bottom: 8px; margin: 0;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(23, 24, 28, .62); color: #fff; font-size: .74rem;
}
.ht-sheet--nopic .ht-gal__cell img { aspect-ratio: 16 / 7; padding: 4%; }

/* Fascia : bande de prix / méta, en travers de la feuille. */
.ht-fascia {
  display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: baseline;
  padding: 13px var(--pad);
  background: var(--paper-3);
  border-block: 1px solid var(--line);
}
.ht-fascia__price {
  margin: 0; font-family: var(--fd); font-weight: 800; line-height: 1;
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); color: var(--rosso);
}
.ht-fascia__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--ink-2); }
.ht-fascia__meta a { color: var(--ink); font-weight: 600; }

.ht-sheet__body { padding: var(--pad); }
.ht-actions--sheet { margin: 0 0 1.4em; }
.ht-reveal.is-shown { padding: 6px 10px; }
.ht-reveal img { max-height: 30px; width: auto; }

.ht-specs { display: grid; gap: 1px; margin: 0 0 1.4em; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.ht-specs > div { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 10px; padding: 9px 13px; background: var(--paper-2); }
.ht-specs dt { color: var(--ink-3); font-size: .84rem; }
.ht-specs dd { margin: 0; font-size: .92rem; font-weight: 500; }
.ht-specs__ref { font-family: var(--fb); letter-spacing: .08em; font-weight: 700; }

.ht-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 1.4em; }
.ht-tag {
  min-height: 38px; padding: 7px 13px; display: inline-flex; align-items: center;
  background: var(--verde-w); color: var(--verde);
  border: 1px solid color-mix(in srgb, var(--verde) 25%, transparent); border-radius: 999px;
  font-size: .86rem; font-weight: 600; text-decoration: none;
}
@supports not (border-color: color-mix(in srgb, red, blue)) { .ht-tag { border-color: #bcd6c8; } }
.ht-tag:hover { background: var(--verde); color: #fff; }

.ht-simili .ht-rack { grid-auto-columns: 66%; }

/* ------------------------- 13. PAGES STATIQUES, PROSE, FAQ, IFRAMES */
.ht-prose { max-width: 74ch; }
.ht-prose h2 {
  font-size: clamp(1.1rem, 0.98rem + 0.6vw, 1.38rem); font-weight: 700;
  margin: 1.7em 0 .45em; padding-bottom: .25em; border-bottom: 1px solid var(--line);
}
.ht-prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.ht-prose li { margin-bottom: .35em; }
.ht-prose--desc { white-space: normal; overflow-wrap: anywhere; }

.ht-faq { margin-block: var(--sec); max-width: 74ch; }
.ht-faq__item, .ht-faq details {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r);
  margin-bottom: 8px; overflow: hidden;
}
.ht-faq summary {
  padding: 13px 15px; min-height: 48px; cursor: pointer;
  font-family: var(--fd); font-weight: 700; font-size: 1rem;
  display: flex; align-items: center;
}
.ht-faq summary:hover { background: var(--paper-3); }
.ht-faq__a, .ht-faq details > div { padding: 0 15px 13px; color: var(--ink-2); font-size: .94rem; }

.ht-panel { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); }
.ht-panel--frame { padding: 6px; overflow: hidden; }
.ht-iframe { width: 100%; border: 0; display: block; background: var(--paper-2); border-radius: var(--r); }

/* ------------------------------------- 14. PROMO / VOID (404, rimosso) */
.ht-promo {
  display: grid; gap: var(--gap); align-items: center;
  padding: var(--pad);
  background: var(--panel); color: var(--on-panel); border-radius: var(--r-lg);
}
.ht-promo h2 { color: #fff; margin-bottom: .3em; }
.ht-promo p { color: #cfcdc6; margin: 0; max-width: 62ch; }
.ht-promo .ht-kicker { color: #ffb3bd; }
.ht-promo .ht-btn { justify-self: start; }

.ht-void {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--pad); text-align: center;
}
.ht-void .ht-kicker { justify-content: center; }
.ht-void__code {
  font-family: var(--fd); font-weight: 800; line-height: 1;
  font-size: clamp(3.4rem, 2rem + 9vw, 7rem); color: var(--line-2);
  margin: 0 0 .1em;
}
.ht-void .ht-tiles { margin-block: var(--gap); text-align: left; }
.ht-void .ht-actions { justify-content: center; }

/* ----------------------------------- 15. FOOTER + BARRA INFERIORE */
.ht-foot { background: var(--panel); color: #cfcdc6; margin-top: var(--sec); padding-block: var(--sec) 20px; }
.ht-foot__grid { display: grid; gap: var(--gap); }
.ht-foot__brand p { font-size: .9rem; line-height: 1.6; max-width: 50ch; margin-top: .6em; }
.ht-foot .ht-brand__word { color: #fff; }
.ht-foot .ht-brand__word--em { color: #ff8795; }
.ht-foot__h {
  font-family: var(--fb); font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: #8d9099; margin: 0 0 .7em;
}
.ht-foot nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ht-foot nav a {
  display: inline-flex; align-items: center; min-height: 32px;
  color: #cfcdc6; text-decoration: none; font-size: .9rem;
}
.ht-foot nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ht-foot__warn {
  margin-top: var(--gap); padding: 11px 14px;
  background: var(--panel-2); border-left: 4px solid #ff8795; border-radius: 0 var(--r) var(--r) 0;
  font-size: .88rem;
}
.ht-foot__warn b { color: #fff; }
.ht-foot__legal {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  margin-top: var(--gap); padding-top: 14px; border-top: 1px solid #3a3e47;
  font-size: .8rem; color: #8d9099;
}

.ht-bottom {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: color-mix(in srgb, var(--paper-2) 96%, #fff);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
@supports not (background: color-mix(in srgb, red, blue)) { .ht-bottom { background: #fffefb; } }
.ht-bottom > a, .ht-bottom > button {
  display: grid; justify-items: center; align-content: center; gap: 2px;
  min-height: 60px; padding: 6px 2px;
  background: transparent; border: 0;
  font-size: .68rem; font-weight: 600; color: var(--ink-2);
  text-decoration: none; cursor: pointer;
}
.ht-bottom svg { width: 22px; height: 22px; }
.ht-bottom [aria-current="page"] { color: var(--rosso); }
.ht-bottom__plus {
  background: var(--rosso) !important; color: #fff !important;
  border-radius: var(--r); margin: 7px 10px;
}
.ht-bottom__plus svg { width: 26px; height: 26px; }

/* ------------------------------------------------ 16. GATE 18+ */
.ht-gate {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center; padding: 20px;
  background: rgba(23, 24, 28, .88);
}
.ht-gate[hidden] { display: none; }
.ht-gate__panel {
  width: min(460px, 100%); padding: var(--pad); text-align: center;
  background: var(--paper-2); border-radius: var(--r-lg); box-shadow: var(--sh-2);
}
.ht-gate__kicker {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--rosso); margin: 0 0 .5em;
}
.ht-gate__panel h2 { font-size: 1.22rem; }
.ht-gate__panel p { color: var(--ink-2); font-size: .94rem; }
.ht-gate__row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 1.1em; }

/* ------------------------------ 17. MEDIA QUERIES & PRÉFÉRENCES */

/* ≥ 560px : grille de schede à 2 colonnes, étagère plus serrée. */
@media (min-width: 560px) {
  .ht-grid { grid-template-columns: repeat(2, 1fr); }
  .ht-rack { grid-auto-columns: 46%; }
  .ht-simili .ht-rack { grid-auto-columns: 42%; }
  .ht-promo { grid-template-columns: 1fr auto; }
  .ht-promo .ht-btn { justify-self: end; }
}

/* ≥ 760px : insegna complète (recherche + CTA), collage visible, 3 colonnes. */
@media (min-width: 760px) {
  .ht-insegna__in { grid-template-columns: auto minmax(220px, 1fr) auto auto; }
  .ht-find--top { display: flex; }
  .ht-insegna__cta { display: inline-flex; }
  .ht-burger { display: none; }
  .ht-rail__more { display: inline-flex; }
  .ht-grid { grid-template-columns: repeat(3, 1fr); }
  .ht-rack { grid-auto-columns: 31%; }
  .ht-simili .ht-rack { grid-auto-columns: 29%; }
  .ht-specs { grid-template-columns: repeat(2, 1fr); }
  .ht-foot__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .ht-filters { grid-template-columns: 1fr auto; align-items: center; }
  .ht-filters__cats { margin-inline: 0; padding-inline: 0; }
}

/* ≥ 840px : la barre basse mobile disparaît (nav complète dans l'insegna). */
@media (min-width: 840px) {
  body { padding-bottom: 0; }
  .ht-bottom { display: none; }
}

/* ≥ 960px : hero 2 colonnes avec le collage, rack en grille (plus de scroll). */
@media (min-width: 960px) {
  .ht-hero__in { grid-template-columns: 1.05fr .95fr; align-items: center; }
  .ht-collage { display: block; min-height: 380px; }
  .ht-rack {
    grid-auto-flow: row; grid-auto-columns: auto;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible; margin-inline: 0; padding-inline: 0;
  }
  .ht-simili .ht-rack { grid-template-columns: repeat(3, 1fr); }
  .ht-sheet__body { max-width: 86ch; }
}

/* ≥ 1120px : 4 colonnes sur les listings. */
@media (min-width: 1120px) {
  .ht-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Container query : une scheda étroite (rack mobile) perd sa description. */
@supports (container-type: inline-size) {
  .ht-card { container-type: inline-size; }
  @container (max-width: 210px) {
    .ht-card__desc { display: none; }
    .ht-card__title { -webkit-line-clamp: 3; }
  }
}

/* Transitions de navigation (progressif, ignoré par les UA sans support). */
@supports (view-transition-name: none) {
  @view-transition { navigation: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .ht-clip, .ht-clip--1, .ht-clip--2, .ht-clip--3 { rotate: 0deg; }
}

@media print {
  .ht-insegna, .ht-rail, .ht-bottom, .ht-filters, .ht-drawer, .ht-dlg, .ht-gate, .ht-actions { display: none !important; }
  body { background: #fff; padding: 0; }
  .ht-sheet { border: 0; box-shadow: none; }
}
