/* Galerie des dessins à imprimer. La navigation et la visionneuse partagent les styles du pack. */
.color-hero { display: grid; grid-template-columns: 1.04fr 1fr; gap: 18px; align-items: center; padding: clamp(22px, 3.8vw, 48px); background: #fff0c9; border-radius: 28px; }
.intro-copy h1 { font-size: clamp(42px, 4.9vw, 67px); }
.intro-copy p { max-width: 43ch; margin: 14px 0 20px; font-size: clamp(16px, 1.3vw, 18px); }
.intro-copy small { display: block; margin: 6px 0 0 4px; font-weight: 600; }
.trio { display: flex; align-items: center; justify-content: center; min-width: 0; gap: 2%; }
.medaillon { display: grid; place-items: end center; width: 32%; aspect-ratio: 1; border-radius: 50% 50% 42% 42%; background: var(--tint); }
.medaillon img { width: 100%; height: auto; border-radius: 0 0 38% 38%; }
.medaillon.troy { align-self: flex-start; transform: translateY(-7%); }
.lilo { --tint: #ffe29b; --paper: #fff0c9; }
.troy { --tint: #aad8d1; --paper: #d8eee8; }
.faker { --tint: #f7c4a1; --paper: #fae1d1; }
#dessins { margin: clamp(28px, 4vw, 48px) 0 40px; }
.sheets { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(12px, 1.8vw, 24px); margin-top: 18px; }
.sheet { border: 1px solid #e2d6ce; border-radius: 20px; background: #fffdfa; display: flex; flex-direction: column; }
.sheet:target { outline: 2px solid #884193; outline-offset: 3px; }
.preview-link { text-decoration: none; display: block; border-radius: 19px; }
.drawing { display: grid; place-items: center; border-radius: 19px 19px 0 0; padding: 16px; background: var(--paper); }
.drawing img { display: block; width: 100%; height: clamp(212px,20vw,305px); object-fit: contain; filter: drop-shadow(0 3px 4px #31182a20); }
.sheet-title { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; padding: 17px 16px 10px; }
.sheet h3 { font-size: clamp(21px, 2.1vw, 28px); }
.zoom { display: inline-block; color: #772283; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.preview-link:hover .zoom { color: #430851; }
.sheet-actions { margin-top: auto; padding: 4px 16px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.single-pdf { display: inline-flex; gap: 12px; align-items: center; justify-content: center; text-decoration: none; background: #7c168b; color: white; padding: 9px 15px; font-size: 15px; font-weight: bold; border-radius: 24px; }
.single-pdf:hover { background: #641471; }
small { font-size: 13px; }
.preview-download { text-align: center; padding-top: 12px; }
.preview-download .primary { padding: 8px 16px; font-size: 15px; }
.modal-paper img { max-height: min(56dvh, 680px); }
@media(max-width: 760px) {
  .color-hero { grid-template-columns: 1fr; gap: 16px; }
  .trio { width: min(70%, 280px); margin: 0 auto; }
  .sheets { grid-template-columns: 1fr; }
  .preview-link { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); align-items: stretch; }
  .drawing { border-radius: 19px 0 0 0; padding: 10px; }
  .drawing img { height: clamp(138px, 33vw, 202px); }
  .sheet-title { align-self: center; flex-direction: column; gap: 10px; padding: 14px; }
  .sheet-actions { justify-content: space-between; margin: 0; padding: 10px 14px; border-top: 1px solid #e8ded7; }
}
@media(max-width: 400px) {
  .single-pdf { font-size: 14px; padding: 8px 12px; gap: 8px; }
}
@media(max-height: 640px) { .modal-paper img { max-height: 43dvh; } }

.intro-copy small[hidden] { display: none; }
#lecture-locale { max-width: 46ch; font-weight: normal; }
