/* Milàn & Antiques — feuille de style (kit WIDE Edizioni, 30/11/2026)
   Style : Ornamental (lexique WIDE), « salons d'un palazzo milanais » : murs bleu nuit du client (#08223D), moulures et filets dorés,
   salons de lecture ivoire, Cinzel (capitales romaines du logo) et EB Garamond. Voir _lavoro/direction.txt.
   Règles WIDE intégrées : icônes dans les menus, boutons animés, entrée de l'ouverture, apparitions au défilement, effets d'images,
   composition éditoriale ; version immobile avec prefers-reduced-motion. */

/* ---------- polices (Google Fonts, OFL, auto-hébergées) ---------- */
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/cinzel-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/cinzel-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/eb-garamond-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/eb-garamond-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400 600; font-display: swap; src: url("../fonts/eb-garamond-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400 600; font-display: swap; src: url("../fonts/eb-garamond-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- 1. jetons ---------- */
:root {
  --wall: #08223D; --wall-2: #061A30; --wall-3: #0D2D4F; --on-wall: #F1EBDD; --on-wall-2: #CFC5B0;
  --ivory: #F3EDE1; --paper: #FBF8F1; --ink: #1C1A17; --ink-2: #4D483F; --line: #D8CDB6;
  --gold: #C9A45C; --gold-hi: #E7CC8A; --gold-ink: #7A5C22; --burg: #8B2E25; --emerald: #2E5E4E;
  --gilt: linear-gradient(135deg, #6f5220 0%, #d9bb74 22%, #9a7633 45%, #ecd394 68%, #8a6a2c 100%);   /* feuille d'or des moulures */
  --f-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --f-text: "EB Garamond", Garamond, Georgia, serif;
  --step--1: clamp(.95rem, .92rem + .12vw, 1.02rem);
  --step-0: clamp(1.13rem, 1.07rem + .25vw, 1.25rem);
  --step-1: clamp(1.3rem, 1.18rem + .5vw, 1.6rem);
  --step-2: clamp(1.55rem, 1.35rem + .9vw, 2.1rem);
  --step-3: clamp(2rem, 1.6rem + 1.8vw, 3.1rem);
  --step-4: clamp(2rem, 1.45rem + 2.4vw, 3.4rem);
  --radius: 0; --wrap: 1180px; --gap: clamp(1rem, .6rem + 2vw, 2.5rem);
  --ease-out: cubic-bezier(.2, .7, .2, 1); --ease-io: cubic-bezier(.65, 0, .35, 1);
  --row1: 5.5rem; --nav-h: 3.4rem;
  /* contexte : mur bleu par défaut, salon ivoire avec .paper */
  --bg: var(--wall); --fg: var(--on-wall); --fg-2: var(--on-wall-2); --acc: var(--gold); --rule: rgba(201, 164, 92, .45);
  --b-bg: var(--gold); --b-fg: var(--wall); --b-fill: var(--on-wall); --b-fill-fg: var(--wall);
  color-scheme: light;
}
.paper { --bg: var(--ivory); --fg: var(--ink); --fg-2: var(--ink-2); --acc: var(--gold-ink); --rule: rgba(122, 92, 34, .35);
  --b-bg: var(--wall); --b-fg: var(--on-wall); --b-fill: var(--gold-ink); --b-fill-fg: #fff; }
.wall, .paper { background: var(--bg); color: var(--fg); }
/* popup WIDE Edizioni (wide-credit.js) : à l'ambiance du site */
wide-credit { --wc-bg: var(--wall); --wc-fg: var(--on-wall); --wc-muted: var(--on-wall-2); --wc-line: rgba(201, 164, 92, .45); --wc-accent: var(--gold); --wc-accent-ink: var(--wall); --wc-em: var(--gold);
  --wc-display: var(--f-display); --wc-body: var(--f-text); --wc-radius: 0; --wc-border: 1px solid rgba(201, 164, 92, .55); --wc-field-bg: rgba(241, 235, 221, .07); --wc-backdrop: rgba(3, 12, 22, .74); }

/* ---------- 2. base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 1rem); background: var(--wall-2); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--wall); color: var(--on-wall); font: 400 var(--step-0)/1.6 var(--f-text); font-kerning: normal; font-variant-numeric: oldstyle-nums proportional-nums; text-rendering: optimizeLegibility; }
::selection { background: var(--gold); color: var(--wall); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; font-weight: 400; }
p, li, dd { text-wrap: pretty; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; z-index: 200; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); color: var(--ink); padding: .6rem 1rem; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.ic { width: 1.1em; height: 1.1em; flex: none; }
.tabnum, .rq-count, .price, .obj-ref, .obj-ref-l { font-variant-numeric: lining-nums tabular-nums; }

/* composition éditoriale */
.kicker { font: 500 var(--step--1)/1.3 var(--f-text); font-variant-caps: all-small-caps; letter-spacing: .2em; color: var(--acc); margin: 0 0 .8rem; }
.display { font: 400 var(--step-4)/1.08 var(--f-display); letter-spacing: .02em; }
.h2 { font: 400 var(--step-3)/1.1 var(--f-display); letter-spacing: .03em; }
.h3 { font: 500 var(--step-1)/1.25 var(--f-text); }
.h4 { font: 500 var(--step--1)/1.3 var(--f-text); font-variant-caps: all-small-caps; letter-spacing: .16em; color: var(--acc); margin: 1.8rem 0 .5rem; }
.lead { font: italic 400 var(--step-1)/1.45 var(--f-text); color: var(--fg-2); max-width: 58ch; }
.prose { max-width: 66ch; }
.prose p { margin-bottom: 1.05em; }
@supports (initial-letter: 3) { .lettrine::first-letter { initial-letter: 3; margin-inline-end: .14em; font-family: var(--f-display); color: var(--acc); } }
.link { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .35s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link:hover { background-size: 0 1px; background-position: 100% 100%; } }

/* frise ornementale : une par écran */
.frieze { display: block; width: min(15rem, 60%); height: auto; margin: 0 auto; color: var(--acc); overflow: visible; }
.frieze--l { margin: 1.2rem 0 1.4rem; width: 10rem; }

/* ---------- bandeau de démo (règle WIDE : noir, gris clair, serif élégante) ---------- */
.demo-bar { background: #000; color: #cfcfcf; font: 400 .92rem/1.4 "EB Garamond", Garamond, Georgia, serif; text-align: center; padding: .45rem 1rem; }
.demo-bar a { color: #fff; }

/* ---------- en-tête : logo centré au-dessus du menu ; la ligne du menu reste collée en haut ---------- */
.top { position: sticky; top: calc(var(--row1) * -1); z-index: 50; background: var(--wall); color: var(--on-wall); border-bottom: 1px solid var(--rule); }
.top-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--row1); }
.top-tel { justify-self: start; display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-size: var(--step--1); color: var(--on-wall-2); min-height: 44px; }
.top-tel .ic { color: var(--gold); }
.brand { text-decoration: none; display: block; color: var(--on-wall); }
.logo { display: grid; justify-items: center; line-height: 1; }
.logo-n { font: 400 clamp(1.3rem, 1rem + 1.3vw, 2.05rem)/1 var(--f-display); letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
.logo-n i { font: italic 400 1.05em/1 var(--f-text); color: var(--gold); letter-spacing: 0; padding-inline: .06em; }
.logo-s { display: flex; align-items: center; gap: .7em; margin-top: .45rem; font: 500 clamp(.62rem, .55rem + .25vw, .78rem)/1 var(--f-display); letter-spacing: .55em; padding-left: .55em; text-transform: uppercase; color: var(--gold); }
.logo-s::before, .logo-s::after { content: ""; width: 1.8em; height: 1px; background: currentColor; opacity: .7; }
.langs { justify-self: end; display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; font: 500 .85rem/1 var(--f-display); letter-spacing: .1em; }
.langs a { display: grid; place-items: center; min-width: 44px; min-height: 44px; text-decoration: none; color: var(--on-wall-2); border: 1px solid transparent; }
.langs a[aria-current] { color: var(--gold); border-color: var(--rule); }
@media (hover: hover) and (pointer: fine) { .langs a:hover { color: var(--on-wall); } }
.nav { border-top: 1px solid var(--rule); }
.langs--m { display: none; }
.nav-list { list-style: none; margin: 0 auto; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: .2rem clamp(.8rem, 2vw, 2.1rem); min-height: var(--nav-h); align-items: center; }
.nav-link { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; text-decoration: none; font: 400 .95rem/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; position: relative; }
.nav-link .ic { color: var(--gold); width: 1.05rem; height: 1.05rem; }
.nav-list .nav-link::after { content: ""; position: absolute; left: 1.55rem; right: 0; bottom: .55rem; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.nav-list .nav-link[aria-current="page"]::after, .nav-list .nav-link[aria-current="true"]::after { transform: scaleX(1); }
.burger { display: none; justify-self: end; background: none; border: 0; padding: 0; width: 48px; height: 48px; place-items: center; color: inherit; cursor: pointer; }
.burger .ic { width: 1.6rem; height: 1.6rem; }
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .nav-link .ic { transition: transform .3s var(--ease-out); }
  .nav-link:hover .ic { transform: translateY(-2px) rotate(-6deg); }
  .nav-list .nav-link:hover::after { transform: scaleX(1); }
}
@media (max-width: 1000px) {
  :root { --row1: 4.5rem; }
  .top { top: 0; }
  .top-row { grid-template-columns: 48px 1fr 48px; gap: .4rem; }
  .langs--top { display: none; }
  .langs--m { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: 1.6rem; font: 400 1rem/1 var(--f-text); letter-spacing: 0; }
  .langs--m a { display: flex; justify-content: flex-start; gap: .6rem; padding: 0 .9rem; min-height: 48px; border-color: var(--rule); }
  .langs--m .ic { color: var(--gold); }
  .top-tel span { display: none; }
  .top-tel { width: 44px; justify-content: center; }
  .brand { justify-self: center; }
  .logo-s { margin-top: .3rem; }
  .burger { display: grid; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - var(--row1)); border-top: 1px solid var(--rule); background: var(--wall); overflow-y: auto; overscroll-behavior: contain; padding: 1.5rem var(--gap) 3rem; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--ease-out), visibility 0s .3s; }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .3s var(--ease-out); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav .wrap { width: 100%; }
  .nav-list li { border-bottom: 1px solid var(--rule); }
  .nav-link { width: 100%; min-height: 3.6rem; font-size: 1.15rem; }
  .nav-list .nav-link::after { display: none; }
  .nav-list .nav-link[aria-current="page"] { color: var(--gold); }
}
@media (max-width: 420px) { .langs a { min-width: 34px; font-size: .78rem; } .logo-n { font-size: 1.16rem; letter-spacing: .06em; } }

/* ---------- boutons animés : remplissage qui glisse, flèche qui avance, appui ---------- */
.btn { position: relative; isolation: isolate; overflow: clip; display: inline-flex; align-items: center; justify-content: center; gap: .65em; min-height: 50px; padding: .85rem 1.6rem; border: 1px solid var(--b-bg); background: var(--b-bg); color: var(--b-fg); font: 500 .9rem/1.1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--b-fill); transform: scaleX(0); transform-origin: left; }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--acc); }
.btn .ic { width: 1.1rem; height: 1.1rem; }
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: transform .15s ease-out, color .35s, border-color .35s; }
  .btn::before { transition: transform .5s var(--ease-io); }
  .btn .ic { transition: transform .3s var(--ease-out); }
}
.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { color: var(--b-fill-fg); border-color: var(--b-fill); }
  .btn:hover::before { transform: scaleX(1); }
  .btn:hover .ic:last-child { transform: translateX(4px); }
}
.link-ic { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; text-decoration: none; }
.link-ic .ic { color: var(--acc); width: 1.25rem; height: 1.25rem; }
.link-ic span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-ic:hover span { background-size: 100% 1px; } }

