/* ============================================================
   gaboriaud-2026 — Collections (hub + pages). Papier/encre, zéro tiers.
   ============================================================ */

/* HERO (commun hub + collection) — aligné sur les autres pages (Articles/Portfolio) */
.collections-hub, .collection-page { max-width: 1440px; margin: 0 auto; padding: var(--hero-top) var(--gutter) 5rem; }
.col-hero { padding: 0 0 2.5rem; border-bottom: 1px solid var(--ink); margin-bottom: 2.5rem; }
.col-hero .marker { position: relative; z-index: 1; font-family: var(--sans); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1.75rem; }
.col-hero .marker a { display: inline-block; } /* zone cliquable pleine */
.col-hero .marker a { color: var(--ink-3); text-decoration: none; border-bottom: 1px solid transparent; }
.col-hero .marker a:hover { border-color: var(--ink-3); }
.col-hero .marker .sep { margin: 0 0.65rem; color: var(--ink-4); }
.col-hero-title { font-family: var(--display); font-size: clamp(5rem, 12vw, 11rem); font-weight: 400; line-height: 0.85; letter-spacing: -0.015em; text-transform: uppercase; color: var(--ink); position: relative; z-index: 0; pointer-events: none; }
.col-hero-lede { font-family: var(--sans); font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.6; color: var(--ink-2); max-width: 46ch; margin-top: 1.2rem; }
.col-hero-count { font-family: var(--sans); font-size: 0.95rem; color: var(--ink-3); margin-top: 1rem; }

/* HUB : cartes empilées à gauche + borne d'arcade (déco) à droite */
.col-hub-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(220px, 26vw, 360px); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.col-hub-cards { display: flex; flex-direction: column; gap: clamp(1rem, 2vw, 1.6rem); }
.col-hub-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; border: 1px solid var(--ink-4); background: var(--paper-pure); transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.col-hub-card:hover { transform: translateY(-4px); box-shadow: 8px 8px 0 var(--ink); border-color: var(--ink); }
.col-hub-deco { position: sticky; top: 6rem; }
.col-hub-deco img { width: 100%; height: auto; display: block; }
.col-hub-mosaic { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--ink-4); overflow: hidden; }
.col-hub-mosaic img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: var(--paper-warm); }
.col-hub-mosaic.is-empty { display: block; aspect-ratio: 5 / 2; background: linear-gradient(135deg, var(--ink-2), var(--ink)); }
.col-hub-cap { padding: 0.85rem 1.1rem 1rem; display: flex; flex-direction: column; gap: 0.2rem; }
.col-hub-name { font-family: var(--display); font-size: clamp(1.15rem, 2.4vw, 1.6rem); line-height: 1; }
.col-hub-count { font-family: var(--sans); font-size: 0.8rem; color: var(--ink-3); }
.col-hub-cta { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; margin-top: 0.35rem; display: inline-flex; gap: 0.4em; color: var(--ink); }
.col-hub-cta span { transition: transform 0.18s ease; }
.col-hub-card:hover .col-hub-cta span { transform: translateX(4px); }

