/* =====================================================================
   Il Segno del Tempo — feuille de style (v2)
   Direction : un cabinet de curiosités. Fond « gesso » (plâtre), objets posés
   sur le gris de studio de leurs photos, sections doublées de velours bordeaux
   comme l'intérieur d'une vitrine ancienne, rose des mises en scène en accent.
   Polices : Bodoni Moda (titres, cartels), Hanken Grotesk (texte, interface).
   ===================================================================== */

@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni-moda.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni-moda-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --gesso: #f5f4f1;          /* fond des pages : plâtre clair, à peine chaud */
  --vetrina: #e8e7e7;        /* fond de studio des photos d'objets */
  --velluto: #662f2b;        /* bordeaux antico, la salle de la maison : rouge chaud et sourd (avant : #771c22) */
  --velluto-2: #502522;
  /* couleur de la salle : chaque page la reçoit sur <body> (inc/palette.php) ; par défaut, la maison */
  --t: var(--velluto); --t2: var(--velluto-2); --velo: #eee6e1; --viva: #d6ae62; --on: var(--on-dark); --on2: var(--on-dark-2);
  --ink: #1e1a1a;
  --ink-2: #5f5759;          /* 6,6:1 sur le gesso */
  --line: #dcd8d1;
  --rosa: #a8813a;           /* filet laiton : soulignés et petits accents sur fond clair */
  --on-dark: #f4f0ef;
  --on-dark-2: #ccb9b4;
  --dot: #d32630;            /* pastille « vendu », comme en galerie */
  --serif: "Bodoni Moda", "Bodoni 72", Didot, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(1.125rem, .4rem + 3vw, 3.5rem);
  --max: 92rem;
  --head-h: 4.25rem;
  --r: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @view-transition { navigation: auto; }
}
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
::view-transition-group(oggetto) { animation-duration: .45s; animation-timing-function: var(--ease); }
body { margin: 0; font: 400 1.0625rem/1.65 var(--sans); color: var(--ink); background: var(--gesso); font-kerning: normal; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--viva); color: #000; }
.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important; clip-path: inset(50%) !important; overflow: hidden !important;
  width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; border: 0 !important; white-space: nowrap !important;
}
.skip { position: absolute; left: .75rem; top: -4rem; z-index: 100; background: var(--ink); color: #fff; padding: .6rem 1rem; text-decoration: none; border-radius: var(--r); }
.skip:focus { top: .75rem; }

/* ---------- boutons et liens ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 2.875rem;
  padding: .7em 1.35em; border: 1px solid var(--t); border-radius: 999px; background: var(--t); color: var(--on);
  font: 500 .9375rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: var(--t2); border-color: var(--t2); }
.btn-line { background: transparent; color: var(--ink); border-color: currentColor; }
.btn-line:hover { background: var(--ink); border-color: var(--ink); color: var(--gesso); }
.btn-sm { min-height: 2.25rem; padding: .4em 1em; }
.btn svg { flex: none; }
.link-arrow { font-weight: 500; text-decoration: underline; text-decoration-color: var(--rosa); text-decoration-thickness: 1.5px; text-underline-offset: .32em; }
.link-arrow:hover { text-decoration-color: currentColor; }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; font-weight: 500; text-decoration: underline; text-decoration-color: var(--rosa); text-decoration-thickness: 1.5px; text-underline-offset: .32em; }
.circle { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; transition: border-color .2s, background-color .2s; }
.circle:hover { border-color: var(--ink); }
.circle:disabled { opacity: .35; cursor: default; }

/* ---------- effets des boutons ----------
   survol : un reflet de vernis traverse le bouton, il se soulève à peine, la flèche avance ;
   appui : il s'enfonce légèrement (aussi au doigt) ; clavier : la flèche avance comme au survol (le contour de focus est global).
   Tout ce qui bouge est coupé si l'on demande « réduire les animations » ; les effets de survol sont réservés aux appareils qui survolent. */
.btn { position: relative; isolation: isolate; overflow: hidden; --sheen: rgb(255 255 255 / .3); }
.btn-on, .band .btn, .list-head .btn { --sheen: color-mix(in srgb, var(--t) 14%, transparent); }   /* boutons clairs sur fond sombre : reflet bordeaux */
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; translate: -110% 0;
  background: linear-gradient(105deg, transparent 30%, var(--sheen) 50%, transparent 70%); }
.circle:not(:disabled):hover { background-color: color-mix(in srgb, currentColor 9%, transparent); border-color: currentColor; }
.link-arrow:hover, .link-btn:hover { text-decoration-thickness: 2px; }
@keyframes btn-sheen { to { translate: 110% 0; } }
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), translate .25s var(--ease), scale .2s var(--ease), box-shadow .3s var(--ease); }
  .btn svg[viewBox="0 0 14 14"], .cab-go svg, .circle svg { transition: translate .3s var(--ease); }
  .circle, .tool, .lb-btn, .ask-close, .hero-pause, .ticker-btn, .chips a { transition-property: background-color, border-color, color, scale, translate, transform; transition-duration: .2s; transition-timing-function: var(--ease); }
  .link-arrow, .link-btn { transition: text-decoration-color .25s var(--ease), text-decoration-thickness .25s var(--ease), text-underline-offset .3s var(--ease); }
  .btn:focus-visible svg[viewBox="0 0 14 14"], .cab-item a:focus-visible .cab-go svg { translate: 4px 0; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .btn:not(:disabled):not(.is-loading):hover { translate: 0 -1px; box-shadow: 0 10px 22px -12px rgb(30 10 15 / .55); }
  .btn:not(:disabled):not(.is-loading):hover::after { animation: btn-sheen .9s cubic-bezier(.45, .05, .35, 1); }
  .btn:hover svg[viewBox="0 0 14 14"] { translate: 4px 0; }
  .cab-item a:hover .cab-go svg { translate: 3px 0; }
  .circle[data-row-prev]:not(:disabled):hover svg { translate: -2px 0; }
  .circle[data-row-next]:not(:disabled):hover svg { translate: 2px 0; }
  .link-arrow:hover, .link-btn:hover { text-underline-offset: .45em; }
  .chips a:hover { translate: 0 -1px; }
}
@media (prefers-reduced-motion: no-preference) {   /* appui : après le survol, pour l'emporter quand on appuie en survolant */
  .btn:not(:disabled):not(.is-loading):active { scale: .97; translate: 0 0; box-shadow: none; transition-duration: .08s; }
  .circle:not(:disabled):active, .tool:active, .lb-btn:active, .ask-close:active, .hero-pause:active, .ticker-btn:active { scale: .92; }
  .chips a:active { scale: .97; }
  .wish:active { scale: .88; }
}
@media (hover: hover) { .ask-close:hover { background: rgba(244, 240, 239, .24); } }

