/* Pages individuelles des motifs (créées par generer-pages.ps1). Mêmes couleurs que la page d'accueil. */
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300 600; font-display: swap; src: url(/fonts/jost-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: "Jost"; font-style: normal; font-weight: 300 600; font-display: swap; src: url(/fonts/jost-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; }
:root {
    --bg: #FAF6EF; --surface: #FFFFFF; --surface-2: #F2EADC; --line: #E4D7C2;
    --ink: #161412; --muted: #6B6153; --brand: #161412; --on-brand: #FAF6EF;
    --accent: #C9972F; --accent-hover: #B5861F; --on-accent: #161412; --accent-text: #8A6416; --accent-soft: #F3E3BF;
    --gold: #C9972F; --gold-text: #8A6416;
    --serif-display: "Jost", "Segoe UI", system-ui, sans-serif;
    --serif: "Jost", "Segoe UI", system-ui, sans-serif;
    --sans: "Jost", "Segoe UI", system-ui, sans-serif;
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #12110F; --surface: #1B1916; --surface-2: #25221E; --line: #3A342C;
        --ink: #F3EDE2; --muted: #ADA290; --brand: #1B1916; --on-brand: #F3EDE2;
        --accent: #E0B04F; --accent-hover: #EBC066; --on-accent: #12110F; --accent-text: #E8C06C; --accent-soft: #3A2F1A;
        --gold: #E0B04F; --gold-text: #E8C06C;
        color-scheme: dark;
    }
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.stitch { height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 12px, transparent 12px 20px); }

.top { background: var(--brand); color: var(--on-brand); }
.top .wrap { height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--serif-display); font-size: 1.25rem; letter-spacing: .14em; text-decoration: none; }
.brand svg { width: 22px; height: 22px; fill: var(--gold); flex-shrink: 0; }
.back { font-size: .9rem; font-weight: 600; text-decoration: none; padding: 10px 0; color: rgba(250,246,239,.85); }
.back:hover { color: var(--on-brand); text-decoration: underline; text-underline-offset: 3px; }

.motif { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); padding-top: clamp(24px, 5vw, 56px); padding-bottom: 56px; align-items: start; }
.media { display: block; background: var(--surface-2); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.media img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.ref { font-size: .88rem; font-weight: 600; color: var(--gold-text); letter-spacing: .02em; }
h1 { font-family: var(--serif-display); font-weight: 300; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.1; margin-top: 4px; }
.price { font-size: 1.45rem; font-weight: 600; margin-top: 12px; font-variant-numeric: tabular-nums; }
.specs { margin-top: 22px; border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.specs dt { color: var(--muted); }
.specs dd { font-weight: 500; text-align: right; }
.actions { display: grid; gap: 10px; margin-top: 26px; max-width: 420px; }
.btn { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 3px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 1px solid transparent; }
.primary { background: var(--accent); color: var(--on-accent); }
.primary:hover { background: var(--accent-hover); }
.secondary { background: var(--surface); color: var(--accent-text); border-color: var(--accent-text); }
.secondary:hover { background: var(--accent-soft); }
.note { margin-top: 18px; font-size: .88rem; color: var(--muted); max-width: 52ch; }

.similar { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.similar h2 { font-family: var(--serif); font-weight: 600; font-size: 1rem; margin-bottom: 12px; }
.similar .grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.similar a { text-decoration: none; font-size: .82rem; line-height: 1.3; min-width: 0; }
.similar img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 3px; border: 1px solid var(--line); background: var(--surface-2); margin-bottom: 6px; }
.similar span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.similar .p { color: var(--muted); }

.foot { border-top: 1px solid var(--line); padding: 22px 0 32px; font-size: .86rem; color: var(--muted); }

@media (max-width: 700px) {
    .motif { grid-template-columns: 1fr; gap: 22px; padding-top: 16px; }
    .media { max-width: 320px; margin: 0 auto; width: 100%; }
    .actions { max-width: none; }
}
