/* 666 La Chasse + Sophie Monroy — feuille de style publique */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --font: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.25rem + 1.1vw, 2.2rem);
  --step-3: clamp(2rem, 1.5rem + 2.4vw, 3.6rem);
  --step-4: clamp(2.8rem, 1.8rem + 5vw, 6.5rem);
}

.theme-lachasse {
  --bg: #0b0b0c;
  --bg-2: #161618;
  --fg: #f2f0ec;
  --muted: #a3a09a;
  --line: #2a2a2d;
  --accent: #ff2e93;
  --accent-ink: #0b0b0c;
  --date: #ff5a4f;
}

.theme-sophie {
  --bg: #ffffff;
  --bg-2: #f4f3f1;
  --fg: #151515;
  --muted: #6b6b6b;
  --line: #e4e2de;
  --accent: #e0262f;
  --accent-ink: #ffffff;
  --date: #e0262f;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--step-0)/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
address { font-style: normal; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(40px, 7vw, 96px); }
.section + .section { padding-top: 0; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand { text-decoration: none; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; white-space: nowrap; }
.brand-num { color: var(--accent); font-feature-settings: "tnum"; }
.theme-lachasse .brand-name { text-transform: uppercase; letter-spacing: 0.04em; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: center; }
.site-nav a { text-decoration: none; font-size: 0.95rem; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a[aria-current] { border-color: var(--accent); }
.nav-cta a { border: 1px solid var(--accent); color: var(--accent); padding: 6px 14px; border-radius: 99px; }
.nav-cta a:hover { background: var(--accent); color: var(--accent-ink); }

.nav-toggle { display: none; position: relative; width: 44px; height: 44px; border: 0; background: none; color: var(--fg); cursor: pointer; }
.nav-toggle span:first-child, .nav-toggle span:first-child::before, .nav-toggle span:first-child::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: currentColor; content: ""; transition: transform .2s, opacity .2s;
}
.nav-toggle span:first-child { top: 21px; }
.nav-toggle span:first-child::before { left: 0; top: -7px; }
.nav-toggle span:first-child::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] span:first-child { background: transparent; }
.nav-toggle[aria-expanded="true"] span:first-child::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:first-child::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  /* backdrop-filter would make the header the containing block of the fixed menu */
  .site-header, .theme-sophie .site-header { backdrop-filter: none; background: var(--bg); }
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: 68px 0 0; background: var(--bg); padding: 24px var(--gutter); overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s; }
  .site-nav.is-open { transform: none; visibility: visible; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 6px; }
  .site-nav a { font-size: var(--step-2); font-weight: 600; }
  .nav-cta { margin-top: 12px; }
  .nav-cta a { font-size: var(--step-0); }
  body.nav-open { overflow: hidden; }
}

/* ---------- Common blocks ---------- */
.page-title { font-size: var(--step-3); margin-bottom: 0.3em; overflow-wrap: anywhere; }
.kicker { font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); font-weight: 600; margin: 0; }
.lead { font-size: var(--step-1); color: var(--muted); max-width: 46ch; }
.tag { display: inline-block; font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: 600; margin: 0 0 6px; }
.date { color: var(--date); font-weight: 500; font-size: var(--step--1); margin: 0; }
.subtitle { font-size: var(--step-1); color: var(--muted); margin: 0 0 6px; }

