/* ==========================================================================
   Les Têtes de l'Art — site public
   ========================================================================== */
:root {
	--orange: #F47A20;
	--orange-dark: #c95d0e;
	--red: #b3121b;
	--bg: #0b0b0b;
	--card: rgba(22, 22, 22, .78);
	--card-solid: #151515;
	--line: rgba(255, 255, 255, .1);
	--text: #f2efe9;
	--muted: #a39e96;
	--radius: 14px;
	--font: 'Scada', system-ui, -apple-system, 'Segoe UI', sans-serif;
	/* Effet néon des titres, clin d'œil au halo de l'ancien site */
	--glow: 0 0 2px #fff, 0 0 8px rgba(255,255,255,.75), 0 0 18px rgba(244,122,32,.9), 0 0 36px rgba(244,122,32,.55);
	--glow-soft: 0 0 10px rgba(244,122,32,.55), 0 0 22px rgba(244,122,32,.3);
	--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,.05), rgba(0,0,0,.3)),
		var(--bg-image, none) center / 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; }


/* ---------- En-tête (barre du haut) ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(0,0,0,.94); backdrop-filter: blur(8px); border-bottom: 2px solid var(--orange); }
.hdr { max-width: 1280px; margin: 0 auto; display: flex; align-items: stretch; justify-content: space-between; min-height: 72px; padding-left: clamp(12px, 2vw, 24px); }
.brand { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 0; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 52px; height: 52px; border-radius: 50%; transition: transform .3s; }
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.05); }
.brand-word { width: clamp(150px, 17vw, 250px); height: auto; }
.burger { display: none; }
.mainnav { display: flex; align-items: stretch; }
.nav-item {
	display: flex; align-items: center; padding: 0 18px;
	font-family: var(--display); font-size: 14px; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap;
	color: var(--text); border-left: 1px solid var(--line); transition: background .15s, color .15s;
}
.nav-item:hover { color: var(--orange); background: rgba(255,255,255,.04); text-decoration: none; }
.nav-item.active { color: var(--orange); box-shadow: inset 0 -4px 0 var(--orange); }
.nav-cta { background: var(--orange); color: #000; border-left: 0; }
.nav-cta:hover, .nav-cta.active { background: #ff9442; color: #000; box-shadow: none; }
.nav-drop { position: relative; display: flex; }
.nav-drop > .nav-item::after { content: "▾"; margin-left: 6px; color: var(--orange); font-family: var(--font); }
.drop-toggle { display: none; }
.mega {
	position: absolute; top: 100%; right: 0; width: min(760px, 92vw);
	background: rgba(8,8,8,.98); border: 1px solid var(--line); border-top: 2px solid var(--orange); padding: 18px;
	box-shadow: 0 24px 60px rgba(0,0,0,.7);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.nav-drop:hover .mega, .nav-drop:focus-within .mega, .nav-drop.open .mega { opacity: 1; visibility: visible; transform: none; }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 10px; }
.mega-grid a { padding: 6px 10px; border-radius: 6px; color: var(--text); line-height: 1.2; }
.mega-grid a:hover { background: rgba(244,122,32,.12); text-decoration: none; }
.mega-grid a.current .n { color: var(--orange); }
.mega-grid .n { display: block; font-weight: 700; }
.mega-grid .d { display: block; font-size: 12px; color: var(--muted); }
.mega-all { display: inline-block; margin-top: 12px; padding: 0 10px; font-weight: 700; }

/* ---------- Contenu : panneau sombre posé sur l'œuvre de fond ---------- */
.main {
	--pt: 28px; --px: clamp(16px, 4vw, 40px);
	width: min(1120px, calc(100% - 48px)); margin: 32px auto;
	padding: var(--pt) var(--px) 24px;
}
.main, .home-panel {
	background: rgba(0, 0, 0, .74);
	border: 2px solid var(--orange); border-radius: 16px;
	box-shadow: 0 24px 70px rgba(0,0,0,.55);
}
.page-home .main { background: none; border: 0; box-shadow: none; padding: 0; }
.home-panel { padding: 8px var(--px) 28px; }
.hero {
	min-height: min(58vh, 540px); margin: 0 0 32px; padding: 48px 20px;
	display: flex; align-items: center; justify-content: center; text-align: center;
}
.hero-inner {
	max-width: 900px; padding: clamp(22px, 4vw, 40px) clamp(18px, 4vw, 48px);
	background: rgba(0, 0, 0, .86); border: 2px solid var(--orange); border-radius: 18px;
	box-shadow: 0 0 0 6px rgba(0,0,0,.35), 0 30px 80px rgba(0,0,0,.7);
	backdrop-filter: blur(3px);
}
.hero-title { margin: 0 0 18px; }
.hero-title img { width: min(720px, 100%); margin: 0 auto; }
.hero-sub { font-size: clamp(16px, 1.9vw, 19px); color: #f3f0ea; margin: 0 auto 22px; max-width: 640px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 0; }

.page-title, .section-title {
	font-family: var(--display); font-weight: 400;
	color: var(--orange);
	text-transform: uppercase;
	line-height: 1.15;
	text-shadow: var(--glow-soft);
}
.page-title, .artist-name, .event-detail-title { color: #fff; text-shadow: var(--glow); }
.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; }
.site-footer { border-top: 2px solid var(--orange); background: rgba(0,0,0,.92); margin-top: 50px; }
.ftr { max-width: 1200px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 40px); display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 28px; font-size: 14px; color: var(--muted); }
.ftr p { margin: 0 0 10px; }
.ftr b { color: var(--text); }
.ftr nav { display: flex; flex-direction: column; gap: 6px; }
.ftr nav a { color: var(--text); font-family: var(--display); font-size: 13px; text-transform: uppercase; }
.ftr nav a:hover { color: var(--orange); text-decoration: none; }
.ftr-logo { width: 64px; height: 64px; border-radius: 50%; margin-bottom: 10px; }

