/* ---------- Design tokens ---------- */
:root {
  --bg: #101010;
  --bg-raised: #181818;
  --bg-raised-2: #1f1f1f;
  --text: #e2e2e2;
  --text-muted: #a8a8a4;
  --cream: #fff6ec;
  --accent: #b64f42;
  --accent-light: #d17868;
  --border: #2c2c2c;
  --ink: #171512;
  --footer-bg: #424242;
  --font-heading: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Open Sans", "Segoe UI", Arial, sans-serif;
  --wrap: 1180px;
  --header-h: 115px;
}
@media (max-width: 860px) {
  :root { --header-h: 71px; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
}

/* height:auto matters here — many images carry explicit width/height HTML
   attributes from the WP export; without it they'd stretch/distort once
   max-width:100% shrinks them below their literal height attribute. */
img { max-width: 100%; height: auto; display: block; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--cream);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }

p { margin: 0 0 1rem; }
a { color: var(--accent-light); text-decoration: none; }
a:hover { color: var(--accent); }

hr { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

main { min-height: 60vh; }

.button,
button.button {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.85rem 1.8rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* Plain text link with an accent underline — matches the live site's
   "elementor-button-link" style (e.g. the homepage "À propos" link), not
   a filled button. */
.button-link {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
}
.button-link:hover { color: var(--accent-light); }
.button:hover { background: transparent; border-color: var(--accent); color: var(--accent-light); }
.button--ghost { background: transparent; color: var(--cream); }
.button--ghost:hover { background: var(--accent); color: var(--cream); }

/* Footer buttons: white outline on the grey footer band, not the red accent */
.footer-cta .button,
.footer-newsletter .button {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.footer-cta .button:hover,
.footer-newsletter .button:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

/* ---------- Header / nav ----------
   Not sticky on the live site — it's a fixed-height cream band that scrolls
   away with the page, same on every page (on the homepage it simply blends
   into the cream hero section that follows it). */
.site-header {
  background: var(--cream);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; line-height: 0; }
.brand img { height: 80px; width: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}

.primary-nav {
  display: flex;
  align-items: center;
}
.primary-nav a {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: #8a8a8a;
  padding: 0 20px;
}
.primary-nav a:hover,
.primary-nav a.is-current { color: var(--accent); }

.header-social { display: flex; gap: 0.85rem; margin-left: 1rem; color: var(--accent); }
.header-social a { color: inherit; display: flex; }
.header-social a:hover { color: var(--ink); }
/* Hidden below the nav breakpoint — the live site drops these on mobile
   entirely rather than moving them into the menu panel. */
@media (max-width: 860px) { .header-social { display: none; } }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 0 auto; }

@media (max-width: 860px) {
  .brand img { height: 40px; }
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem 1.5rem 2rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 50;
  }
  .primary-nav a {
    width: 100%;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(23, 21, 18, 0.12);
  }
  body.nav-open .primary-nav { opacity: 1; transform: translateY(0); pointer-events: auto; }
}

/* ---------- Footer: uniform mid-grey band, no sticky/dark theme here ---------- */
.site-footer {
  margin-top: 5rem;
  background: var(--footer-bg);
  color: #d3d3d3;
}
.footer-top {
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
}
.footer-cta { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  width: 70px;
  margin: 2rem auto;
}
.footer-newsletter { max-width: 640px; margin: 0 auto; }
.footer-newsletter p { color: #d3d3d3; margin-bottom: 1rem; }
.footer-newsletter label {
  display: block;
  font-size: 0.85rem;
  color: #b8b8b8;
  margin-bottom: 0.4rem;
}
.footer-newsletter input {
  width: 100%;
  background: #fafafa;
  border: none;
  color: var(--ink);
  padding: 0.85rem 1rem;
  border-radius: 2px;
  font-family: var(--font-body);
  margin-bottom: 1.25rem;
}
.footer-newsletter input:focus { outline: 2px solid var(--accent); }
.footer-newsletter .row-form form {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-newsletter .row-form form label { flex: 0 0 100%; }
.footer-newsletter .row-form form input[type="email"] { flex: 1 1 260px; margin-bottom: 0; }
.footer-newsletter .row-form form button { flex: 0 0 auto; }
.footer-newsletter .row-success p { color: #d3d3d3; margin: 0; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1.75rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-logo img { display: block; }
.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 0.4rem 1.75rem;
  font-size: 0.92rem;
}
.footer-nav a { color: #d3d3d3; }
.footer-nav a:hover { color: var(--accent-light); }
.footer-nav a.is-current,
.primary-nav a.is-current { color: var(--accent); }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: #fff; display: flex; }
.footer-social a:hover { color: var(--accent-light); }

.footer-copy {
  text-align: center;
  color: #b8b8b8;
  font-size: 0.8rem;
  padding: 0 1.5rem 2rem;
  margin: 0;
}
.footer-copy a { color: var(--accent); margin-left: 0.3rem; }

@media (max-width: 700px) {
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-nav { grid-template-columns: repeat(2, auto); justify-content: center; text-align: left; }
}

/* ---------- Generic content page ---------- */
.content-block {
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
}
.content-block img { border-radius: 4px; margin: 1.5rem auto; }
.content-block--wide { max-width: var(--wrap); }
.content-block--justify p { text-align: justify; }

/* Bio photos: portrait crops float left with text wrapping alongside
   (matches the live site's WP `alignleft` treatment); square/landscape
   crops are centered on their own line (`aligncenter`) with no wrap. */
.content-block img.align-portrait {
  float: left;
  margin: 0 1.5rem 1rem 0;
}
.content-block img.align-center {
  display: block;
  float: none;
  margin: 0 auto 1.5rem;
}
@media (max-width: 600px) {
  .content-block img.align-portrait { float: none; width: 100%; height: auto; margin: 0 0 1.5rem; }
}

/* ---------- Home hero: full-bleed cream band, same color as the header
   it sits directly under, so the two blend into one continuous band ---------- */
.hero {
  position: relative;
  background: var(--cream);
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 0 6rem;
  text-align: center;
}
/* The wordmark fills the full viewport width; any leftover vertical space
   (since the image keeps its own aspect ratio) is just more cream, same
   as the section background — matches the live site's contain-on-full-width. */
.hero__mark { width: 100%; }
.hero__mark img { width: 100%; height: auto; display: block; }
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 3rem;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero__scroll:hover { color: var(--ink); }

/* ---------- Home bio: dark section, brand mark + text side by side ---------- */
.bio-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  padding: 5rem 1.5rem;
}
.bio-intro__mark { display: flex; justify-content: center; }
.bio-intro__mark img { width: 100%; max-width: 340px; }
.bio-intro__text { max-width: 460px; }
.bio-intro__text p { font-size: 1.1rem; color: var(--text); }
@media (max-width: 760px) {
  .bio-intro { grid-template-columns: 1fr; text-align: center; }
  .bio-intro__text { max-width: 100%; margin: 0 auto; }
}

.home-photo { padding: 0 0 4rem; }
.home-photo img { width: 100%; border-radius: 4px; }

.home-events {
  padding: 1rem 0 5rem;
  max-width: 820px;
}
.home-events h4 { text-align: center; margin-bottom: 2rem; }
.home-events .events-empty { text-align: center; }
.home-events .event-row:last-child { border-bottom: none; }

/* ---------- Musician / équipe tile grid ---------- */
.tile-grid {
  /* The live site places these by hand, 2 fixed 300px tiles per Elementor
     row — on a wide screen that leaves huge empty gutters either side.
     Keeping the same generous ~300px photo size but letting it reflow
     (3 cols on wide desktop, 2 tablet, 1 mobile) reads cleaner. Flexbox
     (not grid) so a short trailing row centers instead of hugging the left. */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem 0 4rem;
}
.tile {
  position: relative;
  display: block;
  flex: 1 1 280px;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-raised);
}
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.tile__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.25rem 1rem 1rem;
  background: linear-gradient(180deg, rgba(16,16,16,0) 0%, rgba(16,16,16,0.92) 75%);
  transform: translateY(12px);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.tile__caption h3 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--cream);
}
.tile__caption p {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tile:hover img, .tile:focus-visible img {
  transform: scale(1.06);
}
.tile:hover .tile__caption, .tile:focus-visible .tile__caption {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Bio page ---------- */
.content-block a[href^="/biographie-"] { display: none; } /* legacy self-links not needed */

/* ---------- Events archive ---------- */
.events-section { padding: 2rem 0 4rem; }
.events-section h2 {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}
.events-empty { color: var(--text-muted); padding-bottom: 2rem; }
.events-month {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 2.5rem 0 1rem;
}
.event-row {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem 0 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.event-row__date {
  flex: 0 0 52px;
  height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border-radius: 3px;
  font-family: var(--font-heading);
}
.event-row__date .day { display: block; font-size: 1.35rem; font-weight: 700; line-height: 1; }
.event-row__date .month { display: block; font-size: 0.7rem; text-transform: uppercase; margin-top: 0.15rem; }
.event-row__body { flex: 1; min-width: 0; }
.event-row__body h3 { margin: 0 0 0.3rem; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.02em; }
.event-row__body h3 a { color: var(--cream); }
.event-row__body h3 a:hover { color: var(--accent-light); }
.event-row__meta { color: #9a9a9a; font-size: 0.88rem; }
.event-row__link {
  flex: 0 0 auto;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #191919;
  background: #ededed;
  border-radius: 3px;
  padding: 0.6rem 0.9rem;
  white-space: nowrap;
}
.event-row__link:hover { background: var(--accent-light); color: #fff; }
@media (max-width: 560px) {
  .event-row { flex-wrap: wrap; }
  .event-row__link { flex-basis: 100%; text-align: center; margin-top: 0.75rem; }
}

/* ---------- Single event ---------- */
.event-single { padding: 3rem 0 4rem; }
.event-single__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.event-single__meta dt { color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.25rem; }
.event-single__meta dd { margin: 0; color: var(--cream); font-family: var(--font-heading); }
.event-single__expired { display: block; color: #ff6a5c; font-size: 0.8rem; font-weight: 600; margin-top: 0.2rem; }
/* Live site's event posters are always ~420-500px wide (explicit width/height
   attributes baked into the original WP content, not full-size) — cap here
   rather than letting them fill the content column. */
.event-single__image { margin-bottom: 2rem; }
.event-single__image img { max-width: 500px; border-radius: 4px; }
.event-single__location { margin-bottom: 2rem; }

/* ---------- Répertoire: collapsible accordion (matches the live site's
   Essential-Addons "Advanced Accordion" widget — 3 categories, first one
   open by default, the other two collapsed). Uses native <details>/<summary>
   for accessibility/no-JS rather than reimplementing the widget's JS. ---------- */
.accordion { padding-bottom: 4rem; }
.accordion__item {
  background: var(--bg-raised);
  border-radius: 6px;
  overflow: hidden;
}
.accordion__item + .accordion__item { margin-top: 1rem; }
.accordion__header {
  background: var(--bg-raised-2);
  color: var(--cream);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.accordion__header::-webkit-details-marker { display: none; }
.accordion__header::before {
  content: "\276F";
  display: inline-block;
  margin-right: 0.75rem;
  font-size: 0.8rem;
  color: var(--accent-light);
  transition: transform 0.2s ease;
}
.accordion__item[open] > .accordion__header::before { transform: rotate(90deg); }
.accordion__content { padding: 1.5rem 1.25rem 0.5rem; }
.accordion__content hr { border: none; border-top: 1px solid var(--border); margin: 1.25rem 0; }
.accordion__content p { margin: 0; }
.accordion__content .composer { color: #ba665b; }
.accordion__content em { font-style: italic; }
.accordion__content img { max-width: 711px; margin: 1.5rem auto 0; }

/* ---------- Médias / gallery ----------
   Matches the live site's native WP [gallery] output: fixed 4 columns of
   300x169 (16:9) thumbnails on desktop, 1 column full-width on mobile. */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 0.75rem;
  padding: 1.5rem 0 3rem;
}
.gallery img { width: 100%; aspect-ratio: 300 / 169; object-fit: cover; border-radius: 3px; transition: opacity 0.2s ease; cursor: zoom-in; }
.gallery a:hover img { opacity: 0.8; }
/* Event posters: portrait crops. Flexbox (not grid) so a short trailing row
   centers instead of hugging the left, same trick as the musician tiles. */
.gallery--posters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 0;
}
.gallery--posters a { flex: 1 1 200px; max-width: 230px; }
.gallery--posters img { width: 100%; aspect-ratio: 300 / 400; }
.media-embed { margin: 1.5rem 0; }
.media-embed iframe { width: 100%; border: none; border-radius: 4px; }

/* Presse: two columns (RTS émission+chapitres / Blow up article) on desktop */
.presse-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 1rem;
}
@media (max-width: 760px) { .presse-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* The chapter list is pasted custom HTML with hardcoded light colors —
   kept as-is (light boxes on the dark page) to match the live site
   exactly rather than re-theming it. */
.chapter-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.chapter-list li {
  margin-bottom: 6px; padding: 0.6rem 0.75rem;
  background: #f8f8f8; border-radius: 4px; font-size: 0.9rem;
  font-family: Arial, sans-serif;
}
.chapter-list a { color: #333; display: block; }
.chapter-list a:hover { color: var(--accent); }
.chapter-list strong { color: var(--accent); }

/* Lightbox for the médias gallery */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 10, 10, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 4px; }
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-family: var(--font-heading);
  cursor: pointer;
  line-height: 1;
}
.lightbox__close { top: 1.5rem; right: 1.5rem; font-size: 2rem; }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); font-size: 2.5rem; padding: 0.5rem; }
.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { color: var(--accent-light); }

/* ---------- Contact / newsletter ----------
   No card/box backgrounds on the live site — plain on the dark page,
   two columns (Courriel + logo mark / Formulaire de Contact). ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 1rem 0 4rem;
  align-items: start;
}
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.contact-col h5 { color: var(--text-muted); margin-bottom: 0.35rem; display: flex; align-items: center; gap: 0.5rem; }
.contact-col h5 .icon-inline { flex: none; color: var(--accent-light); }
.contact-col__logo { width: 100%; max-width: 285px; margin: 2rem auto 0; }

form.contact-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
form.contact-form label { font-size: 0.85rem; color: var(--text-muted); display: block; margin-bottom: 0.35rem; }
form.contact-form input,
form.contact-form textarea {
  width: 100%;
  background: #fafafa;
  border: 1px solid #ddd;
  color: #666;
  padding: 0.75rem 0.9rem;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
form.contact-form input:focus,
form.contact-form textarea:focus { outline: none; border-color: var(--accent); }
form.contact-form .checkbox { display: flex; align-items: center; gap: 0.5rem; color: var(--text); font-size: 0.9rem; }
form.contact-form .checkbox input { width: auto; }
.button--ghost-white { background: transparent; color: #fff; border-color: #fff; align-self: flex-start; }
.button--ghost-white:hover { background: #fff; color: var(--ink); }

/* ---------- "Pour nous soutenir": full-width section below the grid ---------- */
.soutenir-section { padding: 3rem 0 5rem; }
.soutenir-buttons { text-align: center; }
.soutenir-buttons hr { border: none; border-top: 1px solid var(--border); width: 70px; margin: 1.75rem auto; }
.soutenir-caption { color: var(--text-muted); font-style: italic; font-size: 0.85rem; margin: 0.5rem 0 0; }
.button-gold {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: #f0ad4e;
  border: 1px solid #fff;
  padding: 0.9rem 1.4rem;
}
.button-gold:hover { background: #d99a3f; color: #fff; }