/* Event status (À venir / En cours / Terminé) */
.event-when { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 4px 0 0; }
.event-when .date { font-size: var(--step-0); }
.event-extra { color: var(--muted); margin: 8px 0 0; max-width: 60ch; }
.status { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 3px 10px; border-radius: 99px; line-height: 1.4; }
.status-current { background: var(--accent); color: var(--accent-ink); }
.status-upcoming { border: 1px solid var(--accent); color: var(--accent); }
.status-past { border: 1px solid var(--line); color: var(--muted); }
.status-on-media { position: absolute; top: 12px; left: 12px; }
.status-on-media.status-upcoming { background: var(--bg); }
.card-media { position: relative; }
.card.is-past .card-media img { filter: grayscale(.35); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.more { text-decoration: none; font-weight: 500; white-space: nowrap; }
.year { font-size: var(--step-2); margin: 56px 0 20px; color: var(--muted); font-weight: 300; }
.year:first-of-type { margin-top: 32px; }
.crumbs { font-size: var(--step--1); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a::before { content: "← "; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font: 600 0.95rem var(--font); text-decoration: none; border: 1px solid var(--accent); cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { color: var(--accent-ink); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); }
.btn-small { padding: 8px 16px; font-size: 0.85rem; }

.prose { max-width: 68ch; }
.prose a { color: var(--accent); }
.prose h2 { font-size: var(--step-2); margin-top: 1.4em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.2em; }
.prose blockquote { margin: 1.4em 0; padding-left: 1em; border-left: 3px solid var(--accent); font-style: italic; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose > :last-child { margin-bottom: 0; }
.intro { font-size: var(--step-1); }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: clamp(20px, 3vw, 36px); }
.card-grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { display: flex; flex-direction: column; gap: 14px; }
.card-media { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-2); border-radius: var(--radius); }
.card-media.square { aspect-ratio: 1; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-placeholder { display: grid; place-items: center; height: 100%; font-size: var(--step-3); font-weight: 700; color: var(--line); }
.card-title { font-size: var(--step-1); margin: 0 0 6px; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.artist { color: var(--accent); }

/* ---------- Hero (666) ---------- */
.hero { position: relative; height: min(86vh, 860px); min-height: 420px; overflow: hidden; background: #000; }
.hero-slides, .hero-slide { position: absolute; inset: 0; margin: 0; }
.hero-slide { opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide { overflow: hidden; }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg { object-fit: cover; filter: blur(28px) brightness(.45) saturate(1.2); transform: scale(1.15); }
.hero-fg { object-fit: contain; }
.hero-overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; padding-bottom: clamp(32px, 6vw, 72px); background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.1) 55%, rgba(0,0,0,.25)); color: #fff; }
.hero-title { font-size: var(--step-4); text-transform: uppercase; letter-spacing: -0.03em; line-height: .9; margin: 0 0 12px; }
.hero-tagline { font-size: var(--step-1); max-width: 40ch; margin: 0; color: rgba(255,255,255,.85); }

.featured .kicker { margin-bottom: 24px; }
.feature-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.feature-card + .feature-card { margin-top: 56px; }
.feature-media { display: block; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.feature-media img { width: 100%; max-height: 640px; object-fit: cover; }
.feature-body h3 { font-size: var(--step-3); margin: 6px 0 12px; }
.feature-body h3 a { text-decoration: none; }
.feature-body .date { font-size: var(--step-0); margin-bottom: 16px; }
@media (max-width: 800px) { .feature-card { grid-template-columns: 1fr; } }

/* ---------- Entries (event / release / page) ---------- */
.entry-head { padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(20px, 3vw, 32px); }
.entry-head .date { font-size: var(--step-0); }
.entry-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; padding-bottom: clamp(32px, 5vw, 64px); }
.entry-layout.no-cover { grid-template-columns: minmax(0, 1fr); }
.entry-cover { margin: 0; position: sticky; top: 90px; }
.entry-cover img { width: 100%; border-radius: var(--radius); }
@media (max-width: 800px) { .entry-layout { grid-template-columns: 1fr; } .entry-cover { position: static; } }

.link-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.link-list a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; font-size: 0.9rem; max-width: 100%; overflow-wrap: anywhere; }
.link-list a:hover { border-color: var(--accent); }

.pager { display: flex; justify-content: space-between; gap: 16px; padding-block: 32px 64px; border-top: 1px solid var(--line); }
.pager a { text-decoration: none; display: flex; flex-direction: column; max-width: 45%; font-weight: 600; }
.pager small { color: var(--muted); font-weight: 400; text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; }
.pager-next { text-align: right; margin-left: auto; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 8px; }
.filters a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; font-size: .9rem; }
.filters a[aria-current] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ---------- Galleries ---------- */
.gallery-masonry { columns: 3 300px; column-gap: clamp(12px, 2vw, 24px); }
.gallery-masonry .gallery-item { break-inside: avoid; margin: 0 0 clamp(12px, 2vw, 24px); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: clamp(8px, 1.5vw, 16px); }
.gallery-grid .gallery-item { margin: 0; aspect-ratio: 1; overflow: hidden; }
.gallery-grid .gallery-item a, .gallery-grid .gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: clamp(20px, 3vw, 36px); }
.gallery-videos .gallery-item { margin: 0; }
.gallery-item a { display: block; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); cursor: zoom-in; }
.gallery-item img { width: 100%; transition: transform .5s ease, opacity .3s; }
.gallery-item a:hover img { transform: scale(1.03); }
.gallery-item figcaption { font-size: var(--step--1); color: var(--muted); padding-top: 8px; }

