/* ══════════════════════════════════════════════════════════════════
   IVAN COLAS · Fiche d'œuvre
   Charte identique au site principal (default_index.html)
   ══════════════════════════════════════════════════════════════════ */

:root {
    --ink:           #1a1a1a;
    --ink-soft:      #4a4744;
    --ink-muted:     #8a8480;
    --stone:         #f4f1ec;
    --stone-light:   #faf9f7;
    --white:         #ffffff;
    --gold:          #b8965a;
    --gold-light:    #d4b483;
    --border:        rgba(26, 26, 26, 0.10);
    --border-strong: rgba(26, 26, 26, 0.20);

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans:  'DM Sans', system-ui, -apple-system, sans-serif;

    --page-px: clamp(1.25rem, 6vw, 5rem);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.7;
    color: var(--ink-soft);
    background: var(--stone);
    padding: 0 var(--page-px) 4rem;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

/* ─── Barre supérieure ─────────────────────────────────────────── */

.site-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 0;
}

.site-bar .wordmark {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    color: var(--ink);
    text-decoration: none;
}

.site-bar .wordmark:hover { color: var(--gold); }

.bar-right { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }

.lang-switch {
    padding: 0;
    border: none;
    background: none;
    color: var(--ink-muted);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: color 0.25s ease;
}

.lang-switch + .lang-switch { margin-left: 0.9rem; }
.lang-switch:hover { color: var(--ink); }
.lang-switch.active { color: var(--ink); border-bottom: 1px solid var(--gold); }

.back-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.3rem;
    border: 1px solid var(--border-strong);
    color: var(--ink);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.back-link:hover, .back-link:focus-visible {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--white);
}

/* ─── Fil d'Ariane ─────────────────────────────────────────────── */

.breadcrumb {
    max-width: 1280px;
    margin: 0 auto 1.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: var(--ink-muted);
}

.breadcrumb a { color: var(--ink-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 0.5rem; }

/* ─── Mise en page principale ──────────────────────────────────── */

.artwork {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
    max-width: 1280px;
    margin: 0 auto;
}

/* ─── Colonne images ───────────────────────────────────────────── */

.viewer {
    background: var(--white);
    border: 1px solid var(--border);
    padding: clamp(1rem, 3vw, 2.5rem);
}

.viewer-main {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: var(--stone-light);
}

.thumbs {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.9rem;
    flex-wrap: wrap;
}

.thumbs button {
    width: 68px;
    height: 68px;
    padding: 0;
    border: 1px solid var(--border);
    background: var(--stone-light);
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.25s ease, border-color 0.25s ease;
}

.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button:hover { opacity: 0.85; }
.thumbs button.active { opacity: 1; border-color: var(--gold); }

/* ─── Colonne information ──────────────────────────────────────── */

.details { padding-top: 0.5rem; }

.eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    color: var(--gold);
    margin-bottom: 0.9rem;
}

.details h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.3rem, 5vw, 3.4rem);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 0.4rem;
}

.subtitle {
    font-size: 0.85rem;
    color: var(--ink-muted);
    letter-spacing: 0.03em;
    margin-bottom: 2rem;
}

.price {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 300;
    color: var(--ink);
    margin-bottom: 0.4rem;
}

.price .struck { text-decoration: line-through; opacity: 0.35; }

.status-note {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 0.4rem;
}

.edition-note {
    font-size: 0.78rem;
    color: var(--ink-muted);
    margin-bottom: 2rem;
}

.statement {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--ink-soft);
    border-left: 2px solid var(--gold);
    padding-left: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 58ch;
}

/* ─── Fiche technique ──────────────────────────────────────────── */

.tech h2 {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.16em;
    color: var(--ink-muted);
    margin-bottom: 1rem;
}

.tech dl {
    display: grid;
    grid-template-columns: minmax(7rem, auto) 1fr;
    gap: 0.05rem 1.5rem;
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
}

.tech dt {
    color: var(--ink-muted);
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
}

.tech dd {
    color: var(--ink);
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
}

/* ─── Achat ────────────────────────────────────────────────────── */

.buy-btn {
    display: block;
    width: 100%;
    padding: 1.1rem 2rem;
    border: none;
    background: var(--ink);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.buy-btn:hover, .buy-btn:focus-visible { background: var(--gold); }

.assurances {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--ink-muted);
    line-height: 2;
}

.assurances a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--border-strong); }
.assurances a:hover { color: var(--gold); border-color: var(--gold); }

.trace-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 2px solid var(--gold);
    padding: 1.3rem 1.5rem;
    font-size: 0.88rem;
}

.trace-box strong { font-weight: 500; color: var(--ink); }

/* ─── Autres œuvres ────────────────────────────────────────────── */

.more {
    max-width: 1280px;
    margin: clamp(4rem, 9vw, 7rem) auto 0;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.more h2 {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    font-weight: 300;
    color: var(--ink);
    margin-bottom: 2rem;
}

.more-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1.5rem;
}

.more-grid a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.more-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: var(--stone-light);
    transition: opacity 0.3s ease;
}

.more-grid a:hover img { opacity: 0.82; }

.more-grid .t {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--ink);
    margin-top: 0.7rem;
}

.more-grid .m { font-size: 0.78rem; color: var(--ink-muted); }

/* ─── Pied de page ─────────────────────────────────────────────── */

.site-footer {
    max-width: 1280px;
    margin: 4rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.75rem;
    align-items: center;
    font-size: 0.78rem;
    color: var(--ink-muted);
}

.site-footer a { color: var(--ink-muted); text-decoration: none; letter-spacing: 0.03em; }
.site-footer a:hover { color: var(--gold); }
.site-footer .spacer { flex: 1 1 auto; }

/* ─── Langues ──────────────────────────────────────────────────── */

[data-lang] { display: none; }
[data-lang].active { display: block; }
span[data-lang].active, a[data-lang].active { display: inline; }

/* ─── Accessibilité ────────────────────────────────────────────── */

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ─── Responsive ───────────────────────────────────────────────── */

@media (max-width: 900px) {
    .artwork { grid-template-columns: 1fr; }
    .details { padding-top: 0; }
}

@media (max-width: 600px) {
    .site-bar { padding: 1rem 0; }
    .thumbs button { width: 56px; height: 56px; }
}

/* ─── Impression ───────────────────────────────────────────────── */

@media print {
    body { background: #fff; padding: 0; }
    .site-bar, .thumbs, .buy-btn, .more, .site-footer, .breadcrumb { display: none !important; }
    .artwork { grid-template-columns: 1fr; }
    .viewer { border: none; padding: 0; }
}