/* ---------- moulure dorée (cadre des tableaux et des objets) ---------- */
.moulding { margin: 0; padding: clamp(7px, 1.1vw, 15px); background: var(--gilt); box-shadow: 0 0 0 1px #3d2c0c, 0 34px 60px -28px rgba(0, 0, 0, .75), 0 10px 18px -10px rgba(0, 0, 0, .5); position: relative; }
.moulding::after { content: ""; position: absolute; inset: clamp(4px, .55vw, 7px); border: 1px solid rgba(255, 240, 200, .55); box-shadow: inset 0 0 0 1px rgba(61, 44, 12, .55); pointer-events: none; }
.moulding-in { display: block; overflow: clip; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .6); background: var(--wall-3); }
.moulding-in img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- ouverture ---------- */
.hero { padding-block: clamp(1.2rem, 2.2vw, 2rem) clamp(3rem, 6vw, 5rem); }
.hero-pic .moulding-in { aspect-ratio: 1920 / 600; }
.hero-pic img { object-position: 50% 60%; }
.hero-txt { text-align: center; display: grid; justify-items: center; margin-top: clamp(1.5rem, 2.6vw, 2.2rem); }
.hero .display { max-width: 22ch; }
.hero .lead { margin: .8rem auto 0; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin: 1.5rem 0 0; }
@media (max-width: 700px) {
  .hero-pic .moulding-in { aspect-ratio: 4 / 3; }
  .hero-pic img { object-position: 42% 55%; }
  .hero-cta { width: 100%; } .hero-cta .btn { flex: 1 1 100%; }
}