/* TOOLBAR : filtres + tri */
.col-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.col-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.col-chip { font-family: var(--sans); font-size: 0.8rem; font-weight: 500; padding: 0.45rem 0.9rem; border: 1px solid var(--ink-4); background: transparent; color: var(--ink-2); border-radius: 100px; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.col-chip:hover { border-color: var(--ink); }
.col-chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.col-chip--fav.is-active { background: #b4283c; border-color: #b4283c; }
.col-chip-n { opacity: 0.6; margin-left: 0.3em; font-variant-numeric: tabular-nums; }
.col-sort { display: flex; align-items: center; gap: 0.5rem; font-family: var(--sans); font-size: 0.8rem; color: var(--ink-3); }
.col-sort select { font-family: var(--sans); font-size: 0.8rem; padding: 0.4rem 0.6rem; border: 1px solid var(--ink-4); background: var(--paper-pure); color: var(--ink); border-radius: 4px; }

/* GRILLE */
.col-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: clamp(0.9rem, 2vw, 1.6rem); }
.col-card { display: flex; flex-direction: column; text-align: left; background: transparent; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.col-card.is-hidden { display: none; }
.col-cover { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: var(--paper-warm); border: 1px solid rgba(10,10,10,0.1); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.collection--vinyles .col-cover, .col-cover.is-vinyl { aspect-ratio: 1 / 1; }
.col-card:hover .col-cover { transform: translateY(-3px); box-shadow: 5px 5px 0 var(--ink); }
.col-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.col-cover.is-fallback { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #2a2a2a, #4a4a4a); }
.col-cover.is-fallback::after { content: attr(data-title); font-family: var(--display); color: rgba(255,255,255,0.45); font-size: 1.2rem; padding: 0.8rem; text-align: center; line-height: 1.05; }
.col-fav { position: absolute; top: 0.5rem; right: 0.5rem; color: #ff5069; font-size: 1rem; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.col-note { position: absolute; bottom: 0.5rem; left: 0.5rem; font-family: var(--sans); font-size: 0.7rem; font-weight: 600; color: #fff; background: rgba(10,10,10,0.8); padding: 0.2rem 0.45rem; border-radius: 100px; }
.col-cap { padding: 0.6rem 0.1rem 0; }
.col-title { font-family: var(--sans); font-size: 0.9rem; font-weight: 600; line-height: 1.2; color: var(--ink); }
.col-meta { font-family: var(--sans); font-size: 0.78rem; color: var(--ink-3); margin-top: 0.15rem; }
.col-etat { display: inline-block; font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-4); margin-top: 0.3rem; }
.col-empty, .col-noresult { font-family: var(--sans); color: var(--ink-3); padding: 2rem 0; }

/* MODALE */
.col-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(10,10,10,0.72); display: none; align-items: center; justify-content: center; padding: 1.5rem; }
.col-modal.is-open { display: flex; }
.col-modal-inner { background: var(--paper); max-width: 720px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; display: grid; grid-template-columns: 250px 1fr; }
.col-modal-close { position: absolute; top: 0.6rem; right: 0.8rem; font-size: 1.8rem; line-height: 1; background: transparent; border: 0; color: var(--ink); cursor: pointer; z-index: 2; }
.col-modal-cover { background: var(--paper-warm); }
.col-modal-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.col-modal-cover.is-fallback { min-height: 260px; background: linear-gradient(135deg, #2a2a2a, #4a4a4a); }
.col-modal-body { padding: clamp(1.6rem, 3vw, 2.4rem); }
.col-m-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.8rem; }
.col-m-tags span { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.25rem 0.6rem; border: 1px solid var(--ink-4); border-radius: 100px; color: var(--ink-2); }
.col-m-tags .is-fav { border-color: #b4283c; color: #b4283c; }
.col-m-title { font-family: var(--display); font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 0.98; margin-bottom: 0.5rem; }
.col-m-meta { font-family: var(--sans); font-size: 0.95rem; color: var(--ink-2); margin-bottom: 1.2rem; }
.col-m-extra { font-family: var(--sans); font-size: 0.85rem; color: var(--ink-2); display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; }
.col-m-extra dt { color: var(--ink-4); text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.04em; align-self: center; }
.col-m-extra dd { margin: 0; }

/* RESPONSIVE */
@media (max-width: 900px) {
	.col-hub-grid { grid-template-columns: 1fr; }
	.col-hub-deco { position: static; max-width: 260px; margin: 0.5rem auto 0; }
}
@media (max-width: 720px) {
	.col-hub-grid { grid-template-columns: 1fr; }
	.col-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
	.col-modal-inner { grid-template-columns: 1fr; }
	.col-modal-cover { max-height: 40vh; }
}
