/* The visual codes of sablesienne.com, for the whole app — the same ones as
   the Académie's book and slides (book/book-base.css). Ported from the old
   app's static/brand.css onto the skeleton's classes.

   - Typefaces: Playfair Display for titles, Montserrat for text, served from
     the app (assets/fonts), not from Google.
   - Colours: the site's gold #8e704e, light gold #d9c9b3, pale rule #f0e7da,
     cream #f5ece2, brown text #3b2d20; the framboise (the brand's accent,
     #cd0158) for what is active or clickable.
   - Lines and frames without ornament: square corners, fine gold. A short
     gold rule under titles (.liseret-dore), .encadre-dore for a framed card,
     .bandeau-or for a gold band with a fine cream frame inside. */

@font-face { font-family: 'Playfair Display'; src: url(fonts/playfair-display-400-normal.woff) format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url(fonts/playfair-display-400-italic.woff) format('woff'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url(fonts/playfair-display-600-normal.woff) format('woff'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url(fonts/playfair-display-700-normal.woff) format('woff'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url(fonts/montserrat-400-normal.woff) format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url(fonts/montserrat-400-italic.woff) format('woff'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url(fonts/montserrat-500-normal.woff) format('woff'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url(fonts/montserrat-600-normal.woff) format('woff'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url(fonts/montserrat-700-normal.woff) format('woff'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --sab-gold: #8e704e; --sab-gold-dark: #74593b; --sab-gold-light: #d9c9b3; --sab-rule: #f0e7da;
  --sab-cream: #f5ece2; --sab-text: #3b2d20;
  --sab-serif: 'Playfair Display', Georgia, serif;
  --sab-sans: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --bg: #fbf8f4; --ink: var(--sab-text); --line: var(--sab-gold-light); --muted: #7a6a58;
}

html { font-family: var(--sab-sans); color: var(--sab-text); }
h1, h2, h3, h4 { font-family: var(--sab-serif); font-weight: 700; color: var(--sab-gold); }
main h1::after { content: ''; display: block; width: 120px; border-top: 1px solid var(--sab-gold); margin-top: 10px; }

/* Square corners and fine gold lines everywhere. */
.card, .btn, .flash, input, select, textarea, .badge, .kpi, .login-box, .login-mail input { border-radius: 0 !important; }
.card, .kpi { border-color: var(--sab-gold-light); }
table.list th { color: var(--sab-gold); }
table.list td, table.list th { border-bottom-color: var(--sab-rule); }
.btn { font-weight: 600; }
.side { border-right-color: var(--sab-gold-light); }
.nav-l1 { border-top-color: var(--sab-rule); }

.liseret-dore { display: block; height: 0; width: 120px; border: 0; border-top: 1px solid var(--sab-gold); margin: 10px 0 12px; }
.liseret-dore.centre { margin-left: auto; margin-right: auto; }
.encadre-dore { border: 1px solid var(--sab-gold) !important; background: #fff; }
.bandeau-or { position: relative; background: var(--sab-gold) !important; color: var(--sab-cream) !important; border: 0 !important; }
.bandeau-or::before { content: ''; position: absolute; inset: 10px; pointer-events: none; border: 1px solid var(--sab-cream); }
.bandeau-or > * { position: relative; }
.bandeau-or h2, .bandeau-or h3 { color: #fff; }
.bandeau-or p { color: rgba(245, 236, 226, .85); }
.bandeau-or .liseret-dore { border-top-color: var(--sab-cream); }

.btn.or, .btn.primary.or { background: var(--sab-gold); border-color: var(--sab-gold); color: #fff; }
.btn.or:hover { background: var(--sab-gold-dark); }
.btn.outline-or { color: var(--sab-gold); border-color: var(--sab-gold); background: transparent; text-transform: uppercase; font-size: 12px; letter-spacing: 1.6px; }
.btn.outline-or:hover { background: var(--sab-gold); color: #fff; }
.bandeau-or .btn.creme { background: var(--sab-cream); color: var(--sab-gold-dark); border-color: var(--sab-cream); }
.bandeau-or .btn.creme:hover { background: #fff; }
.bandeau-or .btn.outline-creme { background: transparent; color: var(--sab-cream); border-color: var(--sab-cream); }
.bandeau-or .btn.outline-creme:hover { background: var(--sab-cream); color: var(--sab-gold-dark); }

/* The landing page. */
.hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 2.4rem 2.8rem; }
.hero h2 { font-size: 1.7rem; }
.module-card { transition: transform .2s ease, box-shadow .2s ease; }
.module-card:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(142, 112, 78, .16); }
.module-card h2 { margin-bottom: .5rem; }

/* The boutique picker, at the top of the boutique pages. */
.shop-picker { display: flex; align-items: center; gap: .6rem; margin: 0 0 1rem; padding: .6rem .8rem; background: var(--sab-cream); border: 1px solid var(--sab-gold-light); }
.shop-picker label { display: flex; align-items: center; gap: .6rem; margin: 0; }
.shop-picker span { font-family: var(--sab-serif); color: var(--sab-gold); font-weight: 700; }
.shop-picker select { font-weight: 600; min-width: 14rem; }

/* Help articles: the editor's HTML. */
.article-body { max-width: 52rem; line-height: 1.6; }
.article-body img { max-width: 100%; height: auto; }
.article-body table { border-collapse: collapse; margin: .8rem 0; }
.article-body td, .article-body th { border: 1px solid var(--sab-gold-light); padding: .3rem .5rem; }
mark { background: #f7e3a1; padding: 0 .1em; }

@media (max-width: 820px) { .hero { padding: 1.6rem; } .shop-picker select { min-width: 0; flex: 1; } }

/* Médias boutique: phone first. */
.media-send { display: flex; flex-direction: column; gap: .6rem; }
.media-send .btn.big { font-size: 1.1rem; padding: .8rem 1.2rem; text-align: center; cursor: pointer; }
.media-up { display: grid; grid-template-columns: 1fr 8rem; gap: .2rem .6rem; align-items: center; font-size: .9rem; }
.media-up small { grid-column: 1 / -1; color: var(--muted); }
.media-up.failed small { color: var(--red); }
.media-month { margin: 1.2rem 0 .5rem; font-size: 1.1rem; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .4rem; }
.media-tile { position: relative; aspect-ratio: 1; padding: 0; border: 1px solid var(--sab-gold-light); background: var(--sab-cream); cursor: pointer; overflow: hidden; }
.media-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-video { display: grid; place-items: center; height: 100%; font-size: 2rem; color: var(--sab-gold); }
.media-badge { position: absolute; left: .3rem; bottom: .3rem; background: rgba(59, 45, 32, .75); color: #fff; font-size: .75rem; padding: .05rem .4rem; }
.viewer { position: fixed; inset: 0; z-index: 20; background: #111; color: #eee; display: flex; flex-direction: column; }
.viewer[hidden] { display: none; }
.viewer-bar, .viewer-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .5rem .8rem; }
.viewer-actions { display: flex; gap: .4rem; }
.viewer-stage { flex: 1; min-height: 0; display: grid; place-items: center; }
.viewer-stage img, .viewer-stage video { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer-meta { flex: 1; display: flex; flex-direction: column; gap: .2rem; }
.viewer-meta input { background: #222; color: #eee; border-color: #444; }
body.viewer-open { overflow: hidden; }
@media (max-width: 600px) { .media-grid { grid-template-columns: repeat(3, 1fr); gap: 2px; } }

/* The boutique picker in the sidebar (ui.setSidebarTop). */
.nav-top .shop-picker { flex-direction: column; align-items: stretch; margin: 0 .6rem .6rem; padding: .5rem .6rem; }
.nav-top .shop-picker label { flex-direction: column; align-items: stretch; gap: .25rem; }
.nav-top .shop-picker span { font-size: .85rem; }
.nav-top .shop-picker select { min-width: 0; width: 100%; font-size: .9rem; }