.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, 300px) 1fr; gap: 32px; align-items: start; }
.artist-head.no-cover { grid-template-columns: 1fr; }
.artist-cover { position: sticky; top: 96px; }
.artist-cover img { border-radius: 10px; width: 100%; aspect-ratio: 1; object-fit: cover; }
.artist-name { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 5vw, 50px); line-height: 1.05; margin: 0 0 8px; }
.artist-disc { font-size: 19px; margin: 0 0 12px; }
.artist-bio { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.artist-id > :last-child { margin-bottom: 0; }

.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: 1080px) {
	/* backdrop-filter ferait du header le repère du menu en position fixed : on l'enlève */
	.site-header { backdrop-filter: none; background: #000; }
	.hdr { min-height: 64px; align-items: center; padding-right: 6px; }
	.brand-logo { width: 44px; height: 44px; }
	.burger { width: 48px; height: 48px; background: none; border: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 11px; 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); }
	.mainnav {
		position: fixed; top: 66px; left: 0; right: 0; bottom: 0;
		flex-direction: column; align-items: stretch;
		background: #000; padding: 6px 0 40px;
		overflow-y: auto; scrollbar-width: none;
		transform: translateX(100%); transition: transform .28s ease; visibility: hidden;
	}
	.mainnav::-webkit-scrollbar { display: none; }
	body.menu-open { overflow: hidden; }
	body.menu-open .mainnav { transform: none; visibility: visible; }
	.nav-item { border-left: 0; border-bottom: 1px solid var(--line); padding: 16px 22px; font-size: 18px; }
	.nav-item.active { box-shadow: inset 4px 0 0 var(--orange); }
	.nav-cta { margin: 18px 22px 0; border-radius: 999px; justify-content: center; border-bottom: 0; }
	.nav-drop { flex-wrap: wrap; }
	.nav-drop > .nav-item { flex: 1; }
	.nav-drop > .nav-item::after { content: none; }
	.drop-toggle { display: block; width: 68px; background: none; border: 0; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--orange); font-size: 22px; cursor: pointer; transition: transform .2s; }
	.nav-drop.open .drop-toggle { transform: rotate(180deg); }
	.mega { position: static; width: 100%; display: none; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 8px 12px 14px 22px; background: transparent; }
	.nav-drop.open .mega { display: block; }
	.mega-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
	body { font-size: 16px; }
	.main { --pt: 16px; --px: 14px; width: calc(100% - 20px); margin: 10px auto 20px; border-radius: 12px; }
	.home-panel { border-radius: 12px; }
	.page-home .main { width: calc(100% - 20px); }
	.hero { min-height: 50vh; padding: 36px 6px; margin-bottom: 14px; }
	.ftr { grid-template-columns: 1fr; gap: 18px; }
	.artist-head, .event-detail-grid { grid-template-columns: 1fr; }
	.artist-cover { max-width: 320px; position: static; }
	.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); }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Bandeau cookies (Google Analytics) : fine barre en bas ---------- */
.consent {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
	display: flex; align-items: center; justify-content: center; gap: 10px 20px; flex-wrap: wrap;
	padding: 10px 16px; background: rgba(0,0,0,.94); border-top: 2px solid var(--orange);
	font-size: 14px; text-align: center;
}
.consent[hidden] { display: none; }
.consent p { margin: 0; }
.consent-btns { display: flex; gap: 8px; }
.btn-sm { padding: 5px 16px; font-size: 14px; }
