/* Identité commune, issue de la galerie publique (index.html). */
:root {
    --site-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --accent: #333333;
    --ink: #333333;
    --muted: #777777;
    --line: #eeeeee;
    --surface: #fafafa;
}
body {
    font-family: var(--site-font);
    background: #ffffff;
    color: var(--ink);
    line-height: 1.6;
}
button, input, select, textarea { font-family: inherit; }
.photo-actions { flex-wrap: wrap; gap: 4px 8px; }
.photo-price { display: block; color: #333; font-size: 14px; font-weight: 500; margin: 5px 0; white-space: nowrap; flex-shrink: 0; }
.viewer-photo-price { position: absolute; bottom: 16px; left: 16px; z-index: 5; background: rgba(0, 0, 0, .75); color: white; padding: 7px 12px; font-size: 14px; pointer-events: none; }
.viewer-photo-price:empty { display: none; }
:is(button, a, input, select, textarea):focus-visible { outline: 2px solid #777; outline-offset: 3px; }

/* Installation et page de démonstration. */
.utility-page { margin: 0; padding: 40px 20px; min-height: 100vh; }
.utility-page * { box-sizing: border-box; }
.utility-page main, .utility-page .box {
    max-width: 720px;
    margin: 40px auto;
    padding: 40px;
    border: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    background: var(--surface);
}
.utility-page h1 { font-size: 2rem; font-weight: 300; letter-spacing: 2px; line-height: 1.3; margin: 0 0 30px; }
.utility-page h2 { font-size: 1.5rem; font-weight: 300; letter-spacing: 1px; }
.utility-page code { overflow-wrap: anywhere; }
.utility-page button, .utility-page .admin-link {
    display: inline-block;
    padding: 15px 22px;
    border: none;
    border-radius: 0;
    background: var(--accent);
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}
.utility-page button:hover, .utility-page .admin-link:hover { background: #555; }
.utility-page input { padding: 15px; border: 1px solid #ddd; border-radius: 0; background: white; }
.utility-page .notice { padding: 16px; border: 1px solid #ddd; background: white; margin: 20px 0; }
.utility-page .error { border-color: #dbaaaa; color: #993333; }
.utility-page li { margin: 6px 0; }
.utility-page .photo { border-radius: 0; background: #f0f0f0; }
@media (max-width: 600px) {
    .utility-page { padding: 20px 16px; }
    .utility-page main, .utility-page .box { margin: 20px auto; padding: 24px 20px; }
    .utility-page h1 { font-size: 1.5rem; }
}