/* entrée orchestrée de l'ouverture : la moulure se dévoile depuis le centre, puis titre, chapeau, boutons */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
  @keyframes unveil { from { clip-path: inset(0 50% 0 50%); } }
  @keyframes settle { from { transform: scale(1.08); filter: brightness(.7); } }
  [data-enter] { animation: rise .8s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 120ms + 200ms); }
  .hero-pic[data-enter], .moulding--obj[data-enter] { animation: unveil 1s var(--ease-io) backwards; animation-delay: 80ms; }
  .hero-pic img { animation: settle 1.6s var(--ease-out) backwards; animation-delay: 80ms; }
  /* profondeur : le tableau glisse plus lentement que sa moulure */
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes drift { from { transform: translateY(-4%) scale(1.1); } to { transform: translateY(4%) scale(1.1); } }
    .parallax img { animation: settle 1.6s var(--ease-out) backwards, drift linear both; animation-timeline: auto, view(); animation-delay: 80ms, 0s; }
  }
}

/* ---------- sections ---------- */
.sec { padding-block: clamp(4rem, 8vw, 7rem); }
.sec-head { margin-bottom: clamp(1.8rem, 3.5vw, 2.8rem); max-width: 60ch; }
.sec-head--c { text-align: center; margin-inline: auto; display: grid; justify-items: center; }
.sec-head .lead { margin-top: .9rem; }
.galleria { padding-top: 0; }
.galleria .frieze, .gal-page .frieze, .related .frieze { margin-bottom: clamp(2rem, 4vw, 3rem); }

/* filtres de la galerie */
.chips ul { list-style: none; margin: 0 0 clamp(2rem, 4vw, 3rem); padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; }
.chip { display: inline-flex; align-items: center; gap: .55rem; min-height: 46px; padding: .5rem 1.05rem; border: 1px solid var(--rule); text-decoration: none; font: 400 .88rem/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; transition: background-color .3s, color .3s, border-color .3s; }
.chip .ic { color: var(--acc); width: 1.15rem; height: 1.15rem; transition: color .3s; }
.chip small { font: 500 .8rem/1 var(--f-text); color: var(--fg-2); font-variant-numeric: lining-nums; }
.chip[aria-current="page"] { background: var(--gold); color: var(--wall); border-color: var(--gold); }
.chip[aria-current="page"] .ic, .chip[aria-current="page"] small { color: var(--wall); }
.chip:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .chip:not([aria-current]):hover { border-color: var(--gold); background: rgba(201, 164, 92, .1); } }

