/*
Theme Name: BSFF Theme
Theme URI: https://github.com/votre-username/BSFF_theme
Author: Maeli
Author URI: https://maeli.techniques-graphiques.be
Description: Thème simple et clair pour le Brussels Short Film Festival.
Version: 1.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bsff
*/

:root {
  --bg: #000000;
  --surface: #0a0a0a;
  --text: #ffffff;
  --text-muted: #aaaaaa;
  --red: #d40f26;
  --border: rgba(255,255,255,0.15);
  --border-red: #d40f26;
  --max-width: 1200px;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-serif: 'Playfair Display', serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-red {
  color: var(--red);
}

.relative {
  position: relative;
}

/* Header */
.site-header {
  padding: 1.5rem 0;
  position: relative;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav ul, .nav-menu-list {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.3s;
}

.site-nav a:hover {
  color: var(--red);
}

/* Common Section */
.section {
  padding: 3rem 0;
}

/* Typography */
h1, h2, h3, h4, .hero-bssf {
  font-family: var(--font-serif);
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 900;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border: 1px solid transparent;
  font-size: 0.95rem;
  cursor: pointer;
  background: transparent;
  transition: all 0.3s ease;
}

.btn-outline-white {
  border-color: #fff;
  color: #fff;
}
.btn-outline-white:hover {
  background: #fff;
  color: #000;
}

.btn-outline-red {
  border-color: var(--red);
  color: var(--red);
}
.btn-outline-red:hover {
  background: var(--red);
  color: #fff;
}

.btn-outline-white-sm {
  border-color: #fff;
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}
.btn-outline-red-sm {
  border-color: var(--red);
  color: var(--red);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.link-more {
  color: var(--text);
  font-size: 0.9rem;
}
.link-more-red {
  color: var(--red);
  font-size: 0.9rem;
  margin-top: 1rem;
  display: inline-block;
}

/* Search Form */
.search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.search-field {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  transition: border-color 0.3s;
}
.search-field:focus {
  outline: none;
  border-color: var(--red);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hero-simple {
  padding: 2rem 0;
}
.hero-img-full {
  width: 100%;
  height: auto;
  display: block;
}

/* Films Grid */
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2rem;
}

.films-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.film-card {
  background: #000;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color 0.3s ease;
}

.film-card:hover {
  border-color: var(--red);
}

.film-card-img-wrapper {
  position: relative;
}
.film-card-img-wrapper img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
}

.film-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: transparent;
  color: #fff;
  font-size: 0.8rem;
  transition: color 0.3s ease;
}

.film-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.film-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  transition: color 0.3s ease;
}

.film-card:hover h3,
.film-card:hover .film-badge {
  color: var(--red);
}

.film-director {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.film-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.film-card-actions {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
}

.film-link {
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.3s ease;
}
.film-link-white {
  color: #fff;
}
.film-link-red {
  color: var(--red);
}
.film-link:hover {
  color: var(--red);
}

/* Festival */
.festival-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.text-sm {
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.text-sm:hover {
  color: var(--red);
}
.festival-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.overlapping-images {
  position: relative;
  min-height: 500px;
}
.overlapping-images img {
  position: absolute;
  object-fit: cover;
  aspect-ratio: 3/5;
}
.fest-img-top-left {
  top: 0;
  left: 0;
  width: 40%;
  height: auto;
  z-index: 1;
  border: 2px solid #fff;
}
.fest-img-top-right {
  top: 50px;
  right: 0;
  width: 50%;
  height: auto;
  z-index: 1;
  border:2px solid #fff;
}
.fest-img-bottom-center {
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 45%;
  height: auto;
  z-index: 2;
  border: 2px solid var(--red);
}

/* Infos Pratiques */
.infos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.info-column {
  display: flex;
  flex-direction: column;
}
.info-title-box {
  border: 1px solid var(--red);
  padding: 1.5rem 1rem;
  margin-bottom: 2rem;
  text-align: center;
}
.info-title-box h4 {
  font-family: var(--font-sans);
  font-weight: 400;
  margin: 0;
  font-size: 1rem;
}
.info-column p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-align: center;
}

/* Evenements */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.event-box {
  border: 1px solid var(--border-red);
  padding: 2rem;
}
.event-date {
  color: var(--red);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 1rem;
}
.event-box h4 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  transition: color 0.3s ease;
}
.event-box:hover h4 {
  color: var(--red);
}
.event-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Programme Hero overlay */
.hero-overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 900;
  pointer-events: none;
  width: 100%;
}
.overlay-2026 {
  font-size: 8rem;
  line-height: 0.8;
  color: #fff;
}
.overlay-programme {
  font-size: 6rem;
  line-height: 0.8;
  color: #fff;
}