/* ---------- bande « démo » (seulement sur *.wideedizioni.com) ---------- */
.demo-band { background: #0a0a0a; color: #c4c0b8; font: 500 .9375rem/1.45 var(--serif); text-align: center; padding: .55rem 1rem; }
.demo-band p { margin: 0 auto; max-width: 70rem; text-wrap: balance; }
.demo-band a { color: #f2eee6; text-decoration-color: rgba(242, 238, 230, .4); }

/* ---------- en-tête : logo toujours au centre ; menu complet sur grand écran, tiroir sur tablette et téléphone ---------- */
.site-head { position: sticky; top: 0; z-index: 50; }
/* fond de l'en-tête porté par un pseudo-élément : sur ordinateur il ne couvre que la ligne du logo, le menu a son propre voile */
.site-head::before { content: ""; position: absolute; inset: 0 0 var(--nav-off, 0); z-index: -1; pointer-events: none; background: color-mix(in srgb, var(--gesso) 90%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
/* au défilement : verre plus transparent (classe posée par site.js) */
.site-head.is-scrolled::before { background-color: color-mix(in srgb, var(--gesso) 72%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
@media (prefers-reduced-motion: no-preference) { .site-head::before, .nav-main { transition: background-color .35s ease, border-color .35s ease; } }
.head-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: .75rem; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); min-height: var(--row-h, 4.25rem); }
.head-l { grid-column: 1; justify-self: start; display: flex; align-items: center; gap: .25rem; }
.brand { grid-column: 2; display: block; line-height: 0; }
.brand-logo { display: block; width: clamp(10rem, 8rem + 7vw, 18.5rem); height: auto; color: var(--ink); }
.head-r { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: .3rem; }
.tool { position: relative; display: inline-grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; text-decoration: none; }
.tool:hover { background: var(--vetrina); }
.btn-appt { min-height: 2.6rem; padding: .45rem 1.05rem; margin-right: .4rem; font-size: .875rem; gap: .5rem; }
.nav-main { display: none; border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.nav-main ul { display: flex; align-items: center; justify-content: center; gap: clamp(1.25rem, .2rem + 1.7vw, 2.6rem); max-width: var(--max); min-height: 3rem; margin: 0 auto; padding: 0 var(--gutter); list-style: none; }
.nav-main a { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 0; font-size: .9375rem; font-weight: 450; text-decoration: none; border-bottom: 1.5px solid transparent; transition: border-color .2s, color .2s; white-space: nowrap; }
.nav-main .ic { color: var(--ink-2); transition: color .2s; }
.nav-main a:hover, .nav-main a[aria-current] { border-bottom-color: var(--t); }
.nav-main a:hover .ic, .nav-main a[aria-current] .ic { color: var(--t); }
/* menu du header : entrée discrète (fondu + 4 px), un élément après l'autre, au premier chargement de la visite seulement
   (classe .nav-intro posée dans head.php) ; rien si l'utilisateur préfère moins d'animations */
@keyframes nav-in { from { opacity: 0; translate: 0 -.3rem; } }
@media (min-width: 64rem) and (prefers-reduced-motion: no-preference) {
  .nav-intro .nav-main li { --stagger-time: 70ms; animation: nav-in .6s var(--ease) both; }
  @supports (animation-delay: calc(sibling-index() * 0.1s)) {
    .nav-intro .nav-main li { animation-delay: calc(.05s + sibling-index() * var(--stagger-time)); }
  }
  @supports not (animation-delay: calc(sibling-index() * 0.1s)) {
    .nav-intro .nav-main li:nth-child(1) { animation-delay: 0.12s; }
    .nav-intro .nav-main li:nth-child(2) { animation-delay: 0.19s; }
    .nav-intro .nav-main li:nth-child(3) { animation-delay: 0.26s; }
    .nav-intro .nav-main li:nth-child(4) { animation-delay: 0.33s; }
    .nav-intro .nav-main li:nth-child(5) { animation-delay: 0.40s; }
    .nav-intro .nav-main li:nth-child(6) { animation-delay: 0.47s; }
    .nav-intro .nav-main li:nth-child(7) { animation-delay: 0.54s; }
    .nav-intro .nav-main li:nth-child(8) { animation-delay: 0.61s; }
  }
}
@media (max-width: 63.99rem) {
  .head-l .langs, .btn-appt { display: none; }
}
@media (min-width: 64rem) {
  :root { --row-h: 4.75rem; --nav-h: 3.375rem; --nav-off: var(--nav-h); --head-h: calc(var(--row-h) + var(--nav-h)); }
  .menu-open { display: none; }
  .site-head::before { border-bottom: 0; }
  .nav-main { display: block; height: var(--nav-h); background: color-mix(in srgb, var(--gesso) 90%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
  .nav-main ul { height: 100%; min-height: 0; }
  .site-head.is-scrolled .nav-main { background-color: color-mix(in srgb, var(--gesso) 60%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }

  /* menu intégré à la bannière : la ligne du menu chevauche le haut de la bande / du hero (classe posée en PHP dans header.php) */
  .site-head.head-over { margin-bottom: calc(-1 * var(--nav-h)); }
  .head-over:not(.is-scrolled) .nav-main { border-top-color: transparent; border-bottom-color: color-mix(in srgb, var(--on) 22%, transparent); }
  .over-band:not(.is-scrolled) .nav-main { background-color: color-mix(in oklab, var(--t) 30%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
  .over-hero:not(.is-scrolled) .nav-main { background-color: color-mix(in oklab, var(--t) 64%, transparent); backdrop-filter: blur(10px) saturate(1.15); -webkit-backdrop-filter: blur(10px) saturate(1.15); }
  .head-over:not(.is-scrolled) .nav-main a { color: var(--on); text-shadow: 0 1px 2px color-mix(in oklab, var(--t) 70%, black); }
  .head-over:not(.is-scrolled) .nav-main .ic { color: var(--on2); }
  .head-over:not(.is-scrolled) .nav-main a:hover, .head-over:not(.is-scrolled) .nav-main a[aria-current] { border-bottom-color: var(--on); }
  .head-over:not(.is-scrolled) .nav-main a:hover .ic, .head-over:not(.is-scrolled) .nav-main a[aria-current] .ic { color: var(--on); }
  /* bannières plus hautes pour accueillir le menu */
  .head-over ~ #main > .band:first-child .band-in { min-height: calc(var(--band-h) + var(--nav-h)); padding-top: calc(clamp(2rem, 1.5rem + 2vw, 3.25rem) + var(--nav-h)); }
  .head-over ~ #main > .hero:first-child { height: calc(100svh - var(--head-h) + var(--nav-h)); min-height: calc(34rem + var(--nav-h)); }
}
@media (max-width: 30rem) { .head-row { gap: .5rem; } .head-r { gap: 0; } }
@media (max-width: 22rem) { .brand-logo { width: 8.75rem; } }

/* tiroir de navigation : <dialog> modal, glissé au doigt grâce au scroll-snap */
.drawer { --drawer-width: min(23rem, 86dvw, 100dvw - 24px); --drawer-backdrop: 0; inset: 0; width: auto; height: auto; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: visible; }
.drawer::backdrop { background: rgb(30 12 16); opacity: calc(var(--drawer-backdrop) * .55); }
.drawer-scroller { position: relative; display: grid; grid-template-columns: var(--drawer-width) 100%; overflow-x: scroll; overscroll-behavior: none; scrollbar-width: none; scroll-snap-type: x mandatory; }
.drawer-scroller::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: no-preference) { .drawer-scroller { scroll-behavior: smooth; } }
.drawer-scroller::after { content: ""; scroll-snap-align: end; scroll-initial-target: nearest; }
.drawer-sheet { display: flex; flex-direction: column; gap: 1.25rem; height: 100svh; padding: .75rem 1.25rem 1.75rem; overflow-y: auto; scrollbar-width: none; scroll-snap-align: start; background: var(--gesso); color: var(--ink); border-right: 3px solid var(--t); box-shadow: 20px 0 50px -30px rgb(0 0 0 / .45); }
@supports (animation-timeline: scroll()) {
  .drawer { timeline-scope: --drawer-fade; animation: drawer-fade linear both; animation-timeline: --drawer-fade; }
  .drawer-scroller { scroll-timeline: --drawer-fade x; }
  @property --drawer-backdrop { syntax: '<number>'; inherits: true; initial-value: 0; }
  @keyframes drawer-fade { 0% { --drawer-backdrop: 1 } 100% { --drawer-backdrop: 0 } }
}
.drawer-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.drawer-brand { line-height: 0; }
.drawer-logo { width: 11.5rem; height: auto; color: var(--ink); }
.drawer-nav ul { list-style: none; margin: 0; padding: 0; }
.drawer-nav > ul > li > a, .drawer-nav summary { display: flex; align-items: center; gap: .85rem; padding: .8rem .2rem; font: 400 1.375rem/1.2 var(--serif); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); cursor: pointer; }
.drawer-nav summary { list-style: none; }
.drawer-nav summary::-webkit-details-marker { display: none; }
.drawer-nav summary::after { content: ""; width: .5rem; height: .5rem; margin-left: auto; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; rotate: 45deg; translate: 0 -.15rem; transition: rotate .2s; }
.drawer-nav details[open] summary::after { rotate: 225deg; translate: 0 .1rem; }
.drawer-nav .ic { flex: none; color: var(--t); }
.drawer-nav a[aria-current] { color: var(--t); }
.drawer-nav .n { margin-left: auto; font: 400 .8125rem/1 var(--sans); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.drawer-nav .n[hidden] { display: none; }
.drawer-cols { padding: .35rem 0 .75rem 2.55rem !important; }
.drawer-cols a { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; font-size: 1rem; text-decoration: none; }
.drawer-cols li[style] a::before { content: ""; flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: var(--c); }
.drawer-cta { margin: 0; }
.drawer-cta .btn { width: 100%; justify-content: center; }
.drawer .langs { margin: 0; }
.drawer-info { margin: auto 0 0; font-size: .875rem; line-height: 1.6; color: var(--ink-2); }

/* ---------- recherche ---------- */
.search-dlg { width: min(54rem, 100vw - 2rem); max-height: min(46rem, 100dvh - 4rem); margin: 5rem auto auto; padding: 0; border: 0; border-radius: 10px; background: var(--gesso); box-shadow: 0 50px 100px -40px rgba(30, 10, 15, .55); }
.search-dlg::backdrop { background: rgba(59, 20, 28, .45); backdrop-filter: blur(4px); overflow: hidden; overscroll-behavior: contain; }
dialog:modal { overscroll-behavior: contain; }
.search-form { display: flex; align-items: center; gap: .75rem; padding: .6rem .6rem .6rem 1.4rem; border-bottom: 1px solid var(--line); }
.search-ico { flex: none; color: var(--ink-2); }
.search-form input { flex: 1; min-width: 0; border: 0; padding: .9rem 0; font: 400 clamp(1.125rem, 1rem + .7vw, 1.625rem)/1.3 var(--serif); background: none; }
.search-form input:focus { outline: none; }
.search-form input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search-close { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.search-close:hover { background: var(--vetrina); }
.search-results { overflow-y: auto; max-height: calc(min(46rem, 100dvh - 4rem) - 5rem); }
.search-results ul { list-style: none; margin: 0; padding: .5rem 0; }
.search-results li a { display: grid; grid-template-columns: 3.75rem 1fr auto; gap: 1rem; align-items: center; padding: .55rem 1.4rem; text-decoration: none; }
.search-results li a:hover, .search-results li a:focus-visible { background: var(--vetrina); outline-offset: -2px; }
.search-results img { width: 3.75rem; height: 3.75rem; object-fit: contain; background: var(--vetrina); border-radius: 4px; }
.search-results .r-t { font: 400 1.0625rem/1.3 var(--serif); }
.search-results .r-s { display: block; font-size: .8125rem; color: var(--ink-2); }
.search-results .r-p { font-size: .875rem; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.search-results .r-all { display: block; padding: .9rem 1.4rem 1.1rem; font-weight: 500; border-top: 1px solid var(--line); }
.search-results .r-none { padding: 1rem 1.4rem; color: var(--ink-2); }

/* ---------- typographie commune ---------- */
.sec-title { font: 400 clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem)/1.04 var(--serif); letter-spacing: -.012em; text-wrap: balance; }
.lede { font: 400 clamp(1.25rem, 1.1rem + .55vw, 1.5625rem)/1.45 var(--serif); text-wrap: pretty; }
.lede strong { font-weight: 500; }

/* ---------- accueil : hero plein écran ---------- */
.hero { position: relative; height: calc(100svh - var(--head-h)); min-height: 34rem; max-height: 62rem; margin-bottom: clamp(9rem, 6rem + 8vw, 13rem); background: var(--rosa); }
.hero-slides { position: absolute; inset: 0; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide:not(:first-child) { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .hero-slide { animation: hero-fade 28s infinite; }
  .hero-slide:first-child { animation-name: hero-fade-first; }
  .hero-slide:nth-child(2) { animation-delay: 7s; }
  .hero-slide:nth-child(3) { animation-delay: 14s; }
  .hero-slide:nth-child(4) { animation-delay: 21s; }
  .hero.is-paused .hero-slide { animation-play-state: paused; }
}
@keyframes hero-fade { 0% { opacity: 0; } 5% { opacity: 1; } 25% { opacity: 1; } 30% { opacity: 0; } 100% { opacity: 0; } }
@keyframes hero-fade-first { 0% { opacity: 1; } 25% { opacity: 1; } 30% { opacity: 0; } 95% { opacity: 0; } 100% { opacity: 1; } }
.hero-pause { position: absolute; right: var(--gutter); bottom: 1.25rem; z-index: 2; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: rgba(244, 243, 243, .85); cursor: pointer; }
.hero-pause .i-play, .hero.is-paused .hero-pause .i-pause { display: none; }
.hero.is-paused .hero-pause .i-play { display: block; }
@media (prefers-reduced-motion: reduce) { .hero-pause { display: none; } }
.hero-card { position: absolute; z-index: 2; left: var(--gutter); bottom: calc(-1 * clamp(7rem, 5rem + 6vw, 10.5rem)); width: min(40rem, calc(100% - 2 * var(--gutter)));
  padding: clamp(1.75rem, 1.2rem + 2vw, 3.25rem); background: var(--gesso); border-radius: var(--r); box-shadow: 0 40px 80px -50px rgba(30, 10, 15, .5); }
.hero-kicker { margin: 0 0 1rem; font: italic 400 1.0625rem/1.3 var(--serif); color: var(--velluto); }
.hero-title { font: 400 clamp(2.4rem, 1.5rem + 3.4vw, 4.6rem)/1 var(--serif); letter-spacing: -.018em; text-wrap: balance; }
.hero-sub { margin: 1.1rem 0 1.6rem; max-width: 36ch; color: var(--ink-2); text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .65rem; margin: 0; }
@media (max-width: 40rem) {
  .hero { height: auto; min-height: 0; max-height: none; margin-bottom: 0; background: none; }
  .hero-slides { position: relative; height: 62svh; min-height: 22rem; background: var(--rosa); }
  .hero-pause { top: 1rem; bottom: auto; }
  .hero-card { position: relative; left: auto; bottom: auto; width: auto; margin: -4rem var(--gutter) 0; }
}

/* ---------- blocs image + texte (chevauchement éditorial) ---------- */
.mt { display: grid; gap: clamp(2.5rem, 1.5rem + 4vw, 6rem); align-items: center; max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 2rem + 4vw, 7rem) var(--gutter); }
.mt-media { position: relative; padding: 0 0 clamp(3rem, 2rem + 4vw, 6rem) 0; }
.mt-big, .mt-big img { display: block; width: 100%; border-radius: var(--r); }
.mt-big { aspect-ratio: 4 / 3; object-fit: cover; }
.mt-inset { position: absolute; right: 0; bottom: 0; width: 42%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); border: clamp(6px, .3rem + .4vw, 12px) solid var(--gesso); }
.mt-media-obj .mt-big { aspect-ratio: 4 / 5; background: var(--vetrina); overflow: hidden; width: 78%; }
.mt-media-obj .mt-big img { height: 100%; object-fit: contain; }
/* petite photo : le cadre épouse exactement les proportions de la photo (plus de bandes vides à gauche et à droite) ;
   si elle est vraiment très haute, on la recadre un peu plutôt que de laisser le cadre envahir la grande photo */
.mt-media-obj .mt-inset { width: 46%; height: auto; aspect-ratio: auto; max-height: 62%; object-fit: cover; background: var(--vetrina); }
.mt-txt { max-width: 38rem; }
.mt-txt .sec-title { margin-bottom: 1.5rem; }
.mt-txt p { text-wrap: pretty; }
.mt-txt .btn, .mt-txt .btn-line { margin-top: .75rem; }
.mt-note { font: italic 400 1rem/1.4 var(--serif); color: var(--ink-2); }
@media (min-width: 60rem) {
  .mt { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  .mt-rev .mt-media { order: 2; }
}

/* ---------- les collections : la vitrine bordeaux ---------- */
.cabinet { position: relative; isolation: isolate; overflow: hidden; background: var(--velluto); color: var(--on-dark); }
/* une rue de Brera en fond, voilée en dégradé de la couleur de la maison (comme les bandeaux et le pied de page) */
.cab-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; opacity: .6; pointer-events: none; }
.cabinet::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(200deg var(--in-oklab), color-mix(in oklab, var(--velluto) 35%, transparent) 0%, color-mix(in oklab, var(--velluto) 72%, transparent) 30%, color-mix(in oklab, var(--velluto) 92%, transparent) 60%, var(--velluto) 100%); }
@media (forced-colors: active) { .cab-bg { display: none; } }
.cab-in { position: relative; z-index: 0; max-width: var(--max); margin: 0 auto; padding: clamp(3.5rem, 2.5rem + 4vw, 7rem) var(--gutter); }   /* contenu au-dessus de la photo et du voile */
.cab-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .75rem 2rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.cab-count { margin: 0; color: var(--on-dark-2); }
.cab-count .link-arrow { color: var(--on-dark); }
.cab-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; gap: 2rem 1rem; }
.cab-all .cab-img { display: grid; place-items: center; background: transparent; border: 1px solid rgba(244, 240, 239, .3); }
.cab-all-n { font: italic 400 clamp(2.5rem, 1.8rem + 2vw, 3.75rem)/1 var(--serif); color: var(--rosa); }
@media (min-width: 48rem) { .cab-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 1.5rem; } .cab-item.is-big { grid-column: span 2; grid-row: span 2; } }
@media (max-width: 47.99rem) { .cab-item.is-big { grid-column: 1 / -1; } .cab-all { display: none; } .cab-item:not(.is-big) .cab-go { display: none; } .cab-item:not(.is-big) .cab-name { padding-right: 0; } .is-big .cab-img { aspect-ratio: 4 / 3; min-height: 0; } }
@media (min-width: 72rem) {
  .cab-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cab-item.is-big { grid-column: span 2; grid-row: span 2; }
}
.cab-item a { position: relative; display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.cab-img { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--r); background: var(--vetrina); }
.is-big .cab-img { flex: 1; aspect-ratio: auto; min-height: 18rem; }
.cab-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .8s var(--ease); }
.cab-item[style] .cab-name::before { content: ""; display: block; width: 2.25rem; height: 2px; margin-bottom: .75rem; background: var(--c); }
.cab-name { margin-top: .9rem; padding-right: 2.75rem; font: 400 clamp(1.25rem, 1.05rem + .6vw, 1.5rem)/1.15 var(--serif); }
.is-big .cab-name { font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.4rem); }
.cab-n { margin-top: .2rem; font-size: .875rem; color: var(--on-dark-2); font-variant-numeric: tabular-nums; }
.cab-go { position: absolute; right: 0; bottom: .25rem; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 1px solid rgba(244, 240, 239, .35); border-radius: 50%; transition: background-color .25s, color .25s, border-color .25s; }
.cab-item a:hover .cab-go { background: var(--c, var(--rosa)); border-color: var(--c, var(--rosa)); color: #1e1a1a; }
@media (prefers-reduced-motion: no-preference) { .cab-item a:hover .cab-img img { transform: scale(1.04); } }

/* ---------- cartes d'objets ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 3rem 1.5rem; }
@media (max-width: 35rem) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem .9rem; } }
.grid > .card:nth-child(n+21) { content-visibility: auto; contain-intrinsic-size: auto none auto 28rem; }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.card-img { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); background: var(--vetrina); }
.card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .8s var(--ease); }
@media (prefers-reduced-motion: no-preference) { .card-link:hover .card-img img { transform: scale(1.04); } }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; margin-top: .95rem; font-size: .8125rem; color: var(--ink-2); }
.card-col { font: italic 400 .9375rem/1.2 var(--serif); color: var(--c, var(--t)); }
.card-ref { font-variant-numeric: tabular-nums; letter-spacing: .02em; white-space: nowrap; }
.card-title { margin-top: .35rem; font: 400 1.125rem/1.28 var(--serif); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-wrap: pretty; }
.card-sub { margin-top: .3rem; font-size: .875rem; line-height: 1.4; color: var(--ink-2); }
.card-price { margin-top: .5rem; font-size: .9375rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.card-link:hover .card-title { text-decoration: underline; text-decoration-color: var(--rosa); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
.dot { display: inline-block; width: .6em; height: .6em; margin-right: .45em; border-radius: 50%; background: var(--dot); vertical-align: .03em; }
.card.is-sold .card-img img { opacity: .8; }
@media (max-width: 35rem) { .card-title { font-size: 1.0625rem; } .card-col { font-size: .875rem; } .card-ref { display: none; } }

/* rangée défilante (nouveautés, même collection) */
.row-sec { max-width: var(--max); margin: 0 auto; padding: clamp(3.5rem, 2.5rem + 4vw, 7rem) 0; }
.row-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; padding: 0 var(--gutter); margin-bottom: clamp(1.75rem, 1.25rem + 1.5vw, 2.75rem); }
.row-ctrl { display: flex; align-items: center; gap: .6rem; }
.row-ctrl .link-arrow { margin-right: 1rem; }
.grid.row { display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scroll-padding-inline: var(--gutter); padding: 0 var(--gutter) 1rem; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.grid.row > .card { flex: 0 0 clamp(14rem, 9rem + 14vw, 20rem); scroll-snap-align: start; content-visibility: visible; }
@media (prefers-reduced-motion: no-preference) { .grid.row { scroll-behavior: smooth; } }

/* mosaïque de la galerie */
.mosaic ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 48rem) { .mosaic ul { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.mosaic img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ---------- pied de page : la visite, dans le velours ---------- */
.site-foot { position: relative; isolation: isolate; overflow: hidden; background: var(--t); color: var(--on); }
.site-foot a { color: inherit; text-decoration-color: color-mix(in srgb, var(--on) 45%, transparent); }
.site-foot a:hover { text-decoration-color: var(--viva); }
.foot-visit, .foot-base, .foot-legal { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.foot-visit { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6.5rem) clamp(2.5rem, 2rem + 2vw, 4rem); }
.foot-title { font: 400 clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem)/1.04 var(--serif); margin-bottom: 2.25rem; }
.foot-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1.75rem 2rem; margin: 0; }
.foot-list dt { font: italic 400 1rem/1.3 var(--serif); color: var(--on2); margin-bottom: .45rem; }
.foot-list dd { margin: 0; font-size: 1.0625rem; line-height: 1.6; }
.foot-list .link-arrow { text-decoration-color: var(--viva); }
.foot-base { display: grid; gap: 2.5rem; padding-block: 2.75rem; border-top: 1px solid color-mix(in srgb, var(--on) 18%, transparent); }
@media (min-width: 56rem) { .foot-base { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-logo { display: block; width: 16rem; max-width: 100%; height: auto; color: var(--on); }
.foot-tag { margin: 1rem 0 0; font: italic 400 1.125rem/1.4 var(--serif); color: var(--on2); }
.foot-nav h2 { font: italic 400 1rem/1.3 var(--serif); color: var(--on2); margin-bottom: .75rem; }
.foot-nav ul { list-style: none; margin: 0; padding: 0; columns: 2 9rem; column-gap: 1.5rem; }
.foot-nav li { padding: .15rem 0; font-size: .9375rem; }
.foot-nav a { text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; text-decoration-color: var(--viva); }
.foot-legal { padding-block: 1.6rem 2.1rem; border-top: 1px solid color-mix(in srgb, var(--on) 18%, transparent); font-size: .8125rem; line-height: 1.75; color: var(--on2); }
.foot-legal a { color: var(--on); text-underline-offset: .18em; }
.foot-legal p { margin: 0; }

/* ---------- listes : collection, nouveautés, recherche ---------- */
.list-page, .about, .contact, .legal, .nf { max-width: var(--max); margin: 0 auto; padding: clamp(2rem, 1.5rem + 2.5vw, 4rem) var(--gutter) clamp(3.5rem, 2.5rem + 4vw, 7rem); }
/* ---------- la S du logo (Bodoni Moda) en fond de toutes les pages : fragments alternés gauche / droite, coupés par le bord, comme des pages qu'on tourne.
   Tablette et ordinateur seulement ; teinte claire de la palette de la page (--velo). Sans prise en charge de mask : rien (sinon le voile couvrirait tout). */
@media screen and (min-width: 48rem) {
  @supports (mask-image: url(x)) or (-webkit-mask-image: url(x)) {
    #main { position: relative; }   /* les bandeaux, cartes et sections à fond plein passent devant */
    #main::before {
      --segno: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='88 -250 950 2050'%3E%3Cpath transform='matrix(1 0 0 -1 0 1520)' d='M578 -30Q443 -30 351.5 12.0Q260 54 201 126L92 -20H88V390H92Q109 301 144.0 225.5Q179 150 235.5 94.0Q292 38 372.5 7.0Q453 -24 562 -24Q668 -24 748.0 14.0Q828 52 873.0 126.5Q918 201 918 310Q918 398 874.0 459.0Q830 520 758.0 565.0Q686 610 599.5 649.0Q513 688 426.5 730.0Q340 772 268.0 827.5Q196 883 152.0 961.0Q108 1039 108 1150Q108 1260 165.5 1343.5Q223 1427 317.0 1473.5Q411 1520 522 1520Q624 1520 706.0 1488.0Q788 1456 846 1388L954 1520H958V1110H954Q934 1249 877.5 1338.0Q821 1427 735.0 1469.5Q649 1512 542 1512Q398 1512 323.0 1440.5Q248 1369 248 1250Q248 1171 291.0 1115.5Q334 1060 404.0 1017.5Q474 975 558.5 936.5Q643 898 727.5 853.5Q812 809 882.0 749.0Q952 689 995.0 604.5Q1038 520 1038 400Q1038 270 982.0 173.5Q926 77 822.5 23.5Q719 -30 578 -30Z'/%3E%3C/svg%3E");
      --segno-h: clamp(84rem, 210vh, 150rem);   /* une S + son blanc ; les deux séries sont décalées d'une demi-hauteur */
      content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
      background: color-mix(in srgb, var(--velo) 25%, #fff);   /* « in chiaro » : plus clair que le papier, jamais confondu avec le gris des fonds photo ; à peine teinté par la collection */
      -webkit-mask-image: var(--segno), var(--segno); mask-image: var(--segno), var(--segno);
      -webkit-mask-repeat: repeat-y; mask-repeat: repeat-y;
      -webkit-mask-size: auto var(--segno-h); mask-size: auto var(--segno-h);
      -webkit-mask-position: calc(100% + .14 * var(--segno-h)) calc(.1 * var(--segno-h)), calc(-.14 * var(--segno-h)) calc(.6 * var(--segno-h));
      mask-position: calc(100% + .14 * var(--segno-h)) calc(.1 * var(--segno-h)), calc(-.14 * var(--segno-h)) calc(.6 * var(--segno-h));
    }
  }
}
.crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .55rem; list-style: none; margin: 0 0 1rem; padding: 0; font-size: .875rem; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: .55rem; color: #a99fa1; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-decoration-color: var(--rosa); }
.list-title { font: 400 clamp(2.5rem, 1.6rem + 3.6vw, 5rem)/1 var(--serif); letter-spacing: -.018em; text-wrap: balance; }
.list-head { margin: calc(-1 * clamp(2rem, 1.5rem + 2.5vw, 4rem)) 0 clamp(2rem, 1.5rem + 2vw, 3.25rem); padding: clamp(2.5rem, 1.75rem + 3vw, 4.75rem) 0 clamp(2.25rem, 1.6rem + 2.5vw, 4rem);
  color: var(--on); border-image: conic-gradient(var(--t) 0 0) fill 0 / / 0 100vw; }   /* paroi pleine largeur, sans casser la grille */
.list-head .crumbs ol { color: var(--on2); }
.list-head .crumbs li + li::before { color: var(--on2); opacity: .6; }
.list-head .crumbs a:hover { text-decoration-color: var(--viva); }
.list-head .list-title { color: var(--on); }
.list-head .search-inline input { border-color: transparent; }
.list-head .btn { background: var(--on); border-color: var(--on); color: var(--t); }
.list-head .btn:hover { background: #fff; border-color: #fff; }
.list-head :focus-visible { outline-color: var(--on); }
.list-body { display: grid; gap: 2rem; }
@media (min-width: 64rem) {
  .list-body { grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(2.5rem, 1rem + 2.5vw, 4rem); }
  .list-main { grid-column: 1; grid-row: 1; }
  .list-side { grid-column: 2; grid-row: 1; }
  .list-side { position: sticky; top: calc(var(--head-h) + 1.5rem); align-self: start; max-height: calc(100vh - var(--head-h) - 3rem); overflow-y: auto; scrollbar-width: thin; }
}
.side-box summary { cursor: pointer; font: italic 400 1.0625rem/1.3 var(--serif); color: var(--t); padding: .25rem 0 .75rem; list-style: none; }
.side-box summary::-webkit-details-marker { display: none; }
.side-box summary::after { content: ""; display: inline-block; width: .45em; height: .45em; margin-left: .55em; border-right: 1.3px solid currentColor; border-bottom: 1.3px solid currentColor; rotate: 45deg; translate: 0 -.2em; transition: rotate .2s; }
.side-box[open] summary::after { rotate: 225deg; translate: 0 .05em; }
.side-tree { list-style: none; margin: 0; padding: 0; }
.side-tree a { display: flex; justify-content: space-between; gap: 1rem; padding: .42rem 0; text-decoration: none; font-size: .9375rem; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.side-tree > li > a > span:first-child { font: 400 1.0625rem/1.3 var(--serif); }
.side-tree a:hover > span:first-child { text-decoration: underline; text-decoration-color: var(--rosa); text-underline-offset: .2em; }
.side-tree a[aria-current] > span:first-child { color: var(--t); font-style: italic; }
.side-tree > li[style] > a > span:first-child::before { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-right: .6rem; border-radius: 1px; background: var(--c); translate: 0 -.12em; }
.side-tree .n { font-size: .8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.side-tree ul { list-style: none; margin: 0 0 .5rem; padding: 0 0 0 .9rem; border-left: 1px solid var(--line); }
.side-tree ul a { border-bottom: 0; padding: .25rem 0; color: var(--ink-2); }
.side-tree ul a > span:first-child { font: 400 .9375rem/1.3 var(--sans); }
.side-search { position: relative; margin-top: 1.5rem; }
.side-search svg { position: absolute; left: .9rem; top: 50%; translate: 0 -50%; color: var(--ink-2); }
.side-search input { width: 100%; min-height: 2.75rem; padding: .5rem 1rem .5rem 2.5rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .9375rem; }
@media (max-width: 63.99rem) {
  .list-side { display: grid; gap: 1rem; }
  .side-box { border: 1px solid var(--line); border-radius: var(--r); padding: .5rem 1rem; background: #fff; }
  .side-box:not([open]) summary { padding-bottom: .25rem; }
  .side-search { margin-top: 0; }
}
.chips ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0 0 1.75rem; padding: 0; }
.chips a { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.5rem; padding: .35rem 1.05rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .9375rem; background: #fff; }
.chips a:hover { border-color: var(--t); }
.chips a[aria-current] { background: var(--t); border-color: var(--t); color: var(--on); }
.chips .n { font-size: .8125rem; opacity: .7; font-variant-numeric: tabular-nums; }
.list-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: 2rem; }
.list-count { margin: 0; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sort-form { display: flex; align-items: center; gap: .6rem; font-size: .9375rem; }
.sort-form label { color: var(--ink-2); }
.sort-form select { min-height: 2.5rem; padding: .35rem 2.25rem .35rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Cpath d='M1 3l4 4 4-4' fill='none' stroke='%231e1a1a' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 1rem center; appearance: none; cursor: pointer; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.5rem; margin-top: 4rem; }
.pager-pages { display: flex; gap: .25rem; }
.pager-pages a, .pager-pages span { display: inline-grid; place-items: center; min-width: 2.75rem; height: 2.75rem; border-radius: 999px; text-decoration: none; font-variant-numeric: tabular-nums; }
.pager-pages a:hover { background: var(--vetrina); }
.pager-pages [aria-current] { background: var(--t); color: var(--on); }
.pager-step { font-weight: 500; }
.search-inline { display: flex; gap: .5rem; max-width: 40rem; margin-top: 1.5rem; }
.search-inline input { flex: 1; min-width: 0; min-height: 2.875rem; padding: .6rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.empty { max-width: 46ch; color: var(--ink-2); }

/* ---------- fiche objet ---------- */
.obj { max-width: var(--max); margin: 0 auto; padding: 0 0 2rem; display: grid; grid-template-columns: minmax(0, 1fr); }
.obj-photos { position: relative; }
.obj-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; list-style: none; margin: 0; padding: 0; background: var(--vetrina); }
.obj-strip::-webkit-scrollbar { display: none; }
.obj-strip li { flex: 0 0 100%; scroll-snap-align: center; }
.obj-photo { display: block; width: 100%; padding: 0; border: 0; background: var(--vetrina); cursor: zoom-in; overflow: hidden; }
.obj-photo img { width: 100%; height: min(72vh, 118vw); object-fit: contain; }
.obj-count { position: absolute; right: var(--gutter); bottom: .85rem; margin: 0; padding: .2rem .7rem; border-radius: 999px; background: rgba(244, 243, 243, .9); font-size: .8125rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.obj-info { padding: 1.75rem var(--gutter) 0; }
.obj-kick { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; margin: 0 0 .6rem; }
.obj-col { margin: 0; font: italic 400 1.0625rem/1.3 var(--serif); }
.obj-sn { margin: 0 0 0 auto; color: var(--ink-2); font: 400 .75rem/1.3 var(--sans); letter-spacing: .04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.obj-sn span { margin-right: .3em; }
.obj-col a { color: var(--t); text-decoration: none; }
.obj-col a:hover { text-decoration: underline; text-decoration-color: var(--rosa); }
.obj-title { font: 400 clamp(1.875rem, 1.4rem + 1.5vw, 2.75rem)/1.1 var(--serif); letter-spacing: -.01em; text-wrap: pretty; }
.obj-sub { margin: .75rem 0 0; font: italic 400 1.1875rem/1.4 var(--serif); color: var(--ink-2); }
.obj-price-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; margin: 1.75rem 0 1.4rem; padding: 1rem 0; border-top: 2px solid var(--t); border-bottom: 1px solid var(--line); }
.obj-price { margin: 0; font: 500 1.625rem/1.1 var(--sans); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.obj-ref { margin: 0; color: var(--ink-2); font-size: .9375rem; letter-spacing: .02em; }
.obj-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.obj-actions .btn { flex: 1 1 15rem; }
.obj-direct { flex-basis: 100%; margin: .5rem 0 0; font-size: .9375rem; color: var(--ink-2); }
.obj-note { margin-top: 1.5rem; font-size: .875rem; color: var(--ink-2); }
.obj-desc { margin-top: 2.25rem; max-width: 62ch; font-size: 1.0625rem; line-height: 1.72; }
.obj-desc p { text-wrap: pretty; }
.obj-facts { margin: 1.75rem 0 0; border-top: 1px solid var(--line); }
.obj-facts > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.obj-facts dt { font: italic 400 1rem/1.4 var(--serif); color: var(--ink-2); }
.obj-facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.obj-share { margin: 1.25rem 0 0; font-size: .9375rem; }
@media (min-width: 62rem) {
  .obj { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 1rem + 3vw, 5.5rem); padding: 2.5rem var(--gutter) 3.5rem; }
  .obj-strip { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; overflow: visible; background: none; }
  .obj-strip li:first-child { grid-column: 1 / -1; }
  .obj-photo { border-radius: var(--r); }
  .obj-strip li:first-child .obj-photo img { height: min(82vh, 58rem); }
  .obj-photo img { height: auto; aspect-ratio: 4 / 5; transition: transform .8s var(--ease); }
  .obj-count { display: none; }
  .obj-info { padding: 0; }
}
@media (min-width: 62rem) and (prefers-reduced-motion: no-preference) { .obj-strip li:not(:first-child) .obj-photo:hover img { transform: scale(1.03); } }
@media (min-width: 62rem) and (min-height: 46rem) {
  .obj-info { position: sticky; top: calc(var(--head-h) + 1.75rem); align-self: start; max-height: calc(100vh - var(--head-h) - 3.5rem); overflow-y: auto; scrollbar-width: thin; padding-right: .5rem; }
}
.obj-nav { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.obj-nav a { display: grid; grid-template-columns: 4.5rem 1fr; align-items: center; gap: 1rem; padding: 1.25rem; border-radius: var(--r); background: var(--vetrina); text-decoration: none; transition: background-color .25s; }
.obj-nav a:hover { background: color-mix(in srgb, var(--vetrina) 70%, var(--rosa)); }
.obj-nav img { width: 4.5rem; height: 4.5rem; object-fit: contain; }
.obj-nav-next { grid-template-columns: 1fr 4.5rem !important; text-align: right; }
.obj-nav-next img { order: 2; }
.obj-nav .k { display: block; font: italic 400 .9375rem/1.3 var(--serif); color: var(--t); }
.obj-nav .t { font: 400 1.0625rem/1.3 var(--serif); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 40rem) { .obj-nav { grid-template-columns: 1fr; } .obj-nav a { grid-template-columns: 3.5rem 1fr; padding: .9rem; } .obj-nav-next { grid-template-columns: 1fr 3.5rem !important; } .obj-nav img { width: 3.5rem; height: 3.5rem; } }

/* visionneuse */
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--vetrina); }
.lb::backdrop { background: var(--vetrina); overflow: hidden; overscroll-behavior: contain; }
.lb[open] { display: grid; place-items: center; grid-template: minmax(0, 1fr) / minmax(0, 1fr); }   /* pistes bornées à l'écran : sinon la ligne « auto » prend la hauteur de la photo */
.lb-fig { margin: 0; display: grid; place-items: center; grid-template: minmax(0, 1fr) / minmax(0, 1fr); width: 100%; height: 100%; min-width: 0; min-height: 0; overflow: hidden; padding: 3.5rem 4.5rem 3.5rem; }
.lb-fig img { max-width: 100%; max-height: 100%; min-width: 0; min-height: 0; width: auto; height: auto; object-fit: contain; }   /* toujours entière à l'écran */
.lb-cap { position: absolute; left: 50%; bottom: 1rem; translate: -50% 0; padding: .2rem .75rem; border-radius: 999px; background: rgba(244, 243, 243, .92); font-size: .875rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 3rem; height: 3rem; border: 0; border-radius: 50%; background: rgba(244, 243, 243, .92); cursor: pointer; }
.lb-btn:hover { background: #fff; }
.lb-prev { left: .75rem; top: 50%; translate: 0 -50%; }
.lb-next { right: .75rem; top: 50%; translate: 0 -50%; }
.lb-close { right: .75rem; top: .75rem; }
@media (max-width: 40rem) { .lb-fig { padding: 3.5rem .5rem 3.5rem; } .lb-prev, .lb-next { top: auto; bottom: .4rem; translate: none; } }

/* formulaires */
.ask { width: min(38rem, 100vw - 1.5rem); max-height: calc(100dvh - 2rem); padding: 0; border: 0; border-radius: 10px; background: var(--gesso); box-shadow: 0 50px 100px -40px rgba(30, 10, 15, .6); }
.ask::backdrop { background: rgba(59, 20, 28, .5); backdrop-filter: blur(3px); overflow: hidden; overscroll-behavior: contain; }
.ask-form { padding: 0 clamp(1.25rem, 1rem + 1.5vw, 2.25rem) 1.75rem; }
.ask .ask-head { position: relative; margin: 0 calc(-1 * clamp(1.25rem, 1rem + 1.5vw, 2.25rem)) 1.5rem; padding: 1.6rem clamp(1.25rem, 1rem + 1.5vw, 2.25rem) 1.35rem; padding-right: 4rem; background: var(--t); color: var(--on); }
.ask-title { font: 400 1.875rem/1.12 var(--serif); }
.ask-obj { margin: .5rem 0 0; font: italic 400 1rem/1.4 var(--serif); color: var(--on2); }
.ask-close { position: absolute; right: .75rem; top: .75rem; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: rgba(244, 240, 239, .12); color: var(--on-dark); cursor: pointer; }
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: .35rem; font-size: .875rem; font-weight: 500; }
.field input, .field textarea { width: 100%; padding: .75rem .9rem; border: 1px solid #b9b1b2; border-radius: var(--r); background: #fff; font-size: 1rem; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--velluto); outline-offset: 0; border-color: var(--velluto); }
.field textarea { resize: vertical; min-height: 8rem; }
.err-msg { display: none; margin: .35rem 0 0; font-size: .875rem; color: #a3121b; }
:is(:user-invalid, .user-invalid-fallback) { border-color: #a3121b; background: #fff6f6; }
:is(:user-invalid, .user-invalid-fallback) + .err-msg { display: block; }
.ask-note { font-size: .875rem; color: var(--ink-2); }
.ask-send { margin: 0; }
.ask-status { margin: 1rem 0 0; font-weight: 500; }
.ask-status:empty { display: none; }
.hp { position: absolute; left: -9999px; }

/* ---------- galerie / contacts / mentions ---------- */
.about-head { max-width: 54rem; }
.about-lede { margin-top: 1.75rem; font: 400 clamp(1.375rem, 1.15rem + .9vw, 2rem)/1.38 var(--serif); text-wrap: pretty; }
.about-lede strong { font-weight: 500; }
.about-wide { margin: 3rem 0; }
.about-wide img { width: 100%; max-height: 80vh; object-fit: cover; border-radius: var(--r); }
.about-body { max-width: 44rem; margin-left: auto; margin-right: max(0px, calc((100% - 44rem) / 4)); font-size: 1.125rem; line-height: 1.75; }
.about-body p { text-wrap: pretty; }
.about-h { margin: 2.5rem 0 1rem; font: italic 400 2rem/1.2 var(--serif); color: var(--velluto); }
.about-mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; list-style: none; margin: 3.5rem 0; padding: 0; }
@media (min-width: 50rem) { .about-mosaic { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.about-mosaic img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.about-sign { font: italic 400 1.375rem/1.4 var(--serif); color: var(--velluto); }
.contact-names { margin: 1rem 0 0; font: italic 400 1.5rem/1.4 var(--serif); color: var(--velluto); }
.contact-head { margin-bottom: 3rem; }
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 56rem) { .contact-grid { grid-template-columns: 5fr 6fr; gap: 5rem; } }
.contact-list { margin: 0; border-top: 1px solid var(--ink); }
.contact-list > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font: italic 400 1.0625rem/1.5 var(--serif); color: var(--ink-2); }
.contact-list dd { margin: 0; font-size: 1.125rem; line-height: 1.55; }
.contact-form { padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); background: #fff; border-radius: 10px; }
.contact-form .ask-title { margin-bottom: 1.25rem; }
.contact-photo { margin-top: 4.5rem; }
.legal { max-width: 50rem; }
.legal h2 { margin: 2.25rem 0 .6rem; font: 400 1.625rem/1.25 var(--serif); }
.legal p { line-height: 1.75; }
.legal-date { margin-top: 2.5rem; color: var(--ink-2); font-size: .9375rem; }
.nf .grid { margin-top: 3rem; }
.nf .search-inline { margin-bottom: 1.5rem; }

@media print {
  .site-head, .site-foot, .demo-band, .obj-actions, .obj-nav, .row-sec, .obj-share { display: none !important; }
}

/* ---------- bandeau de préparation des fiches PDF (couleur de la salle) ---------- */
.dl-toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 400; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 1.25rem;
  width: min(27rem, calc(100vw - 2rem)); padding: 1.1rem 1.4rem 1.2rem; border-radius: 10px; background: var(--t); color: var(--on);
  box-shadow: 0 24px 60px -24px rgba(20, 8, 12, .55); translate: -50% 1.25rem; opacity: 0; transition: opacity .3s var(--ease), translate .3s var(--ease); }
.dl-toast.is-on { translate: -50% 0; opacity: 1; }
.dl-toast p { margin: 0; grid-column: 1 / -1; }
.dl-t1 { font: 400 1.1875rem/1.25 var(--serif); }
.dl-t2 { margin-top: .2rem !important; min-height: 1em; font-size: .8125rem; color: var(--on2); }
.dl-track { position: relative; grid-column: 1; height: 3px; margin-top: .9rem; border-radius: 2px; background: color-mix(in srgb, var(--on) 18%, transparent); overflow: hidden; }
.dl-track i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 2px; background: var(--viva); transition: width .2s linear; }
.dl-pct { grid-column: 2; margin-top: .9rem; min-width: 3.2em; text-align: right; font: 400 .9375rem/1 var(--serif); color: var(--viva); font-variant-numeric: tabular-nums; }
.dl-toast.is-done .dl-t1 { color: var(--viva); }
@media (prefers-reduced-motion: reduce) { .dl-toast, .dl-track i { transition: none; } }


/* =====================================================================
   v3 — bandeaux de Brera, pied de page teinté, livres, favoris, sidebar
   ===================================================================== */
:root { --band-h: clamp(17rem, 13rem + 8vw, 22rem); }

/* bandeau de tête : même hauteur sur toutes les pages, photo de Brera teintée de la couleur de la page */
.band { position: relative; isolation: isolate; overflow: hidden; background: var(--t); color: var(--on); }
.band-img, .foot-img, .books-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; opacity: .62; pointer-events: none; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg var(--in-oklab), var(--t) 0%, color-mix(in oklab, var(--t) 86%, transparent) 28%, color-mix(in oklab, var(--t) 46%, transparent) 60%, color-mix(in oklab, var(--t) 6%, transparent) 100%); }
@media (max-width: 47.99rem) {
  .band::after { background: linear-gradient(0deg var(--in-oklab), var(--t) 0%, color-mix(in oklab, var(--t) 82%, transparent) 42%, color-mix(in oklab, var(--t) 12%, transparent) 100%); }
}
.band-img { opacity: .72; }
.band-in { max-width: var(--max); min-height: var(--band-h); margin: 0 auto; padding: clamp(2rem, 1.5rem + 2vw, 3.25rem) var(--gutter); display: flex; flex-direction: column; justify-content: flex-end; }
.band .crumbs ol { color: var(--on2); }
.band .crumbs li + li::before { color: var(--on2); opacity: .6; }
.band .crumbs a:hover { text-decoration-color: var(--viva); }
.band-title { color: var(--on); max-width: 22ch; }
.band-sub { margin: .85rem 0 0; font: italic 400 clamp(1.0625rem, 1rem + .3vw, 1.25rem)/1.4 var(--serif); color: var(--on2); }
.band-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.4rem; }
.band .search-inline input { border-color: transparent; }
.band .btn, .btn-on { background: var(--on); border-color: var(--on); color: var(--t); }
.band .btn:hover, .btn-on:hover { background: #fff; border-color: #fff; color: var(--t); }
.band :focus-visible, .site-foot :focus-visible, .books-sec :focus-visible { outline-color: var(--on); }

/* pied de page : la même photo de rue, en dégradé vers la couleur de la page */
.site-foot::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(200deg var(--in-oklab), color-mix(in oklab, var(--t) 30%, transparent) 0%, color-mix(in oklab, var(--t) 66%, transparent) 36%, color-mix(in oklab, var(--t) 93%, transparent) 68%, var(--t) 100%); }
.foot-img { opacity: .62; }

/* sidebar des listes : à droite, en carte de la couleur de la salle */
.list-side { display: grid; gap: 1rem; align-content: start; }
.side-box { background: #fff; border: 1px solid color-mix(in srgb, var(--t) 12%, var(--line)); border-top: 3px solid var(--t); border-radius: var(--r); padding: 1rem 1rem .75rem; }
.side-box summary { padding: .1rem .5rem .75rem; font-size: 1.125rem; }
.side-tree a { align-items: center; padding: .5rem .55rem; border-bottom: 0; border-radius: 4px; transition: background-color .2s; }
.side-tree > li + li { border-top: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.side-tree a:hover { background: color-mix(in srgb, var(--t) 6%, transparent); }
.side-tree a:hover > span:first-child { text-decoration: none; }
.side-tree a[aria-current] { background: var(--t); color: var(--on); }
.side-tree a[aria-current] > span:first-child { color: var(--on); font-style: normal; }
.side-tree > li[style] > a > span:first-child::before { width: .55rem; height: .55rem; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.side-tree .n { min-width: 2.4em; padding: .1rem .45rem; border-radius: 999px; text-align: center; background: color-mix(in srgb, var(--t) 7%, transparent); color: var(--ink-2); }
.side-tree a[aria-current] .n { background: color-mix(in srgb, var(--on) 18%, transparent); color: var(--on); }
.side-tree ul { margin: .1rem 0 .5rem .85rem; padding: 0 0 0 .6rem; border-left: 2px solid var(--c, var(--t)); }
.side-tree ul a { padding: .32rem .5rem; }
.side-search { margin-top: 0; }
.side-visit { padding: 1.1rem 1.25rem 1.2rem; border-radius: var(--r); background: var(--t); color: var(--on); font-size: .875rem; line-height: 1.55; }
.side-visit p { margin: 0 0 .4rem; }
.side-visit-k { font: italic 400 1.0625rem/1.3 var(--serif); color: var(--on2); }
.side-visit .link-arrow { color: var(--on); text-decoration-color: var(--viva); }
@media (min-width: 64rem) {
  .list-side { top: calc(var(--head-h) + 1.25rem); max-height: calc(100vh - var(--head-h) - 2.5rem); }
}
@media (max-width: 63.99rem) { .list-side { margin-top: 1.5rem; padding-top: 2rem; border-top: 1px solid var(--line); } }
@media (max-width: 63.99rem) { .side-box { border-top-width: 3px; } }
/* sidebar (ordinateur) : légère transparence, la S du fond se devine derrière les encadrés */
@media (min-width: 64rem) {
  .list-side .side-box, .list-side .side-search { background: color-mix(in srgb, #fff 55%, transparent); backdrop-filter: blur(5px) saturate(1.15); -webkit-backdrop-filter: blur(5px) saturate(1.15); }
  .list-side .side-visit { background: color-mix(in srgb, var(--t) 86%, transparent); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
}

/* favoris : le cœur sur chaque objet */
.card { position: relative; }
.wish { position: absolute; z-index: 2; top: .6rem; right: .6rem; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; border: 0; border-radius: 50%;
  background: color-mix(in srgb, #fff 90%, transparent); color: var(--ink); cursor: pointer; box-shadow: 0 1px 4px rgb(30 26 26 / .1); transition: transform .2s var(--ease), scale .2s var(--ease), background-color .2s, color .2s; }
.wish:hover { background: #fff; transform: scale(1.06); }
.wish[aria-pressed="true"], .wish-btn[aria-pressed="true"] { --heart-fill: currentColor; color: var(--c, var(--t)); }
.wish-btn[aria-pressed="true"] { border-color: var(--t); }
.wish-btn[aria-pressed="true"]:hover { color: var(--gesso); }
.wish-tool { position: relative; }
.wish-n { position: absolute; top: .3rem; right: .2rem; display: grid; place-items: center; min-width: 1.15rem; height: 1.15rem; padding: 0 .25rem; border-radius: 999px; background: var(--t); color: var(--on); font-size: .6875rem; font-weight: 600; line-height: 1; }
.wish-n[hidden] { display: none; }
.wish-page, .books-page { max-width: var(--max); margin: 0 auto; padding: clamp(2rem, 1.5rem + 2.5vw, 4rem) var(--gutter) clamp(3.5rem, 2.5rem + 4vw, 7rem); }
.wish-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }
.wish-tools[hidden], .wish-empty[hidden] { display: none; }
.wish-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }
.wish-empty { max-width: 40rem; }
@media (prefers-reduced-motion: reduce) { .wish { transition: none; } }

/* livres : cartes (accueil, page des livres) */
.books { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, .4rem + 2.4vw, 2.25rem); margin: 0; padding: 0; list-style: none; }
.book-card a { display: flex; flex-direction: column; gap: 1rem; height: 100%; color: inherit; text-decoration: none; }
.book-cover { display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); background: var(--vetrina); box-shadow: 0 22px 44px -26px rgb(0 0 0 / .55); }
.book-cover img { width: 100%; height: 100%; object-fit: contain; transition: transform .8s var(--ease); }
.book-card a:hover .book-cover img { transform: scale(1.03); }
.book-meta { display: grid; gap: .3rem; }
.book-year { font-size: .8125rem; letter-spacing: .02em; opacity: .78; font-variant-numeric: tabular-nums; }
.book-name { margin: 0; font: 400 clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem)/1.05 var(--serif); }
.book-full { font: italic 400 1rem/1.4 var(--serif); opacity: .85; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.book-price { margin-top: .2rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.book-card a:hover .book-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.books-sec { position: relative; isolation: isolate; overflow: hidden; background: var(--t); color: var(--on); }
.books-sec::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg var(--in-oklab), var(--t) 0%, color-mix(in oklab, var(--t) 86%, transparent) 50%, color-mix(in oklab, var(--t2) 72%, transparent) 100%); }
.books-bg { opacity: .4; }
.books-in { display: grid; gap: 2.5rem; max-width: var(--max); margin: 0 auto; padding: clamp(3.5rem, 2.5rem + 4vw, 7rem) var(--gutter); }
.books-head .lede { margin: 1.25rem 0 1.75rem; max-width: 34ch; }
.books-sec .book-cover { background: color-mix(in srgb, var(--gesso) 92%, transparent); }
@media (min-width: 60rem) { .books-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); align-items: center; gap: clamp(3rem, 1rem + 5vw, 7rem); } }
.books-lede { max-width: 60ch; margin: 0 0 2.75rem; font: 400 clamp(1.2rem, 1.05rem + .5vw, 1.45rem)/1.5 var(--serif); }
.books-page .books { max-width: 60rem; }

/* page d'un livre */
.bk { max-width: var(--max); margin: 0 auto; padding: clamp(2rem, 1.5rem + 2.5vw, 4rem) var(--gutter) clamp(3.5rem, 2.5rem + 4vw, 7rem); }
.bk-intro { display: grid; gap: 2.5rem; }
@media (min-width: 60rem) {
  .bk-intro { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 1rem + 4vw, 6rem); align-items: start; }
  .bk-cover { position: sticky; top: calc(var(--head-h) + 1.5rem); }
}
.bk-cover { margin: 0; }
.bk-photo { display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; background: var(--vetrina); cursor: zoom-in; }
.bk-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.bk-cover .bk-photo img { height: auto; object-fit: contain; }
.bk-photo:hover img { transform: scale(1.025); }
.bk-kick { margin: 0; font-size: .875rem; letter-spacing: .02em; color: var(--t); font-variant-numeric: tabular-nums; }
.bk-full { margin: .6rem 0 1.5rem; font: 400 clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem)/1.12 var(--serif); text-wrap: balance; }
.bk-txt > p { max-width: 62ch; line-height: 1.7; }
.bk-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin: 2rem 0; padding: 1.35rem 0; border-block: 1px solid var(--line); }
.bk-buy .obj-price { margin: 0; }
.bk-credits { margin: 0; }
.bk-credits div { display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.bk-credits dt { font: italic 400 1rem/1.4 var(--serif); color: var(--ink-2); }
.bk-credits dd { margin: 0; }
.bk-credits dd.full { grid-column: 1 / -1; color: var(--ink-2); }
.bk-gal { margin-top: clamp(3.5rem, 2.5rem + 4vw, 6.5rem); }
.bk-gal-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 1.75rem; }
.bk-gal-n { margin: 0; color: var(--ink-2); }
.bk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.bk-grid li { aspect-ratio: 2 / 3; }
.bk-grid li.is-wide { grid-column: span 2; aspect-ratio: 4 / 3; }
@media (min-width: 60rem) { .bk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
.bk-other { margin-top: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.bk-other .sec-title { margin-bottom: 1.5rem; }
.bk-other-card { display: grid; grid-template-columns: minmax(7rem, 12rem) 1fr; gap: clamp(1.25rem, .5rem + 3vw, 3rem); align-items: center; max-width: 52rem; padding: 1.25rem; border-radius: var(--r); background: var(--vetrina); color: inherit; text-decoration: none; }
.bk-other-card img { width: 100%; height: auto; border-radius: 4px; }
.bk-other-card > span { display: grid; gap: .4rem; }
.bk-other-card .book-name { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.bk-other-card .link-arrow { margin-top: .5rem; justify-self: start; }
.bk-other-card:hover .book-name { text-decoration: underline; text-decoration-thickness: 1px; }
@media (prefers-reduced-motion: reduce) { .bk-photo img, .book-cover img { transition: none; } }


/* les trois langues, la langue en cours soulignée */
.langs { display: flex; align-items: center; gap: .1rem; margin-left: .35rem; }
.langs .lang { display: inline-grid; place-items: center; min-width: 2.15rem; min-height: 2.5rem; padding: 0 .2rem; font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-decoration: none; color: var(--ink-2); border-radius: 4px; }
.langs a.lang:hover { color: var(--ink); background: var(--vetrina); }
.langs .is-on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--t); border-radius: 0; }

/* mode contrasté (Windows) : les photos décoratives gardent leurs couleurs, on les retire ; états visibles sans fond */
@media (forced-colors: active) {
  .band-img, .foot-img, .books-bg { display: none; }
  .side-tree a[aria-current], .langs .is-on, .chips a[aria-current] { outline: 2px solid Highlight; outline-offset: -2px; }
  .wish[aria-pressed="true"], .wish-btn[aria-pressed="true"] { outline: 2px solid Highlight; }
}

/* recherche de la sidebar : un champ de la même famille que la carte des collections */
.side-search { position: relative; display: flex; align-items: center; margin: 0; background: #fff; border: 1px solid color-mix(in srgb, var(--t) 22%, var(--line)); border-radius: var(--r); transition: border-color .2s, box-shadow .2s; }
.side-search:hover { border-color: color-mix(in srgb, var(--t) 45%, var(--line)); }
.side-search:focus-within { border-color: var(--t); box-shadow: 0 0 0 3px color-mix(in srgb, var(--t) 14%, transparent); }
.side-search .side-search-ic { position: static; translate: none; flex: none; margin-left: .85rem; color: var(--t); }
.side-search input { flex: 1; min-width: 0; min-height: 2.9rem; padding: .5rem .5rem .5rem .6rem; border: 0; border-radius: 0; background: transparent; font-size: .9375rem; }
.side-search input::placeholder { color: var(--ink-2); font: italic 400 1rem/1 var(--serif); opacity: 1; }
.side-search input:focus-visible { outline: none; }
.side-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.side-search-go { display: grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; margin-right: .2rem; border: 0; border-radius: calc(var(--r) - 2px); background: transparent; color: var(--t); cursor: pointer; }
.side-search-go:hover { background: color-mix(in srgb, var(--t) 8%, transparent); }
.side-search-go:focus-visible { outline: 2px solid var(--t); outline-offset: 0; }
@media (forced-colors: active) { .side-search:focus-within { outline: 2px solid Highlight; } }

/* icônes du pied de page */
.foot-list dt { display: flex; align-items: center; gap: .5rem; }
.foot-list dt .ic { flex: none; color: var(--viva); }
.foot-nav a { display: inline-flex; align-items: center; gap: .55rem; }
.foot-nav .ic { flex: none; color: var(--on2); }
.foot-nav a:hover .ic { color: var(--viva); }
.foot-nav li[style] > a::before { content: ""; flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px color-mix(in srgb, var(--on) 30%, transparent); }

/* catalogues PDF dans la sidebar */
.side-tree li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: .1rem; }
.side-tree li > ul { grid-column: 1 / -1; }
/* sélecteurs .side-tree : la règle « .side-tree a » (flex + padding) écrasait la boîte et l'icône tombait à 12 px de large */
.side-tree .side-pdf { display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0; border-radius: 6px; color: var(--ink-2); transition: color .2s, background-color .2s; }
.side-tree .side-pdf svg { flex: none; width: 1.25rem; height: 1.25rem; }
.side-tree .side-pdf:hover, .side-tree .side-pdf:focus-visible { color: var(--t); background: color-mix(in srgb, var(--t) 8%, transparent); }

/* « charger plus » à la place des numéros de page */
.more { display: grid; justify-items: center; gap: .85rem; max-width: 24rem; margin: 3.75rem auto 0; text-align: center; }
.more-count { margin: 0; font-size: .875rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.more-bar { display: block; width: 100%; height: 2px; border-radius: 2px; overflow: hidden; background: color-mix(in srgb, var(--t) 12%, var(--line)); }
.more-bar > span { display: block; height: 100%; background: var(--t); transition: width .45s var(--ease); }
.more-btn { min-width: 15rem; justify-content: center; margin-top: .4rem; }
.more-btn.is-loading { opacity: .6; cursor: progress; }
.more-first { font-size: .875rem; }
@media (prefers-reduced-motion: reduce) { .more-bar > span { transition: none; } }

/* formulaires : champs côte à côte, listes, fichiers */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 30rem) { .field-row { grid-template-columns: 1fr; } }
/* liste déroulante (« Momento ») : même famille que le champ date (bordure, hauteur, flèche laiton).
   Là où le navigateur sait habiller la liste (base-select, souris), elle prend le papier et le laiton de la galerie ;
   sur écran tactile on garde la liste du système (roue iOS, feuille Android). */
.field select { appearance: none; -webkit-appearance: none; width: 100%; min-height: 3rem; padding: .7rem 2.75rem .7rem .9rem; border: 1px solid #b9b1b2; border-radius: var(--r); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8813a' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .85rem center / 1.15rem; color: var(--ink); font: 500 1rem/1.3 var(--sans); cursor: pointer; transition: border-color .2s; }
.field select:hover { border-color: color-mix(in srgb, var(--t) 55%, #b9b1b2); }
.field select:focus-visible { outline: 2px solid var(--velluto); outline-offset: 0; border-color: var(--velluto); }
@supports (appearance: base-select) {
  @media (pointer: fine) {
    .field select, .field select::picker(select) { appearance: base-select; }
    .field select { padding-right: .9rem; background-image: none; }
    .field select::picker-icon { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23a8813a' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); margin-left: auto; transition: rotate .2s var(--ease); }
    .field select:open::picker-icon { rotate: 180deg; }
    .field select::picker(select) { margin-block: .35rem; padding: .35rem; border: 0; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 28px 56px -18px rgba(30, 10, 15, .5); }
    .field select option { display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; border-radius: 6px; color: var(--ink); font: 400 1rem/1.3 var(--sans); cursor: pointer; }
    .field select option:hover, .field select option:focus-visible { background: var(--velo); outline: none; }
    .field select option:checked { font-weight: 600; }
    .field select option::checkmark { order: 1; margin-left: auto; color: var(--rosa); }
  }
}
.field-note { margin: .4rem 0 0; font-size: .8125rem; color: var(--ink-2); }
.field-file input[type="file"] { padding: .65rem; border-style: dashed; border-color: color-mix(in srgb, var(--t) 40%, #b9b1b2); font-size: .875rem; }
.field-file input[type="file"]::file-selector-button { margin-right: .8rem; padding: .45rem 1rem; border: 1px solid var(--t); border-radius: 999px; background: transparent; color: var(--t); font: 500 .875rem/1.2 var(--sans); cursor: pointer; }
.val-thumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0 0; padding: 0; list-style: none; }
.val-thumbs:empty { display: none; }
.val-thumbs img { display: block; width: 4.25rem; height: 4.25rem; object-fit: cover; border-radius: 4px; }

/* page des estimations */
.val { display: grid; gap: 2.75rem; max-width: var(--max); margin: 0 auto; padding: clamp(2rem, 1.5rem + 2.5vw, 4rem) var(--gutter) clamp(3.5rem, 2.5rem + 4vw, 7rem); }
@media (min-width: 60rem) {
  .val { grid-template-columns: minmax(0, 1fr) minmax(0, 32rem); gap: clamp(3rem, 1rem + 5vw, 6.5rem); align-items: start; }
  .val-form { position: sticky; top: calc(var(--head-h) + 1.5rem); }
}
.val-txt .lede { max-width: 34ch; }
.val-steps { display: grid; gap: 1.75rem; margin: 2.5rem 0; padding: 0; list-style: none; counter-reset: st; }
.val-steps li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); counter-increment: st; }
.val-steps li::before { content: counter(st); grid-row: span 2; font: 400 2.25rem/1 var(--serif); color: var(--t); }
.val-steps h2 { margin: 0 0 .35rem; font: 400 1.45rem/1.2 var(--serif); }
.val-steps p { margin: 0; max-width: 54ch; line-height: 1.65; }
.val-visit { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin: 0; padding-top: 1.75rem; border-top: 1px solid var(--line); font: italic 400 1.125rem/1.4 var(--serif); }
.val-visit .btn { font: 500 .9375rem/1.2 var(--sans); }
.side-search .side-search-go svg { position: static; translate: none; color: inherit; }
.side-tree .n { min-width: 2.2em; }

/* =====================================================================
   bandeau des collections : le catalogue PDF en éventail (grand écran)
   ===================================================================== */
.band-actions { align-items: center; }
.band-meta { font: italic 400 1.0625rem/1.3 var(--serif); color: var(--on2); }
.band-in.has-aside { display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; }
.band-txt { display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }
.pdfv { display: none; }
@media (min-width: 64rem) {
  .band-in.has-aside { grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(2rem, 1rem + 3vw, 5rem); }
  .pdfv { --pw: clamp(8.5rem, 4rem + 6.5vw, 11rem); display: block; align-self: center; margin-block: -1.25rem; color: inherit; text-decoration: none; cursor: pointer; }
}
.pdfv-stack { position: relative; display: block; width: calc(var(--pw) * 1.8); height: calc(var(--pw) * 1.414 + 1.6rem); }
.pdfv-sheet { position: absolute; bottom: 0; width: var(--pw); aspect-ratio: 210 / 297; border-radius: 2px; transform-origin: 50% 100%;
  box-shadow: 0 2px 5px rgb(0 0 0 / .22), 0 26px 44px -20px rgb(0 0 0 / .65); transition: transform .7s var(--ease); container-type: inline-size; }
.pdfv-s3 { left: 0; bottom: .6rem; transform: rotate(-8deg); }
.pdfv-s2 { right: 0; bottom: .35rem; transform: rotate(6.5deg); }
.pdfv-s1 { left: 50%; transform: translateX(-50%) rotate(-1deg); }
.pdfv:hover .pdfv-s3 { transform: translateX(-9%) rotate(-12deg); }
.pdfv:hover .pdfv-s2 { transform: translateX(9%) rotate(10deg); }
.pdfv:hover .pdfv-s1 { transform: translateX(-50%) translateY(-5%) rotate(0deg); }
@media (prefers-reduced-motion: reduce) { .pdfv-sheet { transition: none; } }

.pdfv-page { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: inherit; }
/* couverture : celle du PDF, en miniature (fond composé, titre Hanken Light en haut à gauche, grille aux quatre coins ;
   mesures en cqi = pourcentage de la largeur de la page A4) */
.pdfv-cover { padding: 0; background: var(--t); color: #fff; }
.pdfv-cover.is-light { color: #1f1b1c; }
.pdfv-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* textes de la couverture, comme dans le PDF : titre en Bodoni Moda Display, mentions en italique Bodoni, le reste discret */
.pdfv-t { position: absolute; left: 5.8cqi; top: 4.7cqi; font-family: var(--serif); font-weight: 400; font-variation-settings: "opsz" 96; line-height: .98; letter-spacing: -.01em; color: #fff; }
.is-light .pdfv-t { color: var(--t); }
.pdfv-n { position: absolute; left: 6.05cqi; font: 400 1.6cqi/1 var(--sans); }
.pdfv-k { position: absolute; right: 6.05cqi; top: 5.6cqi; font: 400 1.45cqi/1.5 var(--sans); text-align: right; }
.pdfv-k::first-line { font-family: var(--serif); font-style: italic; font-size: 2cqi; }
.pdfv-logo { position: absolute; left: 6.05cqi; bottom: 6.05cqi; width: 21.5cqi; height: auto; }
.pdfv-site { position: absolute; right: 6.05cqi; bottom: 6.05cqi; font: 400 1.45cqi/1 var(--sans); }
/* pages intérieures : deux œuvres par page, comme dans le PDF */
.pdfv-in { padding: 7cqi 7cqi 6cqi; background: #fbfaf8; color: #161414; background-image: linear-gradient(100deg, rgb(0 0 0 / .05), transparent 14%); }
.pdfv-head { display: flex; align-items: center; justify-content: space-between; gap: 3cqi; }
.pdfv-head img { width: 36cqi; height: auto; }
.pdfv-head span { font: italic 400 4cqi/1 var(--serif); color: #6b6466; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdfv-rule { display: block; height: .9cqi; margin: 2.2cqi 0 5cqi; background: var(--t); }
.pdfv-slot { display: grid; grid-template-columns: 54% 1fr; gap: 4cqi; height: 52cqi; margin-bottom: 4.5cqi; }
.pdfv-img { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; padding: 3cqi; background: #efedec; overflow: hidden; min-height: 0; }
.pdfv-img img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.pdfv-txt { display: flex; flex-direction: column; gap: 2cqi; min-width: 0; padding-top: 1cqi; }
.pdfv-ot { font: 400 4.6cqi/1.18 var(--serif); display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pdfv-op { font: 700 4.2cqi/1 var(--sans); }
.pdfv-lines { display: block; height: 13cqi; background: repeating-linear-gradient(to bottom, #d9d6d4 0 .7cqi, transparent .7cqi 2.7cqi); width: 92%; }

/* résumé de « La nostra storia » au bas des fiches */
.story { border-top: 1px solid var(--line); }
.story-k { margin: 0 0 .6rem; font: italic 400 1.0625rem/1.3 var(--serif); color: var(--t); }
.story-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.story-cta .btn { margin-top: 0; }
@media (min-width: 60rem) { .story { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* texte d'introduction des listes (une phrase propre à chaque page) */
.list-intro { max-width: 68ch; margin: 0 0 1.75rem; font: 400 clamp(1.0625rem, 1rem + .25vw, 1.2rem)/1.6 var(--serif); color: var(--ink-2); text-wrap: pretty; }

/* fiche : icônes à gauche des liens (téléphone, email, collections, partage, image Instagram) */
.obj-direct { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.obj-direct a, .obj-cols a, .obj-share .link-btn { display: inline-flex; align-items: center; gap: .45rem; }
.obj-direct .ic, .obj-cols .ic, .obj-share .ic { flex: none; color: var(--t, currentColor); }
.obj-cols { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; }
.obj-share { display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; }

/* espace d'interpolation des dégradés (bandeaux, pied de page) : oklab là où il est pris en charge */
:root { --in-oklab: ; }
@supports (background: linear-gradient(in oklab, white, black)) { :root { --in-oklab: in oklab; } }

/* bouton du reel : visible seulement quand le navigateur sait créer la vidéo */
.obj-share [data-reel][hidden] { display: none; }

/* bandeau défilant de mots-clés, en haut de toutes les pages, dans la couleur de la page */
.ticker { position: relative; display: flex; align-items: center; background: var(--t); color: var(--on2); }
.ticker-view { flex: 1; min-width: 0; overflow: hidden; }
.ticker-track { display: flex; width: max-content; }
.ticker-list { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.ticker-list li { display: flex; align-items: center; padding-block: .7rem; font: 600 .6875rem/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; }
.ticker-list li::after { content: ""; flex: none; width: 5px; height: 5px; margin-inline: 2.4rem; background: var(--viva); rotate: 45deg; }
.ticker-btn { flex: none; display: none; place-items: center; width: 2.75rem; align-self: stretch; padding: 0; border: 0; border-left: 1px solid color-mix(in oklab, var(--on2) 25%, transparent); background: var(--t); color: var(--on2); cursor: pointer; }
.ticker-btn:hover { color: var(--on); }
.ticker-btn:focus-visible { outline: 2px solid var(--on); outline-offset: -4px; }
.ticker-btn .i-play, .ticker.is-paused .ticker-btn .i-pause { display: none; }
.ticker.is-paused .ticker-btn .i-play { display: block; }
/* sans mouvement demandé : la ligne reste immobile, sans bouton */
@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: ticker 90s linear infinite; }
  .ticker:hover .ticker-track, .ticker.is-paused .ticker-track { animation-play-state: paused; }
  .ticker-btn { display: grid; }
}
@keyframes ticker { to { translate: -50% 0; } }
@media (forced-colors: active) { .ticker-list li::after { background: CanvasText; } }

/* filtre par prix : une rangée de pastilles, comme les sous-collections */
.chips-prezzo { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; }
.chips-prezzo .chips-k { margin: 0; font: italic 400 1.0625rem/1.2 var(--serif); color: var(--ink-2); }
.chips-prezzo ul { flex: 1 1 auto; }
.chips-prezzo a { min-height: 2.25rem; padding: .3rem .9rem; font-size: .875rem; }

/* « I più visti » : une section par collection */
.visti-grp + .visti-grp { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.visti-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; margin: 0 0 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.visti-t { margin: 0; font: 400 clamp(1.5rem, 1.2rem + 1vw, 2.125rem)/1.15 var(--serif); }

/* photos à évaluer : vignettes + tuile « Aggiungi foto » (ajout une à une), retrait de chaque photo */
.photo-tray { display: flex; flex-wrap: wrap; gap: .6rem; padding: .75rem; border: 1px dashed color-mix(in oklab, var(--t) 45%, #b9b1b2); border-radius: var(--r); background: color-mix(in oklab, var(--velo) 60%, transparent); }
.photo-tray.is-drop { border-style: solid; border-color: var(--t); background: var(--velo); }
.photo-tray .val-thumbs { display: contents; }
.photo-tray .val-thumbs li { position: relative; }
.photo-tray .val-thumbs img { width: 6rem; height: 6rem; border-radius: 4px; }
.photo-rm { position: absolute; top: -.45rem; right: -.45rem; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; }
.photo-rm:hover { border-color: var(--t); color: var(--t); }
.photo-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.field .photo-add { display: grid; justify-items: center; align-content: center; gap: .2rem; width: 6rem; min-height: 6rem; padding: .5rem; border: 1px solid color-mix(in oklab, var(--t) 35%, transparent); border-radius: 4px; background: #fff; color: var(--t); text-align: center; cursor: pointer; }
.photo-add:hover, .photo-input:focus-visible + .photo-add { border-color: var(--t); box-shadow: 0 0 0 2px var(--t); }
.photo-add-t { display: block; font: 600 .8125rem/1.15 var(--sans); }
.photo-add-s { display: block; font: 400 .6875rem/1.2 var(--sans); color: var(--ink-2); }
.photo-tray.is-full .photo-add { display: none; }
.field .photo-add .ic { margin: 0 0 .15rem; }
.photo-count { font-weight: 600; color: var(--ink); }
/* jauge du poids des photos (par email) : se remplit à chaque ajout, passe au rouge maison quand il reste moins de 20 % */
.photo-meter { display: block; height: 3px; margin: .6rem 0 0; border-radius: 3px; background: color-mix(in srgb, var(--line) 70%, transparent); overflow: hidden; }
.photo-meter[hidden] { display: none; }
.photo-meter > span { display: block; width: var(--used, 0%); height: 100%; border-radius: inherit; background: var(--viva); transition: width .35s var(--ease); }
.photo-meter.is-low > span { background: var(--dot); }
@media (prefers-reduced-motion: reduce) { .photo-meter > span { transition: none; } }
/* sans JavaScript : le champ natif reste visible */
.no-js .photo-input { position: static; width: auto; height: auto; clip-path: none; }

/* « La nostra storia » : le récit en colonne de lecture, les photos d'archive de la page d'origine dans la marge,
   chacune en face du paragraphe qu'elle illustre (comme dans une monographie) ; en pleine largeur sur mobile */
.storia .st-body { max-width: 40rem; margin-inline: auto; font-size: 1.125rem; line-height: 1.75; }
.storia .st-body::after { content: ""; display: block; clear: both; }
.storia .st-body p { text-wrap: pretty; }
.storia .about-lede { margin-top: 0; }
.storia .st-body img, .storia .st-close img { display: block; max-width: 100%; height: auto; border-radius: 3px; }
.storia .st-side { margin: .4rem 0 1.5rem; }
.storia .st-side img { width: auto; max-height: 26rem; }
.storia .st-pair { display: grid; gap: .75rem; margin: 2rem 0; }   /* colonnes proportionnelles aux photos : même hauteur, sans recadrage */
.storia .st-pair figure, .storia .st-close figure { margin: 0; }
.storia .st-pair img { width: 100%; }
.storia .st-wide { margin: 2rem 0; }
/* ligne de photos à la même hauteur : chaque photo prend une part de largeur égale à ses proportions ; deux par ligne sur téléphone */
.storia .st-row { display: flex; flex-wrap: wrap; column-gap: .75rem; margin: 2rem 0; }
.storia .st-row figure { flex: var(--r) 1 0; min-width: 0; margin: 0; }
.storia .st-row img { display: block; width: 100%; height: auto; }
.storia .st-break { flex-basis: 100%; height: .75rem; }   /* passage à la ligne (téléphone), avec l'écart entre les deux lignes */
@media (min-width: 40rem) { .storia .st-break { display: none; } }
.storia .st-close { display: grid; gap: 1.25rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.storia .st-close img { width: 100%; max-width: 533px; }
@media (min-width: 64rem) {
  .storia .st-body { max-width: 61rem; padding-right: 21rem; }
  .storia .st-side { float: right; clear: right; width: 17rem; margin: .45rem -21rem 1.25rem 0; }
  .storia .st-side img { max-height: 15.5rem; }
  .storia .st-pair, .storia .st-row { width: calc(100% + 21rem); clear: right; }
  .storia .st-close { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: end; clear: both; }
}

/* « I più visti » : note quand une langue n'a pas encore assez de vues */
.list-note { margin: -.25rem 0 1.5rem; font: italic 400 1.0625rem/1.5 var(--serif); color: var(--ink-2); }

/* « La nostra storia » : ouverture (texte + portraits des fondateurs), chronologie, devise */
.storia .st-open { display: grid; gap: 1.75rem; max-width: 61rem; margin-inline: auto; }
.storia .st-open .about-lede { margin: 0; }
.st-founders { margin: 0; }
.st-founders > div { display: flex; gap: .5rem; }
.st-founders img { width: 50%; max-width: 173px; height: auto; aspect-ratio: 173 / 200; object-fit: cover; border-radius: 3px; }
.st-founders figcaption { margin-top: .6rem; font: italic 400 .9375rem/1.4 var(--serif); color: var(--ink-2); }
@media (min-width: 48rem) { .storia .st-open { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 3rem; } .st-founders img { width: 9.5rem; } }
/* téléphone : les photos en marge et le duo des fondateurs prennent toute la largeur de la colonne (sans dépasser le ratio d'origine) */
@media (max-width: 39.99rem) {
  .storia .st-side img { width: 100%; max-height: none; }
  .st-founders img { width: calc(50% - .25rem); max-width: none; }
}
.crono { margin: 0 0 clamp(2.5rem, 2rem + 2vw, 4rem); }   /* même largeur que la grande photo au-dessus */
.crono-t { margin: 0 0 1.25rem; font: italic 400 1.5rem/1.2 var(--serif); color: var(--t); }
.crono ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1.25rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 40rem) { .crono ol { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .crono ol { grid-template-columns: repeat(9, minmax(0, 1fr)); } }
.crono li { display: grid; align-content: start; gap: .35rem; padding-top: .8rem; border-top: 1px solid color-mix(in oklab, var(--t) 45%, var(--line)); }
.crono time { font: 400 1.75rem/1 var(--serif); color: var(--t); font-variant-numeric: lining-nums; }
.crono span { font-size: .875rem; line-height: 1.4; color: var(--ink-2); }
.crono a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--t) 45%, transparent); text-underline-offset: .15em; }
.crono a:hover { color: var(--t); }
.storia .st-quote { clear: both; margin: 2.75rem 0; padding: 0; font: italic 400 clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem)/1.15 var(--serif); color: var(--t); text-wrap: balance; }
.st-names { margin: .35rem 0 0; font-size: .9375rem; color: var(--ink-2); }
@media (min-width: 64rem) { .storia .st-quote { width: calc(100% + 21rem); } }

/* ---------- sélecteur de date (remplace l'affichage natif de input[type="date"]) ----------
   Même esprit que le formulaire : champ blanc cerné de gris chaud, calendrier à bandeau de velours
   (couleur de la salle, --t), chiffres en Hanken, mois en Bodoni, laiton pour les petits accents. */
.dp { position: relative; display: block; }
.dp input.dp-native { position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; min-height: 0; margin: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; overflow: hidden; }
.dp-btn { display: flex; align-items: center; gap: .65rem; width: 100%; min-height: 3rem; padding: .7rem .9rem; border: 1px solid #b9b1b2; border-radius: var(--r); background: #fff; color: var(--ink); font: 500 1rem/1.3 var(--sans); text-align: left; cursor: pointer; transition: border-color .2s; }
.dp-btn:hover { border-color: color-mix(in srgb, var(--t) 55%, #b9b1b2); }
.dp-btn:focus-visible, .dp-btn[aria-expanded="true"] { outline: 2px solid var(--velluto); outline-offset: 0; border-color: var(--velluto); }
.dp-ic { flex: none; width: 1.25rem; height: 1.25rem; fill: none; stroke: var(--rosa); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dp-val.is-empty { font: italic 400 1rem/1.3 var(--serif); color: var(--ink-2); }
.dp.is-invalid .dp-btn { border-color: #a3121b; background: #fff6f6; }
.dp.is-invalid + .err-msg { display: block; }

.dp-panel { inset: auto; margin: 0; padding: 0; width: min(19.5rem, calc(100vw - 1rem)); border: 0; border-radius: 10px; overflow: hidden; background: #fff; color: var(--ink); font-family: var(--sans); box-shadow: 0 0 0 1px var(--line), 0 28px 56px -18px rgba(30, 10, 15, .5); visibility: hidden; }
.dp-panel.is-placed { visibility: visible; }
.dp-panel:focus { outline: none; }
.dp-panel:popover-open { display: block; }
.dp-panel [hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .dp-panel.is-placed { animation: dp-in .18s var(--ease); }
  @keyframes dp-in { from { opacity: 0; transform: translateY(-5px); } }
}
.dp-head { display: flex; align-items: center; justify-content: space-between; gap: .25rem; padding: .45rem .55rem; background: var(--t); color: var(--on-dark); }
.dp-title { flex: 1; text-align: center; font: 400 1.25rem/1.2 var(--serif); }
.dp-title::first-letter { text-transform: uppercase; }
.dp-nav { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: rgba(244, 240, 239, .1); color: var(--viva); cursor: pointer; transition: background .2s; }
.dp-nav:hover { background: rgba(244, 240, 239, .22); }
.dp-nav:focus-visible { outline: 2px solid var(--viva); outline-offset: 1px; }
.dp-nav[aria-disabled="true"] { opacity: .3; cursor: default; }
.dp-nav[aria-disabled="true"]:hover { background: rgba(244, 240, 239, .1); }
.dp-nav svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.dp-grid { width: calc(100% - 1.5rem); margin: .4rem .75rem 0; border-collapse: collapse; table-layout: fixed; }
.dp-grid th { padding: .3rem 0 .4rem; font: 500 .75rem/1 var(--sans); color: var(--ink-2); text-align: center; border-bottom: 1px solid var(--line); }
.dp-grid td { padding: 0; text-align: center; }
.dp-grid tbody tr:first-child td { padding-top: .3rem; }
.dp-day { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; margin: .02rem auto; border: 0; border-radius: 50%; background: none; color: var(--ink); font: 400 .9375rem/1 var(--sans); font-variant-numeric: tabular-nums; cursor: pointer; transition: background .15s; }
.dp-day:hover { background: var(--velo); }
.dp-day:focus-visible { outline: 2px solid var(--t); outline-offset: 2px; }
.dp-day.is-today { box-shadow: inset 0 0 0 1px var(--rosa); }
.dp-day.is-sel, .dp-day.is-sel:hover { background: var(--t); color: var(--on-dark); font-weight: 600; }
.dp-day.is-off { color: #9a8f91; cursor: default; }
.dp-day.is-off:hover { background: none; }
.dp-day.is-closed { text-decoration: line-through; text-decoration-thickness: 1px; }
.dp-note { margin: .4rem .75rem 0; padding-top: .5rem; border-top: 1px solid var(--line); font-size: .8125rem; line-height: 1.4; color: var(--ink-2); }
.dp-foot { display: flex; justify-content: space-between; padding: .25rem .75rem .5rem; }
.dp-foot button { padding: .35rem .5rem; border: 0; border-radius: var(--r); background: none; color: var(--velluto); font: 500 .875rem/1.2 var(--sans); cursor: pointer; }
.dp-foot button:hover { background: var(--velo); }
.dp-foot button:focus-visible { outline: 2px solid var(--velluto); outline-offset: 0; }
@media (max-width: 30rem) { .dp-panel::backdrop { background: rgba(30, 10, 15, .28); } }

/* catégorie « Vendus » en pied de l'arbre des collections */
.side-tree > li.side-sold { margin-top: .35rem; border-top: 1px solid var(--line); padding-top: .35rem; }
.side-tree > li.side-sold > a > span:first-child { display: inline-flex; align-items: center; }