/* ---------- Embeds ---------- */
.embeds { display: grid; gap: 24px; }
.embed { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.embed-video { width: 100%; background: #111; }
.embed-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.embed-video iframe, .embed-audio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); cursor: pointer; display: grid; place-items: center; transition: transform .15s; }
.embed-play svg { width: 34px; fill: currentColor; margin-left: 4px; }
.embed-play:hover { transform: scale(1.08); }
.embed-provider { position: absolute; left: 12px; bottom: 10px; font-size: .75rem; color: #fff; background: rgba(0,0,0,.6); padding: 2px 8px; border-radius: 99px; }
.embed-audio { padding: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.embed-audio.is-loaded { padding: 0; }
.embed-audio small { color: var(--muted); }

/* ---------- Forms ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); }
@media (max-width: 800px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-address { font-size: var(--step-1); margin-bottom: 16px; }
.form { display: grid; gap: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; padding: 12px 14px; background: var(--bg-2); color: var(--fg); border: 1px solid var(--line); border-radius: var(--radius); font: inherit; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field [aria-invalid="true"] { border-color: var(--date); }
.field-error { color: var(--date); font-size: .85rem; margin: 6px 0 0; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; border-radius: var(--radius); border: 1px solid var(--line); }
.notice-ok { border-color: #2fae66; }
.notice-error { border-color: var(--date); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; padding-block: 48px 32px; }
.footer-brand { font-weight: 700; font-size: 1.3rem; text-transform: uppercase; }
.footer-brand small { font-size: .7rem; color: var(--muted); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-block: 20px 32px; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); }
.footer-bottom p { margin: 0; }

.notfound { text-align: center; padding-block: 120px; }
.big-num { font-size: var(--step-4); font-weight: 700; color: var(--accent); margin: 0; line-height: 1; }

/* ---------- Cookie consent ---------- */
/* Thin full-width bar at the bottom of the screen */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--bg); color: var(--fg); border-top: 1px solid var(--accent); font-size: .78rem; line-height: 1.4; }
.consent[hidden] { display: none; }
.consent-inner { max-width: var(--wrap); margin: 0 auto; padding: 8px var(--gutter); display: flex; align-items: center; justify-content: center; gap: 8px 20px; }
.consent p { margin: 0; }
.consent-actions { display: flex; gap: 6px; flex: none; }
.consent-btn { font: 700 .7rem var(--font); text-transform: uppercase; letter-spacing: .08em; padding: 5px 12px; border-radius: 3px; border: 1px solid var(--accent); background: transparent; color: var(--accent); cursor: pointer; }
.consent-btn:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.consent-yes { background: var(--accent); color: var(--accent-ink); }
.consent-yes:hover { background: var(--accent); filter: brightness(1.1); }
@media (max-width: 640px) {
  .consent-inner { flex-direction: column; align-items: stretch; gap: 6px; text-align: center; }
  .consent-actions { justify-content: center; }
}
.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.linklike:hover { color: var(--accent); }

/* ---------- Lightbox ---------- */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8,8,8,.96); color: #fff; }
.lightbox::backdrop { background: rgba(0,0,0,.9); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: calc(100vw - 120px); }
.lightbox-figure img { max-width: 100%; max-height: calc(100vh - 110px); width: auto; object-fit: contain; user-select: none; }
.lightbox figcaption { font-size: .9rem; color: #ccc; text-align: center; max-width: 70ch; }
.lb-btn { position: absolute; border: 0; background: rgba(255,255,255,.08); color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; }
.lb-btn:hover { background: rgba(255,255,255,.2); }
.lb-close { top: 16px; right: 16px; font-size: 20px; }
.lb-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lb-next { right: 16px; top: 50%; translate: 0 -50%; }
.lb-count { position: absolute; top: 24px; left: 24px; margin: 0; font-size: .85rem; color: #aaa; }
@media (max-width: 640px) {
  .lightbox-figure { max-width: 100vw; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; translate: none; }
}

/* ---------- Sophie Monroy ---------- */
.theme-sophie .site-header { background: color-mix(in srgb, var(--bg) 94%, transparent); }
.theme-sophie .header-inner { align-items: center; min-height: 76px; }
.theme-sophie .brand { color: var(--accent); font-size: 1.35rem; }
.sm-id { display: flex; flex-direction: column; line-height: 1.2; }
.sm-mail { font-size: .8rem; color: var(--muted); text-decoration: none; }
.theme-sophie .site-nav { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.theme-sophie .site-nav ul { justify-content: flex-end; gap: 2px 18px; }
.theme-sophie .site-nav a { font-size: .9rem; text-transform: lowercase; }
.theme-sophie .nav-ext a { color: var(--muted); }
.theme-sophie .nav-ext a::after { content: " ↗"; font-size: .75em; }
.social-icons { list-style: none; margin: 0; padding: 0; display: flex !important; flex-direction: row !important; gap: 6px !important; }
.social-icons a { display: grid; place-items: center; width: 34px; height: 34px; padding: 0 !important; border: 0 !important; border-radius: 50%; color: var(--muted); transition: color .15s, background .15s; }
.social-icons a:hover { color: var(--accent-ink); background: var(--accent); }
.social-icons svg { width: 19px; height: 19px; }
@media (max-width: 900px) {
  .theme-sophie .site-nav { inset: 76px 0 0; align-items: flex-start; }
  .theme-sophie .site-nav ul { justify-content: flex-start; }
  .theme-sophie .site-nav a { text-transform: none; }
  .theme-sophie .social-icons { margin-top: 24px; }
  .theme-sophie .social-icons a { width: 44px; height: 44px; }
  .theme-sophie .social-icons svg { width: 24px; height: 24px; }
}
.sm-hero { padding-top: clamp(16px, 3vw, 32px); }
.sm-hero img { width: 100%; max-height: 82vh; object-fit: cover; }
.sm-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(16px, 2.5vw, 28px); }
.sm-index-item { position: relative; display: block; aspect-ratio: 4/5; overflow: hidden; text-decoration: none; background: var(--bg-2); }
.sm-index-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.sm-index-item:hover img { transform: scale(1.04); }
.sm-index-item span { position: absolute; left: 0; bottom: 0; background: var(--bg); padding: 8px 14px; font-weight: 600; }
.theme-sophie .page-title { font-size: var(--step-2); text-transform: lowercase; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
