/* Pages publiques (catalogue, œuvre, lettre) : le tableau d'abord, l'interface s'efface. */

.public { --step: var(--vermilion); }
.public-head { max-width: 1320px; margin: 0 auto; padding: 1.1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.public-head .name { font-family: var(--font-title); font-weight: 800; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); letter-spacing: -0.025em; text-decoration: none; }
.public-head nav { display: flex; gap: 1.1rem; font-weight: 600; }
.public-head nav a { text-decoration: none; }
.public-head nav a:hover { text-decoration: underline; }
.public-main { max-width: 1320px; margin: 0 auto; padding: .5rem 1.25rem 4rem; }
.public-foot { border-top: 2px solid var(--ink); margin-top: 3rem; }
.public-foot div { max-width: 1320px; margin: 0 auto; padding: 1.25rem; display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: space-between; color: var(--ink-2); font-size: .92rem; }

/* Catalogue : accrochage en colonnes, chaque œuvre à ses vraies proportions */
.catalog-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: end; margin: 1rem 0 1.5rem; }
.catalog-intro h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem); margin: 0; font-weight: 800; letter-spacing: -0.03em; }
.catalog-intro p { margin: .4rem 0 0; color: var(--ink-2); }
@media (max-width: 760px) { .catalog-intro { grid-template-columns: minmax(0, 1fr); } }
.search { display: grid; grid-template-columns: minmax(200px, 2fr) repeat(4, minmax(130px, 1fr)) auto; gap: .6rem; align-items: end; padding: 1rem; border: 2px solid var(--ink); border-radius: 14px; background: var(--panel); margin-bottom: 2rem; }
.search .field { margin: 0; gap: .2rem; }
.search .field label { font-size: .85rem; }
.search .price { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
@media (max-width: 1100px) { .search { grid-template-columns: repeat(2, minmax(0, 1fr)); } .search .wide { grid-column: 1 / -1; } }
@media (max-width: 520px) { .search { grid-template-columns: minmax(0, 1fr); } }
.hang { columns: 4 260px; column-gap: 1.6rem; }
.piece { break-inside: avoid; display: block; margin: 0 0 2rem; text-decoration: none; }
.piece img { display: block; width: 100%; height: auto; box-shadow: 0 14px 28px -14px rgb(0 0 0 / .45), 0 2px 4px rgb(0 0 0 / .08); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.piece:hover img { transform: translateY(-3px); }
.piece h2 { font-size: 1.05rem; margin: .8rem 0 .15rem; }
.piece p { margin: 0; color: var(--ink-2); font-size: .92rem; }
.piece .price { font-weight: 700; color: var(--ink); }
.pager { display: flex; gap: .6rem; justify-content: center; align-items: center; margin-top: 1rem; }

/* Œuvre */
.work-view { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 2.5rem; align-items: start; margin-top: 1rem; }
@media (max-width: 900px) { .work-view { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } }
.work-view .art { background: var(--gesso-2); border-radius: 14px; padding: clamp(16px, 4vw, 56px); display: grid; place-items: center; }
.work-view .art img { max-height: 78vh; width: auto; box-shadow: 0 24px 40px -20px rgb(0 0 0 / .5), 0 3px 6px rgb(0 0 0 / .1); }
.work-view h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: .3rem; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .35rem 1.2rem; margin: 1.2rem 0; }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 600; }
.work-view .price-tag { font-family: var(--font-title); font-size: 1.8rem; font-weight: 750; margin: .5rem 0 1rem; }

/* Aperçu chez soi */
.room { margin-top: 3rem; }
.room h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; }
.room-picker { display: flex; gap: .75rem; overflow-x: auto; padding: .2rem .2rem .8rem; scrollbar-width: thin; }
.room-picker button { flex: none; width: 132px; border: 2px solid transparent; border-radius: 12px; padding: 0; background: none; cursor: pointer; text-align: left; font-weight: 600; font-size: .88rem; }
.room-picker button img { display: block; width: 100%; height: 88px; object-fit: cover; border-radius: 10px; }
.room-picker button span { display: block; padding: .3rem .2rem; }
.room-picker button[aria-pressed="true"] { border-color: var(--ink); }
.room-picker .own { display: grid; place-items: center; height: 88px; border: 2px dashed var(--ink-3); border-radius: 10px; position: relative; }
.room-picker .own input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.room-picker label.pick { flex: none; width: 132px; cursor: pointer; font-weight: 600; font-size: .88rem; }
.room-stage { position: relative; background: #1d1c1a; border-radius: 14px; overflow: hidden; display: grid; place-items: center; min-height: 260px; touch-action: none; }
.room-stage .stage-inner { position: relative; line-height: 0; }
.room-stage canvas { display: block; max-width: 100%; max-height: 80vh; }
.room-stage .handle { --step: var(--cadmium); }
.room-stage .handle.move::before { width: 30px; height: 30px; background: rgb(255 255 255 / .25); border: 3px solid #fff; }
.room-stage .handle.shadow::before { background: #555; border-color: #fff; width: 18px; height: 18px; }
.room-stage .handle.white::before { background: #fff; border-color: #161514; }
.room-stage .handle.black::before { background: #161514; border-color: #fff; }
.room-stage .handle.off { opacity: .35; }
.room-stage [hidden] { display: none; }
.room-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 1.5rem; margin-top: 1rem; align-items: start; }
@media (max-width: 900px) { .room-tools { grid-template-columns: minmax(0, 1fr); } }
.tool-row { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.send-card { border: 2px solid var(--ink); border-radius: 14px; padding: 1.1rem; background: var(--panel); }
.send-card h3 { margin-top: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: .7rem .9rem; border-radius: 10px; border: 2px solid var(--ok); margin-top: .8rem; }
.notice.error { border-color: var(--danger); }
.others { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.4rem; }

.center-card { max-width: 560px; margin: 3rem auto; }
.eyebrow { margin: 0 0 .6rem; font-weight: 600; }
.eyebrow a { text-decoration: none; display: inline-flex; gap: .35rem; align-items: center; }
.prose { max-width: 62ch; }
.prose p { margin: 0 0 .8rem; }
.legal h2 { font-size: 1.3rem; margin-top: 2rem; }
.legal { max-width: 70ch; }
