/* ==========================================================================
   Les Têtes de l'Art — site public
   ========================================================================== */
:root {
	--orange: #F47A20;
	--orange-dark: #c95d0e;
	--red: #b3121b;
	--bg: #0b0b0b;
	--card: rgba(14, 14, 14, .86);
	--card-solid: #151515;
	--line: rgba(255, 255, 255, .1);
	--text: #f2efe9;
	--muted: #a39e96;
	--radius: 14px;
	--sidebar: 270px;
	--font: 'Scada', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--display: 'Bungee', 'Arial Black', Impact, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 17px/1.6 var(--font);
	min-height: 100vh;
}
body::before {
	content: "";
	position: fixed; inset: 0; z-index: -1;
	background:
		linear-gradient(180deg, rgba(0,0,0,.72), rgba(0,0,0,.9)),
		var(--bg-image, none) center top / cover no-repeat;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--orange); color: #000; padding: 8px 12px; border-radius: 6px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* ---------- Sidebar / navigation ---------- */
.sidebar {
	scrollbar-width: none;
	position: fixed; top: 0; left: 0; bottom: 0;
	width: var(--sidebar);
	padding: 28px 22px 20px;
	background: rgba(0, 0, 0, .78);
	backdrop-filter: blur(6px);
	border-right: 1px solid var(--line);
	overflow-y: auto;
	display: flex; flex-direction: column;
	z-index: 20;
}
.sidebar::-webkit-scrollbar { display: none; }
.logo { display: block; width: 170px; margin: 0 auto 26px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px rgba(244,122,32,.25); transition: transform .3s; }
.logo:hover { transform: rotate(-6deg) scale(1.03); }
.mainnav { display: flex; flex-direction: column; gap: 2px; }
.mainnav > a, .nav-artists > summary {
	font-family: var(--display);
	font-size: 17px; letter-spacing: .5px;
	color: var(--text);
	padding: 9px 12px; border-radius: 8px;
	text-transform: uppercase;
	cursor: pointer; list-style: none;
	transition: background .15s, color .15s;
}
.nav-artists > summary::-webkit-details-marker { display: none; }
.nav-artists > summary::after { content: " ▾"; color: var(--orange); }
.nav-artists[open] > summary::after { content: " ▴"; }
.mainnav > a:hover, .nav-artists > summary:hover { background: rgba(244,122,32,.12); color: var(--orange); text-decoration: none; }
.mainnav > a.active, .nav-artists > summary.active { color: var(--orange); }
.nav-artists-list { display: flex; flex-direction: column; padding: 4px 0 10px 12px; border-left: 2px solid rgba(244,122,32,.35); margin: 2px 0 6px 12px; }
.nav-artists-list a { padding: 4px 10px; border-radius: 6px; color: var(--text); line-height: 1.25; }
.nav-artists-list a:hover { background: rgba(255,255,255,.06); text-decoration: none; }
.nav-artists-list a.current { color: var(--orange); }
.nav-artists-list a.all { color: var(--orange); font-weight: 700; font-size: 14px; }
.nav-artists-list .n { display: block; font-weight: 700; font-size: 15px; }
.nav-artists-list .d { display: block; font-size: 12px; color: var(--muted); }
.sidebar-foot { margin-top: auto; padding-top: 24px; font-size: 13px; color: var(--muted); text-align: center; }
.sidebar-foot a { color: var(--muted); }

.topbar { display: none; }

