/* =========================================================
   Face to face — feuille de style du site
   Thèmes : body.theme-main (association) / body.theme-records (label)
   ========================================================= */

/* ---------- Variables ---------- */
:root {
  --white: #ffffff;
  --black: #000000;
  --grey: #808080;
  --text-muted: #c9c9c9;
  --brand: #7d1c16;
  --brand-hover: #ae5655;
  --link-hover: #b22727;

  --font-body: 'Outfit', system-ui, sans-serif;
  --fs-base: 16px;
  --fs-small: 14px;
  --radius-sm: 10px;
  --radius-md: 20px;
  --radius-pill: 100px;

  --panel-border: 2px groove var(--brand);
  --header-height: 73px;
}

.theme-records {
  /* Le label partage la charte, seul l'accent change légèrement. */
  --brand: #7d1c16;
  --brand-hover: #b03a2e;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 300;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--brand-hover);
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus-visible { color: var(--white); }

img, video { max-width: 100%; height: auto; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 2000;
  padding: .5rem 1rem;
  background: var(--brand);
  color: var(--white);
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--black);
  border-bottom: 1px solid #1a1a1a;
}

.navbar { padding: .6rem 0; }

.navbar-brand { padding: 0; margin-right: 1rem; }
.logo-image {
  display: block;
  border-radius: var(--radius-sm);
  width: auto;
  height: 53px;
}

.navbar-nav .nav-link {
  color: var(--white);
  font-size: var(--fs-small);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .02em;
  padding: .6rem .75rem;
  border-radius: 5px;
  transition: color .2s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus-visible,
.navbar-nav .nav-link.active { color: var(--brand-hover); }

.navbar-nav .nav-link-accent { color: var(--brand-hover); }
.navbar-nav .nav-link-accent:hover { color: #d3d3d3; }

.dropdown-menu {
  background: var(--brand);
  border: 0;
  border-radius: var(--radius-sm);
  margin-top: 0;
}
.dropdown-item {
  color: var(--white);
  font-size: var(--fs-small);
  padding: .5rem 1rem;
}
.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active,
.dropdown-item:active { background: rgba(0, 0, 0, .35); color: var(--white); }

@media (min-width: 992px) {
  .nav-item.dropdown:hover > .dropdown-menu { display: block; }
  /* Zone tampon invisible : le survol n'est pas perdu entre l'onglet et la liste. */
  .nav-item.dropdown > .dropdown-menu::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: .75rem;
  }
}

/* Burger animé */
.navbar-toggler {
  border: 0;
  padding: 0;
  width: 30px;
  height: 35px;
  box-shadow: none !important;
}
.navbar-toggler-icon {
  position: relative;
  display: block;
  width: 30px;
  height: 2px;
  background: var(--white);
  transition: background 10ms 300ms ease;
}
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--white);
  transition: top 300ms 350ms ease, transform 300ms 50ms ease;
}
.navbar-toggler-icon::before { top: -8px; }
.navbar-toggler-icon::after { top: 8px; }
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon { background: transparent; }
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before,
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
  top: 0;
  transition: top 300ms 50ms ease, transform 300ms 350ms ease;
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before { transform: rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after { transform: rotate(-45deg); }

@media (max-width: 991.98px) {
  .navbar-collapse { padding-bottom: 1rem; }
  .dropdown-menu { background: #1a1a1a; }
}

/* ---------- Layout ---------- */
.site-main { flex: 1 0 auto; }

.page {
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}

.panel {
  position: relative;
  padding: 1rem;
  border: var(--panel-border);
  border-radius: var(--radius-sm);
  background: url('../../images/fond_site.jpg') center / cover no-repeat;
}
.panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(0, 0, 0, .45);
  pointer-events: none;
}
.panel > * { position: relative; }

.panel-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-title {
  font-size: 1.5rem;
  margin: 0 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}
.panel-subtitle {
  font-size: 1.15rem;
  margin: 1.25rem 0 .5rem;
}

.info-list { padding-left: 1.2rem; margin-bottom: 1rem; }
.info-list li { margin-bottom: .5rem; }

/* Cartes-liens (listes vidéos, concerts, groupes) */
.card-link {
  flex-direction: column;
  gap: .5rem;
  color: var(--white);
  text-align: center;
  transition: border-color .2s, transform .2s;
}
.card-link:hover,
.card-link:focus-visible { color: var(--white); border-color: var(--brand-hover); transform: translateY(-2px); }
.card-link img { width: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.card-link-title { display: block; font-weight: 700; margin-top: .5rem; }
.card-link-meta { display: block; font-size: var(--fs-small); color: var(--text-muted); }

/* ---------- Boutons ---------- */
.custom-btn,
.custom-border-btn {
  display: inline-block;
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  font-weight: 700;
  padding: .6rem 1.4rem;
  transition: background .2s, color .2s, border-color .2s;
}
.custom-btn {
  background: var(--brand);
  border: 2px solid transparent;
  color: var(--white);
}
.custom-btn:hover,
.custom-btn:focus-visible { background: var(--brand-hover); color: var(--white); }
.custom-border-btn {
  background: transparent;
  border: 2px solid var(--brand);
  color: var(--white);
}
.custom-border-btn:hover,
.custom-border-btn:focus-visible { background: var(--brand-hover); border-color: transparent; color: var(--white); }

.edition-switch {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}

/* ---------- Hero (accueil) ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height) - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--black);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--black); /* évite un flash clair avant la première image */
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
}
.hero-content {
  position: relative;
  max-width: 720px;
  width: 92%;
  padding: 2rem;
  text-align: center;
  background: rgba(0, 0, 0, .35);
  border-radius: var(--radius-sm);
}
.hero-content-wide { max-width: 900px; }
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: var(--fs-small);
  margin-bottom: .5rem;
}
.hero-title { font-size: clamp(1.8rem, 5vw, 2.9rem); margin-bottom: .75rem; }
.hero-subtitle { font-size: 1.15rem; margin-bottom: 1.5rem; }
.hero-logo { max-height: 120px; margin-bottom: 1rem; }