/* objets accrochés : cadre doré fin, passe-partout bleu, cartel */
.objs { list-style: none; margin: 0 0 clamp(2.4rem, 4vw, 3.4rem); padding: 0; display: grid; gap: clamp(2rem, 3.5vw, 3rem) clamp(1rem, 2.2vw, 2rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .objs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .objs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.obj-a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.obj-frame { display: block; padding: 5px; background: var(--gilt); box-shadow: 0 0 0 1px #3d2c0c, 0 22px 34px -22px rgba(0, 0, 0, .8); }
.obj-mat { display: block; aspect-ratio: 4 / 5; overflow: clip; background: var(--wall-3); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .55), inset 0 0 26px rgba(0, 0, 0, .35); }
.obj-mat img { width: 100%; height: 100%; object-fit: contain; padding: 7%; }
.cartel { display: grid; justify-items: center; gap: .3rem; margin-top: 1.05rem; text-align: center; }
.obj-ref { font: 500 .78rem/1.2 var(--f-text); letter-spacing: .14em; text-transform: uppercase; color: var(--acc); }
.obj-t { font: 400 clamp(1.02rem, .97rem + .2vw, 1.15rem)/1.32 var(--f-text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.obj-m { font: italic 400 .95rem/1.35 var(--f-text); color: var(--fg-2); }
.obj-p { font: 500 1rem/1.2 var(--f-display); color: var(--acc); letter-spacing: .06em; margin-top: .15rem; }
@media (prefers-reduced-motion: no-preference) {
  .obj-frame { transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
  .obj-mat img { transition: transform .8s var(--ease-out); }
}
.obj-a:active .obj-frame { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) {
  .obj-a:hover .obj-frame { transform: translateY(-3px); box-shadow: 0 0 0 1px #3d2c0c, 0 30px 40px -22px rgba(0, 0, 0, .9); }
  .obj-a:hover .obj-mat img { transform: scale(1.03); }
  .obj-a:hover .obj-t { text-decoration: underline; text-decoration-color: var(--gold); }
}
@media (max-width: 480px) { .objs { gap: 1.8rem .9rem; } .obj-frame { padding: 4px; } .obj-t { font-size: .98rem; -webkit-line-clamp: 4; } .obj-ref { font-size: .7rem; letter-spacing: .08em; } }
.gal-count { text-align: center; color: var(--fg-2); font-style: italic; margin: -1.2rem 0 2rem; }

/* ---------- Acquistiamo (salon ivoire) ---------- */
.acq-in { display: grid; gap: clamp(2.4rem, 5vw, 5rem); grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
@media (max-width: 900px) { .acq-in { grid-template-columns: 1fr; } }
.acq-txt .lead { margin: 1rem 0 1.4rem; color: var(--ink); }
.acq-txt p { max-width: 62ch; }
.acq-cta { margin: 1.8rem 0 1.4rem; }
.acq-via-l { font: italic 400 var(--step--1)/1.4 var(--f-text); color: var(--fg-2); margin-bottom: .3rem; }
.acq-via { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem 1.6rem; }
.acq-via b { font-weight: 500; font-variant-caps: all-small-caps; letter-spacing: .1em; color: var(--acc); }
.acq-list { position: relative; padding: clamp(1.8rem, 3vw, 2.6rem); background: var(--paper); border: 1px solid var(--gold-ink); outline: 1px solid rgba(122, 92, 34, .4); outline-offset: -8px; }
.acq-list-t { font: 400 var(--step-2)/1.1 var(--f-display); letter-spacing: .04em; margin-bottom: 1.2rem; text-align: center; }
.acq-list ul { list-style: none; margin: 0; padding: 0; display: grid; }
.acq-list li { position: relative; padding: .62rem 0 .62rem 1.5rem; border-top: 1px solid var(--line); line-height: 1.35; }
.acq-list li::before { content: ""; position: absolute; left: .2rem; top: 1.05rem; width: .42rem; height: .42rem; border: 1px solid var(--gold-ink); transform: rotate(45deg); }
@media (min-width: 520px) and (max-width: 900px) { .acq-list ul { grid-template-columns: 1fr 1fr; column-gap: 1.6rem; } }

/* ---------- Chi siamo (mur bleu) ---------- */
.chi-in { display: grid; gap: clamp(2.4rem, 5vw, 5rem); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
@media (max-width: 900px) { .chi-in { grid-template-columns: 1fr; } }
.chi-pic { position: sticky; top: calc(var(--nav-h) + 2rem); }
@media (max-width: 900px) { .chi-pic { position: static; } }
.chi-pic .moulding-in { aspect-ratio: 4 / 3; }
.chi-pic img { object-position: 38% 50%; }
.chi-since { margin: 1.4rem 0 0; text-align: center; font: 400 var(--step-1)/1 var(--f-display); letter-spacing: .3em; color: var(--gold); }
.chi-txt .h2 { margin-bottom: 1.6rem; }
.qs { list-style: none; margin: 0 0 1.2em; padding: 0; display: grid; gap: .5rem; }
.qs li { position: relative; padding-left: 1.6rem; font-style: italic; }
.qs li::before { content: ""; position: absolute; left: .2rem; top: .62em; width: .42rem; height: .42rem; border: 1px solid var(--gold); transform: rotate(45deg); }
.chi-end { font: italic 400 var(--step-1)/1.45 var(--f-text); color: var(--gold-hi); }

/* ---------- Eventi ---------- */
.eventi { padding-bottom: 0; }
.ev-in { display: grid; justify-items: center; text-align: center; gap: 1.6rem; }
.ev-card { display: flex; gap: 1.4rem; align-items: flex-start; text-align: left; max-width: 44rem; width: 100%; padding: 1.6rem clamp(1.2rem, 3vw, 2rem); border-block: 1px solid var(--rule); }
.ev-ic { width: 2.6rem; height: 2.6rem; color: var(--acc); margin-top: .2rem; }
.ev-card .h3 { margin-bottom: .3rem; }
.ev-where { display: inline-flex; gap: .4rem; align-items: center; font-variant-caps: all-small-caps; letter-spacing: .14em; color: var(--acc); margin: 0 0 .5rem; }
.ev-card p:last-child { margin: 0; }

/* ---------- contacts et formulaire ---------- */
.con-in { display: grid; gap: calc(var(--gap) * 1.5); grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
@media (max-width: 900px) { .con-in { grid-template-columns: 1fr; } }
.con-info .lead { margin-top: .9rem; }
.con-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.4rem; }
.con-list li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .9rem; }
.con-list .ic { width: 1.4rem; height: 1.4rem; color: var(--acc); margin-top: .25rem; }
.con-list b { display: block; font-weight: 500; font-variant-caps: all-small-caps; letter-spacing: .14em; color: var(--acc); }
.con-list p { margin: .15rem 0 .2rem; }
.form { background: var(--paper); color: var(--ink); border: 1px solid var(--line); padding: clamp(1.4rem, 3vw, 2.4rem); display: grid; gap: 1.1rem; align-content: start; }
.f { display: grid; gap: .35rem; }
.f > span { font-size: var(--step--1); color: var(--ink-2); }
.f b { color: var(--burg); font-weight: 500; }
.f-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .f-grid { grid-template-columns: 1fr; } }
.form input, .form select, .form textarea, .rq-form input, .rq-form select, .rq-form textarea { width: 100%; color: var(--ink); background: #fff; border: 1px solid #b9ab8c; border-radius: 0; padding: .75rem .9rem; min-height: 48px; transition: border-color .2s, box-shadow .2s; }
.form textarea, .rq-form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus, .rq-form input:focus, .rq-form select:focus, .rq-form textarea:focus { border-color: var(--gold-ink); outline: none; box-shadow: 0 0 0 3px rgba(201, 164, 92, .35); }
.trap { position: absolute; left: -9999px; }
.form-note { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--step--1); color: var(--ink-2); margin: 0; }
.form-note .ic { color: var(--gold-ink); margin-top: .2rem; }
.form-act { margin: 0; }
.form-msg { margin: 0; font-size: var(--step--1); min-height: 1.4em; }
.form-msg.is-ok { color: var(--emerald); } .form-msg.is-err { color: var(--burg); }
.f-check { display: flex; gap: .7rem; align-items: flex-start; font-size: var(--step--1); color: var(--ink-2); }
.f-check input { width: 1.25rem; height: 1.25rem; min-height: 0; margin-top: .2rem; accent-color: var(--wall); }

/* ---------- pied de page ---------- */
.foot { background: var(--wall-2); color: var(--on-wall); padding-top: clamp(3rem, 6vw, 4.5rem); --acc: var(--gold); --fg-2: var(--on-wall-2); }
.foot-frieze { margin-bottom: clamp(2.2rem, 4vw, 3rem); }
.foot-in { display: grid; gap: 2.4rem var(--gap); grid-template-columns: 1.3fr 1fr 1fr; padding-bottom: 2.5rem; }
@media (max-width: 860px) { .foot-in { grid-template-columns: 1fr; } }
.foot-logo { display: inline-block; text-decoration: none; margin-bottom: 1.4rem; }
.foot-logo .logo { justify-items: start; }
.foot-line { display: flex; gap: .7rem; color: var(--on-wall-2); line-height: 1.5; }
.foot-line .ic, .foot .nav-link .ic { color: var(--gold); }
.foot-nav ul, .foot-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; align-content: start; }
.foot .nav-link { font: 400 1.02rem/1.2 var(--f-text); letter-spacing: .02em; text-transform: none; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.4rem 2rem; border-top: 1px solid rgba(201, 164, 92, .25); font-size: var(--step--1); color: var(--on-wall-2); }
.foot-legal p { margin: 0; }
.wide { background: none; border: 0; padding: 0; min-height: 44px; color: inherit; font: inherit; cursor: pointer; }
.wide b { font-weight: 500; color: var(--on-wall); }
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) { .wide b { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease-out); } .wide:hover b { background-size: 100% 1px; } }

/* ---------- galerie complète et fiche d'objet ---------- */
.crumbs { padding-top: 1.2rem; font-size: .95rem; color: var(--on-wall-2); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .55rem; }
.crumbs li + li::before { content: "·"; margin-right: .55rem; color: var(--gold); }
.crumbs a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; text-decoration: none; }
.crumbs a .ic { color: var(--gold); }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover span { text-decoration: underline; } }
.gal-page { padding-top: clamp(2rem, 4vw, 3.5rem); }
.acq-band { padding-block: clamp(3rem, 5vw, 4rem); }
.acq-band-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.acq-band-in p { margin: .4rem 0 0; max-width: 60ch; color: var(--ink-2); font-style: italic; }

.obj-page { display: grid; gap: clamp(2rem, 4.5vw, 4.5rem); grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; padding-block: clamp(1rem, 2vw, 2rem) clamp(3rem, 5vw, 4.5rem); }
@media (max-width: 960px) { .obj-page { grid-template-columns: 1fr; } }
.obj-media { position: sticky; top: calc(var(--nav-h) + 1.4rem); }
@media (max-width: 960px) { .obj-media { position: static; } }
.moulding--obj .moulding-in { display: grid; place-items: center; height: min(74vh, 46rem); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .55), inset 0 0 40px rgba(0, 0, 0, .35); cursor: zoom-in; }
.moulding--obj img { width: 100%; height: 100%; object-fit: contain; padding: 5%; }
@media (max-width: 960px) { .moulding--obj .moulding-in { height: auto; aspect-ratio: 1 / 1; } }
.thumbs { list-style: none; margin: 1.1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.thumb { display: block; width: 4.6rem; height: 4.6rem; border: 1px solid var(--rule); padding: 3px; background: var(--wall-3); transition: border-color .25s, transform .2s var(--ease-out); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.thumb:active { transform: scale(.95); }
@media (hover: hover) and (pointer: fine) { .thumb:hover { border-color: var(--gold); } }
.obj-ref-l { margin: 0 0 .9rem; font-size: .9rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.obj-ref-l a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.obj-h1 { font: 400 clamp(1.7rem, 1.35rem + 1.5vw, 2.6rem)/1.18 var(--f-text); }
.facts { margin: 0 0 1.6rem; display: grid; border-top: 1px solid var(--rule); }
.facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-variant-caps: all-small-caps; letter-spacing: .16em; color: var(--gold); padding-top: .1rem; }
.facts dd { margin: 0; }
.facts .price { font: 500 var(--step-1)/1.2 var(--f-display); color: var(--gold-hi); letter-spacing: .05em; }
.obj-desc { color: var(--on-wall); }
.obj-desc p { margin-bottom: .8em; }
.obj-ask { margin-top: 2rem; padding: 1.5rem; border: 1px solid var(--rule); outline: 1px solid rgba(201, 164, 92, .2); outline-offset: -7px; }
.obj-ask .h4 { margin-top: 0; }
.obj-ask p { color: var(--on-wall-2); }
.obj-btns { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.1rem 0 0; }
@media (max-width: 560px) { .obj-btns .btn { flex: 1 1 100%; } }
.obj-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; padding-block: 1.6rem; border-block: 1px solid var(--rule); }
.obj-nav-a { display: inline-flex; align-items: center; gap: .7rem; min-height: 48px; text-decoration: none; }
.obj-nav-a small { display: block; font-variant-caps: all-small-caps; letter-spacing: .14em; color: var(--gold); font-size: .95rem; }
.obj-nav-a .ic { color: var(--gold); width: 1.3rem; height: 1.3rem; transition: transform .3s var(--ease-out); }
.obj-nav-a--c { justify-self: center; font: 400 .9rem/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; }
.obj-nav-a--r { justify-self: end; text-align: right; }
@media (hover: hover) and (pointer: fine) { .obj-nav-a[rel="prev"]:hover .ic { transform: translateX(-4px); } .obj-nav-a--r:hover .ic { transform: translateX(4px); } }
@media (max-width: 760px) { .obj-nav { grid-template-columns: 1fr 1fr; } .obj-nav-a--c { grid-column: 1 / -1; grid-row: 2; } .obj-nav-a span { font-size: .95rem; } }
.related .h2 { margin-bottom: clamp(2rem, 4vw, 3rem); font-size: var(--step-2); }

/* apparitions au défilement (amélioration progressive : sans prise en charge, tout reste visible) */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes reveal { from { opacity: 0; transform: translateY(26px); } }
    .reveal { animation: reveal linear backwards; animation-timeline: view(); animation-range: entry 0% entry 50%; }
    @keyframes img-in { from { clip-path: inset(8% 8% 8% 8%); } }
    .reveal-img { animation: img-in linear backwards; animation-timeline: view(); animation-range: entry 0% cover 30%; }
  }
}