/* ---------- Contenu ---------- */
.main { margin-left: var(--sidebar); padding: 24px clamp(16px, 4vw, 56px) 40px; max-width: calc(1180px + var(--sidebar)); }
.banner { margin: 4px 0 28px; }
.banner img { width: min(760px, 100%); }
.page-title, .section-title {
	font-family: var(--display); font-weight: 400;
	color: var(--orange);
	text-transform: uppercase;
	line-height: 1.15;
	text-shadow: 3px 3px 0 rgba(0,0,0,.6);
}
.page-title { font-size: clamp(28px, 5vw, 44px); margin: 0 0 22px; }
.section { margin: 40px 0; }
.section-title { font-size: clamp(20px, 3vw, 26px); margin: 0 0 16px; display: flex; align-items: center; gap: 14px; }
.section-title::after { content: ""; flex: 1; height: 3px; background: linear-gradient(90deg, var(--orange), transparent); border-radius: 2px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 30px); backdrop-filter: blur(4px); }
.breadcrumb { margin: -8px 0 16px; }
.footer { margin-top: 60px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

.prose { overflow-wrap: anywhere; }
.prose p { margin: 0 0 1em; }
.prose > :last-child { margin-bottom: 0; }
.prose h2, .prose h3, .prose h4 { color: var(--orange); line-height: 1.25; }
.prose img { border-radius: 8px; margin: 12px 0; }
.prose hr { border: 0; border-top: 1px dashed var(--line); margin: 24px 0; }
.prose blockquote { border-left: 3px solid var(--orange); margin: 0 0 1em; padding-left: 16px; color: #ddd; font-style: italic; }

.btn, .btn-ghost {
	display: inline-block; padding: 9px 18px; border-radius: 999px; font-weight: 700;
	border: 2px solid var(--orange); transition: background .15s, color .15s; cursor: pointer; font-family: inherit; font-size: 15px;
}
.btn { background: var(--orange); color: #000; }
.btn:hover { background: #ff9442; text-decoration: none; }
.btn-ghost { color: var(--orange); background: transparent; }
.btn-ghost:hover { background: var(--orange); color: #000; text-decoration: none; }

.chip { display: inline-block; padding: 3px 11px; margin: 0 6px 6px 0; border-radius: 999px; background: rgba(244,122,32,.14); color: var(--orange); font-size: 14px; font-weight: 700; border: 1px solid rgba(244,122,32,.3); }
a.chip:hover { background: var(--orange); color: #000; text-decoration: none; }
.chip-ext { background: rgba(255,255,255,.07); color: var(--text); border-color: var(--line); }
.tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; padding: 2px 8px; border-radius: 4px; background: var(--orange); color: #000; vertical-align: middle; margin-left: 6px; }
.tag-cancel { background: var(--red); color: #fff; }

/* ---------- Slider actu ---------- */
.news-slider { position: relative; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--orange); background: #000; }
.news-slide { display: none; position: relative; }
.news-slide.active { display: block; animation: fade .6s; }
.news-slide img { width: 100%; max-height: 72vh; object-fit: cover; }
.news-visual { position: relative; }
.news-title { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 70px clamp(16px, 3vw, 32px) 18px; background: linear-gradient(transparent, rgba(0,0,0,.9) 55%); font-family: var(--display); font-weight: 400; color: var(--orange); font-size: clamp(17px, 2.4vw, 24px); line-height: 1.2; }
.news-visual:not(:has(img)) .news-title { position: static; background: none; padding-top: 22px; }
.news-title a { color: inherit; }
.news-text { padding: 14px clamp(16px, 3vw, 32px) 22px; }
.news-text p { margin: 0; color: #eee; font-size: 15px; }
.news-dots { position: absolute; top: 14px; right: 14px; display: flex; gap: 6px; }
.news-dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--orange); background: transparent; cursor: pointer; padding: 0; }
.news-dots button.active { background: var(--orange); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Évènements ---------- */
.events { display: grid; gap: 14px; }
.event-card {
	display: grid; grid-template-columns: 76px 1fr auto; gap: 18px; align-items: start;
	background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
	transition: border-color .15s, transform .15s;
}
.event-card:hover { border-color: rgba(244,122,32,.5); }
.event-card.is-collectif { border-left: 4px solid var(--orange); }
.event-card.cancelled .event-title { text-decoration: line-through; opacity: .7; }
.event-date { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--orange); color: #000; border-radius: 10px; padding: 8px 4px; line-height: 1; text-align: center; }
.event-date:hover { text-decoration: none; }
.event-date .j { font-family: var(--display); font-size: 28px; }
.event-date .m { font-weight: 700; text-transform: uppercase; font-size: 14px; margin-top: 4px; }
.event-date .a { font-size: 12px; opacity: .8; margin-top: 2px; }
.event-when { margin: 0; color: var(--muted); font-size: 14px; }
.event-when.big { font-size: 16px; color: var(--orange); font-weight: 700; }
.event-title { margin: 2px 0 6px; font-size: 20px; line-height: 1.25; }
.event-title a { color: var(--text); }
.event-title a:hover { color: var(--orange); text-decoration: none; }
.event-artists { margin: 6px 0 2px; }
.event-place { margin: 4px 0 0; font-size: 15px; color: #ddd; }
.event-card .more { display: inline-block; margin-top: 8px; font-weight: 700; font-size: 14px; }
.event-flyer img { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; }
.events-compact .event-card { grid-template-columns: 62px 1fr; padding: 12px; gap: 14px; }
.events-compact .event-date .j { font-size: 22px; }
.events-compact .event-title { font-size: 17px; }
.archive-year { margin-bottom: 12px; }
.archive-year > summary { cursor: pointer; font-family: var(--display); font-size: 20px; color: var(--text); padding: 8px 0; list-style: none; }
.archive-year > summary::-webkit-details-marker { display: none; }
.archive-year > summary::before { content: "▸ "; color: var(--orange); }
.archive-year[open] > summary::before { content: "▾ "; }
.archive-year .count { font-family: var(--font); font-size: 13px; background: rgba(255,255,255,.1); padding: 2px 8px; border-radius: 999px; vertical-align: middle; }

.event-detail-grid { display: grid; grid-template-columns: 1fr minmax(220px, 360px); gap: 28px; align-items: start; }
.event-detail-grid.no-flyer { grid-template-columns: 1fr; }
.event-detail-title { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 4vw, 36px); line-height: 1.15; margin: 6px 0 14px; }
.event-detail-flyer img { border-radius: 10px; width: 100%; }
.event-infos { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 18px 0; }
.event-infos dt { color: var(--orange); font-weight: 700; text-transform: uppercase; font-size: 13px; padding-top: 3px; }
.event-infos dd { margin: 0; }
.event-links { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Artistes ---------- */
.artist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.artist-tile { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); transition: transform .2s, border-color .2s; }
.artist-tile:hover { transform: translateY(-4px); border-color: var(--orange); text-decoration: none; }
.artist-tile-img { aspect-ratio: 1; background: #222; overflow: hidden; display: block; }
.artist-tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.artist-tile:hover .artist-tile-img img { transform: scale(1.06); }
.artist-tile-img .placeholder { display: flex; height: 100%; align-items: center; justify-content: center; font-family: var(--display); font-size: 64px; color: var(--orange); background: radial-gradient(circle, #3a1a05, #111); }
.artist-tile-name { font-weight: 700; padding: 10px 12px 0; line-height: 1.25; }
.artist-tile-disc { font-size: 13px; color: var(--muted); padding: 2px 12px 12px; line-height: 1.3; }
.artist-tile-name:last-child { padding-bottom: 12px; }

.artist-head { display: grid; grid-template-columns: minmax(160px, 280px) 1fr; gap: 28px; align-items: center; }
.artist-head:not(:has(.artist-cover)) { grid-template-columns: 1fr; }
.artist-cover img { border-radius: 10px; width: 100%; aspect-ratio: 1; object-fit: cover; }
.artist-name { font-family: var(--display); font-weight: 400; color: var(--orange); font-size: clamp(30px, 5vw, 50px); line-height: 1.05; margin: 0 0 8px; text-shadow: 3px 3px 0 rgba(0,0,0,.6); }
.artist-disc { font-size: 19px; margin: 0 0 12px; }
.artist-bio { margin-top: 20px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.gallery a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: #1a1a1a; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s, opacity .2s; }
.gallery a:hover img { transform: scale(1.07); }

.masonry { columns: 4 200px; column-gap: 12px; }
.masonry figure { break-inside: avoid; margin: 0 0 12px; background: var(--card); border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.masonry figcaption { font-size: 13px; padding: 6px 10px; }

.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; margin: 10px 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Contact / formulaires ---------- */
.contacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.contact-name { font-weight: 700; color: var(--text); font-size: 18px; }
.form { display: grid; gap: 14px; max-width: 620px; }
.form label { display: grid; gap: 4px; font-weight: 700; font-size: 14px; color: #ddd; }
.form input, .form textarea { font: inherit; padding: 10px 12px; border-radius: 8px; border: 1px solid #333; background: #0d0d0d; color: var(--text); width: 100%; }
.form input:focus, .form textarea:focus { border-color: var(--orange); outline: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.94); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 4px; }
.lightbox figcaption { color: #ddd; padding: 10px; text-align: center; font-size: 15px; }
.lightbox button { position: absolute; background: rgba(0,0,0,.5); color: #fff; border: 0; font-size: 42px; line-height: 1; cursor: pointer; padding: 8px 16px; border-radius: 8px; }
.lightbox button:hover { color: var(--orange); }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 20px; left: 20px; color: var(--muted); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	body { font-size: 16px; }
	.topbar {
		display: flex; align-items: center; justify-content: space-between;
		position: sticky; top: 0; z-index: 30;
		padding: 8px 16px; background: rgba(0,0,0,.92); backdrop-filter: blur(6px);
		border-bottom: 1px solid var(--line);
	}
	.topbar-logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--display); font-size: 15px; text-transform: uppercase; }
	.topbar-logo:hover { text-decoration: none; }
	.topbar-logo img { width: 42px; height: 42px; border-radius: 50%; }
	.burger { width: 44px; height: 44px; background: none; border: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 10px; cursor: pointer; }
	.burger span { height: 3px; background: var(--orange); border-radius: 2px; transition: transform .25s, opacity .25s; }
	.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
	.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
	.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
	.sidebar { top: 61px; width: min(320px, 86vw); transform: translateX(-102%); transition: transform .28s ease; background: rgba(0,0,0,.96); }
	body.menu-open .sidebar { transform: none; box-shadow: 0 0 60px rgba(0,0,0,.8); }
	.sidebar .logo { display: none; }
	.main { margin-left: 0; padding: 16px 16px 32px; }
	.banner { margin: 6px 0 20px; }
	.artist-head, .event-detail-grid { grid-template-columns: 1fr; }
	.artist-cover { max-width: 320px; }
	.event-card { grid-template-columns: 64px 1fr; gap: 14px; }
	.event-flyer { display: none; }
	.event-date .j { font-size: 22px; }
	.gallery { grid-template-columns: repeat(3, 1fr); gap: 4px; }
	.gallery a { border-radius: 4px; }
	.artist-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.masonry { columns: 2; column-gap: 8px; }
	.videos { grid-template-columns: 1fr; }
	.row2 { grid-template-columns: 1fr; }
	.lb-prev, .lb-next { font-size: 34px; padding: 6px 10px; }
}
@media (max-width: 420px) {
	.gallery { grid-template-columns: repeat(2, 1fr); }
	.topbar-logo span { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