/* ---------- Réseaux sociaux ---------- */
.social-icon { gap: .5rem; }
.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  font-size: 1rem;
  transition: background .2s;
}
.social-icon-link:hover,
.social-icon-link:focus-visible { background: var(--grey); color: var(--white); }
.social-icon-link img { width: 18px; height: 18px; object-fit: contain; }
.social-icon-link-inline { margin: 0 .35rem; vertical-align: middle; }

.social-row { margin-top: 1rem; }
.social-row-intro { margin-bottom: .5rem; font-style: italic; }
.social-row-label { margin-right: .35rem; font-size: var(--fs-small); }

.site-footer {
  background: var(--brand);
  padding: 1rem 0;
  margin-top: auto;
}
.site-footer-name { font-weight: 700; }
.site-footer .social-icon-link { background: rgba(0, 0, 0, .35); }

/* ---------- Contact / crédits ---------- */
.contact-list dt { font-weight: 700; margin-top: .75rem; }
.contact-list dd { margin: 0 0 .25rem; }
.mail-link-icon::after {
  font-family: 'bootstrap-icons';
  content: '\F32F'; /* bi-envelope */
  margin-left: .5rem;
  color: var(--brand-hover);
}
.credits li { margin-bottom: .5rem; }

/* ---------- Galerie + visionneuse ---------- */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.gallery-thumb {
  padding: 0;
  border: 0;
  background: none;
  width: 170px;
  height: 250px;
  overflow: hidden;
  border-radius: 4px;
  cursor: zoom-in;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s;
}
.gallery-thumb:hover img,
.gallery-thumb:focus-visible img { transform: scale(1.04); }

.lightbox {
  position: fixed; /* prime sur .panel > * { position: relative } */
  inset: 0;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
}
.lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  display: block;
  border-radius: 4px;
}
.lightbox-close {
  position: fixed;
  top: .75rem;
  right: 1rem;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Line-up ---------- */
.band-list { margin: 0; }
.band {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  gap: 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.band:last-child { border-bottom: 0; }
.band-image img {
  width: 100%;
  border-radius: var(--radius-sm);
}
.band-name { font-size: 1.25rem; margin: 0 0 .5rem; }
.band-body p { font-style: italic; }
.band-embed { margin-top: .75rem; }
.band-embed-video { max-width: 420px; }

@media (max-width: 767.98px) {
  .band { grid-template-columns: 1fr; gap: .75rem; }
}

/* ---------- Concerts ---------- */
.concert-date { font-weight: 700; }
.ticket-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.venue { margin-top: 1rem; }
.venue-address { margin-bottom: .5rem; }

/* ---------- Interviews ---------- */
.interview dt { font-weight: 700; margin-top: .75rem; }
.interview dd { margin: 0; }

/* ---------- Embeds ---------- */
.embed-video iframe { border: 0; border-radius: 4px; }
.embed-map iframe { border: 0; border-radius: var(--radius-sm); }
.embed-map { max-width: 480px; }
.embed-bandcamp {
  border: 0;
  width: 100%;
  height: 42px;
}
.embed-bandcamp-large {
  border: 0;
  width: 100%;
  max-width: 350px;
  height: 470px;
}
.embed-helloasso,
.embed-reelax {
  display: block;
  width: 100%;
  border: 0;
  background: var(--white);
  border-radius: var(--radius-sm);
}
.embed-helloasso { height: 750px; }
.embed-reelax { height: 600px; }

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