/* ---------- page secondaire (confidentialité) ---------- */
.legal { padding-block: clamp(3rem, 7vw, 6rem); max-width: 760px; }
.legal-upd { color: var(--fg-2); font-size: var(--step--1); }
.legal-sec { margin-top: 2.4rem; }
.legal-sec .h3 { margin-bottom: .8rem; }
.legal a { color: var(--gold-ink); }

/* ---------- agrandissement des photos ---------- */
.lb { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; overflow: visible; }
.lb::backdrop { background: rgba(3, 12, 22, .92); }
.lb img { max-height: 88vh; max-width: 90vw; width: auto; }
.lb-x, .lb-p, .lb-n { position: fixed; background: rgba(8, 34, 61, .85); color: var(--on-wall); border: 1px solid var(--rule); width: 52px; height: 52px; cursor: pointer; font: 400 1.6rem/1 var(--f-text); }
.lb-x { top: 1rem; right: 1rem; }
.lb-p, .lb-n { top: 50%; translate: 0 -50%; display: none; }
.lb-p { left: 1rem; } .lb-n { right: 1rem; }
.lb--multi .lb-p, .lb--multi .lb-n { display: block; }

/* ---------- popup d'estimation : dialog natif, colonne bleue (titre, promesses) et feuille ivoire (formulaire en étapes) ---------- */
dialog.rq { --acc: var(--gold-ink); padding: 0; margin: auto; border: 1px solid var(--gold); background: var(--ivory); color: var(--ink); width: min(66rem, calc(100vw - 2rem)); max-width: none; height: min(47rem, calc(100dvh - 2rem)); max-height: none; overflow: hidden; box-shadow: 0 34px 90px rgba(0, 0, 0, .55); outline: 1px solid rgba(201, 164, 92, .55); outline-offset: -7px; }
dialog.rq:modal { overscroll-behavior: contain; }
dialog.rq::backdrop { overflow: hidden; overscroll-behavior: contain; }
dialog.rq { opacity: 0; transition-property: opacity, display, overlay; transition-duration: .2s; transition-timing-function: var(--ease-out); transition-behavior: allow-discrete; }
dialog.rq[open] { opacity: 1; }
@starting-style { dialog.rq[open] { opacity: 0; } }
dialog.rq::backdrop { background-color: rgba(3, 12, 22, 0); transition-property: background-color, display, overlay; transition-duration: .34s; transition-behavior: allow-discrete; }
dialog.rq[open]::backdrop { background-color: rgba(3, 12, 22, .78); }
@starting-style { dialog.rq[open]::backdrop { background-color: rgba(3, 12, 22, 0); } }
@media (prefers-reduced-motion: no-preference) {
  dialog.rq { transform: translateY(16px) scale(.985); transition-property: opacity, transform, display, overlay; transition-duration: .34s; }
  dialog.rq[open] { transform: none; }
  @starting-style { dialog.rq[open] { transform: translateY(16px) scale(.985); } }
}
.rq-xf { display: contents; }
.rq-in { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); height: 100%; }
.rq-x { position: absolute; z-index: 5; top: .7rem; right: .7rem; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; background: var(--ivory); border: 0; color: var(--ink); cursor: pointer; transition: color .25s, transform .25s var(--ease-out), background-color .25s; }
.rq-x .ic { width: 1.25rem; height: 1.25rem; }
.rq-x:active { transform: scale(.92); }
@media (hover: hover) and (pointer: fine) { .rq-x:hover { background: var(--wall); color: var(--gold); transform: rotate(90deg); } }
.rq-side { position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(2.2rem, 4.2vw, 3.4rem); background: var(--wall); color: var(--on-wall); --acc: var(--gold); overflow: auto; }
.rq-title { margin: .2rem 0 0; font: 400 clamp(2rem, 3.4vw, 2.8rem)/1.08 var(--f-display); color: var(--on-wall); }
.rq-frieze { margin: 1.2rem 0 0; width: 9rem; color: var(--gold); }
.rq-lead { margin: 1.3rem 0 0; color: var(--on-wall-2); font-size: 1.08rem; line-height: 1.6; }
.rq-pts { list-style: none; margin: 1.8rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid rgba(201, 164, 92, .35); display: grid; gap: 1rem; }
.rq-pts li { display: flex; gap: .85rem; align-items: flex-start; font-size: 1.02rem; line-height: 1.45; }
.rq-pts .ic { color: var(--gold); width: 1.25rem; height: 1.25rem; margin-top: .12rem; }
.rq-main { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--ivory); }
.rq-form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.rq-form[hidden], .rq-done[hidden], .rq-pics[hidden] { display: none; }
.rq-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 3.2rem clamp(1.4rem, 3vw, 2.4rem) 1.6rem; display: grid; gap: 2rem; align-content: start; scrollbar-width: thin; scrollbar-color: var(--gold-ink) transparent; }
.rq-body .f { margin-top: 1rem; }
.rq-set { position: relative; min-width: 0; margin: 0; padding: 0; border: 0; }
.rq-set > * + * { margin-top: 1rem; }
.rq-set > legend { display: flex; align-items: center; gap: .85rem; width: 100%; margin: 0 0 1.1rem; padding: 0 0 .7rem; border-bottom: 1px solid rgba(122, 92, 34, .35); font: 500 .82rem/1.3 var(--f-display); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); }
.rq-set > legend + * { margin-top: 0; }
.rq-n { flex: none; display: grid; place-items: center; min-width: 1.9rem; height: 1.9rem; padding-inline: .3rem; border: 1px solid var(--gold-ink); font: 500 .74rem/1 var(--f-display); color: var(--gold-ink); }
.rq-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55rem; padding: 1.7rem 1rem; text-align: center; border: 1px dashed var(--gold-ink); background: rgba(201, 164, 92, .1); cursor: pointer; transition: background-color .25s, transform .2s var(--ease-out); }
.rq-drop .ic { width: 2rem; height: 2rem; color: var(--gold-ink); }
.rq-drop strong { font: 400 1.35rem/1.2 var(--f-text); }
.rq-or { font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.rq-pickbtn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: .6rem 1.4rem; background: var(--wall); color: var(--on-wall); border: 1px solid var(--wall); font: 500 .8rem/1.2 var(--f-display); letter-spacing: .14em; text-transform: uppercase; transition: background-color .3s, color .3s; }
.rq-drop:active { transform: scale(.99); }
.rq-drop.is-drag { background: rgba(201, 164, 92, .3); border-style: solid; }
.rq-drop.has-files { flex-direction: row; flex-wrap: wrap; justify-content: space-between; padding: .8rem 1rem; text-align: left; }
.rq-drop.has-files strong, .rq-drop.has-files .rq-or { display: none; }
.rq-drop.has-files .ic { width: 1.5rem; height: 1.5rem; }
.rq-drop.is-full { opacity: .5; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) { .rq-drop:not(.is-full):hover { background: rgba(201, 164, 92, .2); } .rq-drop:not(.is-full):hover .rq-pickbtn { background: var(--gold); color: var(--wall); border-color: var(--gold); } }
.rq-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); pointer-events: none; }
.rq-set:has(.rq-file:focus-visible) .rq-drop { outline: 2px solid var(--gold-ink); outline-offset: 3px; }
.rq-tip, .rq-limits { margin: .7rem 0 0; font-size: .95rem; line-height: 1.5; color: var(--ink-2); }
.rq-limits { margin-top: .25rem; }
.rq-pics { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.rq-pic { display: flex; align-items: center; gap: .7rem; padding: .4rem .3rem .4rem .4rem; background: #fff; border: 1px solid #cdbf9d; }
@media (prefers-reduced-motion: no-preference) { .rq-pic { animation: rq-in .32s var(--ease-out) both; } @keyframes rq-in { from { opacity: 0; transform: translateY(6px); } } }
.rq-th { flex: none; width: 3.5rem; height: 3.5rem; overflow: hidden; display: grid; place-items: center; background: var(--ivory); font: 600 .72rem/1 var(--f-display); color: var(--gold-ink); }
.rq-th img { width: 100%; height: 100%; object-fit: cover; }
.rq-nm { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.rq-nm b { font-weight: 500; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rq-nm small { font-size: .82rem; color: var(--ink-2); }
.rq-del { flex: none; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; background: none; border: 0; color: var(--burg); cursor: pointer; transition: background-color .2s, transform .2s var(--ease-out); }
.rq-del .ic { width: 1.05rem; height: 1.05rem; }
.rq-del:active { transform: scale(.9); }
@media (hover: hover) and (pointer: fine) { .rq-del:hover { background: rgba(139, 46, 37, .12); } }
.rq-count { margin: .8rem 0 0; min-height: 1.2em; font-size: .85rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
.rq-fmsg { margin: .2rem 0 0; min-height: 1.3em; font-size: .98rem; line-height: 1.45; color: var(--ink-2); }
.rq-fmsg.is-err { color: var(--burg); font-weight: 500; }
.rq-hint { font-size: .9rem; color: var(--ink-2); line-height: 1.45; }
.rq-how { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.rq-how-l { flex-basis: 100%; font-size: .95rem; color: var(--ink-2); }
.rq-chip { position: relative; }
.rq-chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; min-height: 0; }
.rq-chip span { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .5rem 1rem; background: #fff; border: 1px solid #a99a77; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.rq-chip .ic { width: 1.05rem; height: 1.05rem; color: var(--gold-ink); transition: color .25s; }
.rq-chip input:checked + span { background: var(--wall); color: var(--on-wall); border-color: var(--wall); }
.rq-chip input:checked + span .ic { color: var(--gold); }
.rq-chip input:focus-visible + span { outline: 2px solid var(--gold-ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .rq-chip input:not(:checked):hover + span { border-color: var(--gold-ink); background: var(--paper); } }
.rq-foot { flex: none; display: grid; gap: .7rem; padding: 1rem clamp(1.4rem, 3vw, 2.4rem) 1.3rem; background: var(--ivory); border-top: 1px solid rgba(122, 92, 34, .4); box-shadow: 0 -16px 22px -18px rgba(8, 34, 61, .35); }
.rq-foot .btn, .rq-done .btn { --b-bg: var(--wall); --b-fg: var(--on-wall); --b-fill: var(--gold-ink); --b-fill-fg: #fff; }
.rq-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.5rem; }
.rq-wa { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; color: var(--gold-ink); }
.rq-wa .ic { width: 1.15rem; height: 1.15rem; }
@media (hover: hover) and (pointer: fine) { .rq-wa:hover { color: var(--burg); } }
.rq-done { flex: 1; display: grid; place-content: center; justify-items: center; gap: 1rem; padding: 3rem 2rem; text-align: center; outline: none; }
.rq-done .ic--xl { width: 3rem; height: 3rem; color: var(--emerald); }
.rq-done-t { margin: 0; font: 400 clamp(2rem, 4vw, 2.7rem)/1.1 var(--f-display); }
.rq-done p { max-width: 30rem; margin: 0 0 .6rem; color: var(--ink-2); }
@media (max-width: 859px) {
  dialog.rq { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; border: 0; outline: 0; box-shadow: none; }
  .rq-in { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .rq-side { justify-content: flex-start; padding: 1.1rem 4rem 1.05rem 1.3rem; overflow: visible; }
  .rq-side .kicker { font-size: .8rem; margin: 0; }
  .rq-title { margin-top: .3rem; font-size: 1.7rem; }
  .rq-lead, .rq-pts, .rq-frieze { display: none; }
  .rq-x { color: var(--on-wall); background: transparent; top: .5rem; right: .5rem; }
  .rq-body { padding: 1.5rem 1.25rem 1.3rem; gap: 1.7rem; }
  .rq-foot { padding: .85rem 1.25rem calc(1rem + env(safe-area-inset-bottom)); }
  .rq-actions .btn { flex: 1 1 100%; }
  .rq-pics { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { dialog.rq, dialog.rq::backdrop { transition-duration: .15s !important; } }