.programme-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}
.filter-btn {
  border: 1px solid var(--border);
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.filter-btn:hover {
  border-color: var(--red);
  color: var(--red);
}
.filter-btn.active {
  border-color: var(--red);
}

.programme-grid {
  margin-bottom: 3rem;
}

.pagination-container .nav-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

/* Single Film */
.single-film-section {
  padding-top: 2rem;
}
.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}
.film-single-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.film-single-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.film-badges-top {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.badge-outline {
  border: 1px solid var(--red);
  color: var(--text);
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
}
.film-title {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
.film-director-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.film-meta-red {
  color: var(--red);
  font-size: 0.85rem;
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.film-description-text {
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 0.95rem;
}
.film-actions {
  display: flex;
  gap: 1rem;
}

/* Similar Films */
.films-similaires h2 {
  font-size: 2.5rem;
}
.similar-grid {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1200px;
}

/* Séances ACF */
.film-seances-section {
  margin-top: 3rem;
}
.seances-title {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.seances-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}
.seance-card {
  border: 1px solid var(--border);
  padding: 1rem;
  border-top: 2px solid var(--red);
  background: #0a0a0a;
}
.seance-date {
  color: var(--red);
  font-size: 0.85rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
}
.seance-heure {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.seance-salle {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.2;
}

.seance-card:hover {
  border-color: var(--red);
}
/* Footer */
.site-footer {
  position: relative;
  margin-top: 4rem;
}
.footer-bg {
  position: relative;
  height: 350px;
  overflow: hidden;
}
.footer-bg::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0) 100%);
}
.footer-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 75%;
}
.footer-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding-bottom: 2rem;
  z-index: 2;
}
.footer-logo-box {
  display: inline-block;
  padding: 1rem;
  margin-bottom: 2rem;
}
.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a:hover {
  color: var(--red);
}

/* --- LIGHTBOX MODAL --- */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox-modal.is-active {
  opacity: 1;
  visibility: visible;
}
.lightbox-modal img {
  max-width: 90%;
  max-height: 90vh;
  border: 2px solid var(--border);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}
.lightbox-modal.is-active img {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  line-height: 1;
}

/* --- ACCORDION FAQ --- */
.faq-accordion {
  margin-top: 0rem;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-muted);
  text-align: center;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question::after {
  content: '+';
  color: var(--red);
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}
.faq-question.is-open::after {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-answer p {
  padding-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 300;
  margin: 0;
}

/* --- JS ANIMATIONS --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- HAMBURGER MENU (ALL SCREENS) --- */
.mobile-menu-toggle {
  display: flex;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 100;
  flex-direction: column;
  justify-content: space-between;
}
.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text);
  transition: all 0.3s ease;
}

.header-right {
  gap: 1rem;
}

.site-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background-color: #000;
  border-left: 1px solid var(--border);
  padding-top: 8rem;
  padding-left: 3rem;
  transition: right 0.4s ease;
  z-index: 99;
}

.site-nav.is-active {
  right: 0;
}

.site-nav ul, .nav-menu-list {
  flex-direction: column;
  gap: 2rem;
}

.site-nav a {
  font-size: 1.2rem;
}

.mobile-menu-toggle.is-active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}
.mobile-menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

@media (max-width: 900px) {
  .hero-container {
    flex-direction: column;
  }
  .films-grid, .festival-layout, .infos-grid, .events-grid, .film-single-layout, .similar-grid {
    grid-template-columns: 1fr;
  }
}

