@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,900;1,400;1,600;1,700&family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --cream: #EAE6DF;
  --cream-dark: #ded1b2;
  --navy: #1c2534;
  --navy-light: #2a3549;
  --red: #a4262c;
  --red-dark: #7e1c21;
  --gold: #c9a84c;
  --ink: #23201a;
  --ink-soft: #55503f;
  --border: #cbbb92;
  --white: #fffdf8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #000;
  color: var(--ink);
  font-family: 'Inter', Arial, sans-serif;
  line-height: 1.5;
}

.site-frame {
  max-width: 1240px;
  width: calc(100% - 10px);
  margin: 0 auto;
  background: var(--cream);
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Le bandeau (logo, menu, hero) va bord à bord avec le cadre : pas de marge interne */
.topbar .container,
.mainnav .container,
.hero .container {
  padding-left: 0;
  padding-right: 0;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; margin: 0 0 .4em; }

/* ---- Topbar ---- */
.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 16px 0;
}
.logo-block { display: block; flex: 1; }
.logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.reel-icon { width: 40px; height: 40px; flex-shrink: 0; }
.logo-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: 2.35rem;
  line-height: 1.05;
  color: var(--navy);
}
.topbar .logo-affiche { color: var(--red); }
.logo-subtitle {
  display: block;
  font-size: .64rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 4px;
}
.topbar-tagline {
  flex: 1;
  text-align: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--ink);
  padding-top: 8px;
}
.partner-block { flex: 1; text-align: right; }
.partner-badge {
  padding: 8px 14px;
}
.partner-badge-img { display: block; max-width: 220px; height: auto; margin-left: auto; }
.partner-cta {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 6px;
}
.partner-cta:hover { color: var(--red); }
.partner-cta span { color: var(--red); }

/* ---- Nav ---- */
.mainnav { background: var(--navy); }
.mainnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navlinks {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.navlinks a {
  display: block;
  padding: 14px 16px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #d8dbe3;
  border-bottom: 3px solid transparent;
}
.nav-blink {
  color: var(--red) !important;
  animation: nav-blink-anim 1s steps(1) infinite;
}
@keyframes nav-blink-anim {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: .25; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-blink { animation: none; }
}
.navlinks a:hover, .navlinks a.active {
  color: #fff;
  border-bottom-color: var(--red);
  background: var(--navy-light);
}
.navsearch { padding: 14px 18px; color: #d8dbe3; }
.navsearch:hover { color: #fff; }

/* ---- Hero ---- */
.hero {
  position: relative;
  background-color: var(--navy);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  color: #fff;
  overflow: hidden;
  min-height: 430px;
  display: flex;
  align-items: flex-start;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 30px;
  align-items: start;
  padding: 18px 0 56px;
  width: 100%;
}
.hero-inner-single { grid-template-columns: 1fr; }
.hero h1 {
  font-size: 2.6rem;
  line-height: 1.1;
  color: #fff;
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p { color: #c6cbd6; font-size: 1.05rem; max-width: 46ch; }
.hero-collage {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
.hero-collage img {
  height: 300px;
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  object-fit: cover;
}
.hero-collage img:nth-child(2) { transform: translateY(-24px); }
.hero-collage img:nth-child(3) { transform: translateY(10px); }

/* ---- Search panel ---- */
.searchpanel {
  background: #E8E5E1;
  border: none;
  border-radius: 10px;
  margin: -46px auto 40px;
  max-width: 1160px;
  padding: 26px 30px 28px;
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 40px rgba(20,20,10,.12);
}
.searchpanel h2 {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  margin-bottom: 18px;
}
.searchpanel h2 .searchpanel-title { text-transform: uppercase; letter-spacing: .03em; }
.searchpanel h2 .hint { margin-left: auto; font-family: 'Inter'; font-weight: 400; font-size: .78rem; color: var(--ink-soft); }
.search-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 20px;
}
.field-hidden { display: none; }
.search-grid.row5 {
  grid-template-columns: repeat(5, 1fr);
  margin-top: 16px;
}
.field label { display: block; font-size: .8rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ABA9A7;
  border-radius: 6px;
  background: #FDFDFC;
  font-size: .9rem;
  font-family: inherit;
  color: var(--ink);
}
.field select:disabled { color: #a39d8a; cursor: not-allowed; opacity: .7; }
.search-actions { margin-top: 20px; display: flex; justify-content: center; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: .88rem;
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { background: var(--cream-dark); color: var(--ink-soft); }
.btn-ghost:hover { background: var(--border); }
.search-actions .btn { text-transform: uppercase; letter-spacing: .03em; }

/* ---- Section titles ---- */
.section-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 46px 0 20px;
}
.section-title .star { color: var(--red); }
.section-title h2 { font-size: 1.4rem; color: var(--navy); margin: 0; }
.section-title .more { margin-left: auto; font-size: .82rem; font-weight: 600; color: var(--ink); }

/* ---- Poster grid ---- */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.poster-card { display: block; }
.poster-thumb {
  aspect-ratio: 3/4;
  background: #ddd;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(20,20,10,.15);
  margin-bottom: 10px;
  position: relative;
}
.poster-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.poster-card:hover .poster-thumb img { transform: scale(1.04); }
.poster-title { font-weight: 700; font-size: .88rem; color: var(--ink); }
.poster-meta { font-size: .78rem; color: var(--ink-soft); }
.poster-card-centered .poster-title,
.poster-card-centered .poster-meta { text-align: center; }

/* ---- Two-col band (poster grid + side box) ---- */
.featured-band {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 34px;
  align-items: start;
}

.storybox { background: var(--white); border: none; border-radius: 10px; padding: 26px; padding-top: 46px; }
.featured-col { background: var(--white); border-radius: 10px; padding: 0 26px 26px; }
.storybox-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.storybox-head .chair-img { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.storybox h3 { color: var(--navy); font-style: italic; margin: 0; }
.storybox p { color: var(--ink-soft); font-size: .92rem; }
.storybox-cta {
  margin-top: 18px;
  background: var(--cream);
  border: 1px dashed var(--gold);
  border-radius: 8px;
  padding: 16px;
}
.storybox-cta .label { font-weight: 700; font-size: .82rem; color: var(--navy); }
.storybox-cta .brand { color: var(--red); font-family: 'Playfair Display', serif; font-weight: 900; }
.storybox-cta .fine { font-size: .74rem; color: var(--ink-soft); margin-top: 6px; }
.storybox-cta a.go { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 700; color: var(--red); font-size: .85rem; }

/* ---- Theme grid ---- */
.theme-band {
  display: grid;
  grid-template-columns: 2.3fr 1.4fr;
  gap: 24px;
  margin-top: 10px;
}
.theme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.theme-card {
  background: var(--white);
  border: none;
  border-radius: 0;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.theme-card-plain { border: none; border-radius: 0; background: #F7F5F1; }
.theme-card .icon { font-size: 1.6rem; margin-bottom: 8px; display: block; }
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--cream-dark);
  color: var(--navy);
  margin-bottom: 10px;
}
.icon-badge svg { width: 22px; height: 22px; }
.theme-icon-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: #EAE6DD;
  margin: 0 auto 10px;
  overflow: hidden;
}
.theme-icon-img { width: 40px; height: 40px; object-fit: contain; display: block; }
.theme-card strong { display: block; font-size: .92rem; color: var(--navy); }
.theme-card span { font-size: .78rem; color: var(--ink-soft); }
.uppercase-title { text-transform: uppercase; letter-spacing: .03em; }
.theme-quote {
  background: linear-gradient(0deg, rgba(10,14,22,.75) 0%, rgba(10,14,22,.35) 60%), url('../img/theme-quote-bg.png') center/cover, var(--navy);
  color: #fff;
  border-radius: 10px;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-height: 200px;
}
.theme-quote h3 { color: #fff; font-size: 1.3rem; }
.theme-quote p { color: #c6cbd6; font-size: .88rem; }

/* ---- Bottom quote banner ---- */
.quoteband {
  background: var(--navy);
  color: #fff;
  margin-top: 50px;
}
.quoteband-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
}
.quote-block {
  background: linear-gradient(90deg, rgba(10,14,22,.72) 0%, rgba(10,14,22,.45) 100%), url('../img/quote-bg.png') center/cover no-repeat;
  padding: 46px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.quoteband blockquote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.5rem;
  margin: 0;
}
.quoteband cite { display: block; margin-top: 10px; color: var(--gold); font-style: normal; font-size: .85rem; letter-spacing: .05em; }
.quoteband .about {
  background: url('../img/about-bg.png') left center/cover no-repeat;
  padding: 46px 40px;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.quoteband .about h4 { color: var(--navy); max-width: 70%; }
.quoteband .about p { color: var(--ink-soft); font-size: .9rem; max-width: 70%; }
.quoteband .about a { color: var(--red); font-weight: 700; }

/* ---- Footer ---- */
.sitefooter { background: #131a29; color: #eef0f4; padding: 26px 0; margin-top: 0; }
.footer-inner { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }

.footer-logo { flex-shrink: 0; }
.footer-logo .reel-icon { width: 34px; height: 34px; }
.footer-logo .logo-text {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
}

.footer-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  font-size: .82rem;
  color: #eef0f4;
}
.footer-links li.sep { color: #5b6478; }
.footer-links a { color: #eef0f4; }
.footer-links a:hover { color: #fff; }

.footer-tag {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.footer-tag span {
  font-style: italic;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: #fff;
}
.footer-tag i {
  display: block;
  width: 36px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
}

.footer-partner { text-align: right; flex-shrink: 0; }
.footer-partner .fp-label {
  font-size: .68rem;
  letter-spacing: .04em;
  color: #9aa2b4;
}
.footer-partner .fp-brand {
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: .01em;
  font-size: 1.3rem;
  color: #fff;
  line-height: 1.3;
}
.footer-partner .fp-since {
  font-size: .68rem;
  letter-spacing: .04em;
  color: #9aa2b4;
}

/* ---- Generic page layout ---- */
.page-header {
  background: var(--navy);
  color: #fff;
  padding: 40px 0;
}
.page-header h1 { color: #fff; font-size: 2rem; }
.page-header p { color: #c6cbd6; margin: 0; }
.page-body { padding: 34px 0 60px; }

.filters-bar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: repeat(5, 1fr) auto;
  gap: 14px;
  margin-bottom: 28px;
  align-items: end;
}
.filters-bar .field { margin: 0; }
.filters-bar .btn { padding: 10px 16px; height: 40px; }

.result-count { color: var(--ink-soft); font-size: .88rem; margin-bottom: 16px; }

.az-grid {
  columns: 3;
  column-gap: 30px;
}
.az-grid a { display: block; padding: 6px 0; font-size: .92rem; border-bottom: 1px dotted var(--border); break-inside: avoid; }
.az-grid a span { float: right; color: var(--ink-soft); font-size: .8rem; }
.az-grid a:hover { color: var(--red); }

.chip-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 9px 18px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
}
.chip:hover { border-color: var(--red); color: var(--red); }
.chip .count { color: var(--ink-soft); font-weight: 400; margin-left: 4px; }

/* ---- Detail page ---- */
.detail-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
}
.detail-poster img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(20,20,10,.25);
}
.detail-info h1 { color: var(--navy); font-size: 2rem; }
.detail-meta-table { border-collapse: collapse; margin: 20px 0; }
.detail-meta-table td { padding: 8px 14px 8px 0; vertical-align: top; border-bottom: 1px solid var(--border); }
.detail-meta-table td:first-child { font-weight: 700; color: var(--ink-soft); width: 160px; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }
.detail-actorlist span { display: inline-block; background: var(--cream-dark); padding: 5px 12px; border-radius: 20px; font-size: .82rem; margin: 3px 6px 3px 0; }
.detail-note { background: #fdf3e0; border: 1px solid var(--gold); border-radius: 8px; padding: 12px 16px; font-size: .85rem; color: #6b5217; margin-top: 16px; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 34px; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; border-radius: 6px; border: 1px solid var(--border);
  font-size: .85rem; color: var(--ink);
}
.pagination a:hover { border-color: var(--red); color: var(--red); }
.pagination .current { background: var(--red); color: #fff; border-color: var(--red); }
.pagination .page-arrow { font-weight: 700; }
.pagination .page-arrow.disabled { color: var(--border); cursor: default; }
.pagination .page-ellipsis { border: none; color: var(--ink-soft); min-width: auto; width: 20px; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-soft); }

.anecdote-search { max-width: 760px; margin-bottom: 14px; }
.anecdote-search input { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px; font-size: 1rem; font-family: inherit; background: #fff; }
.anecdote-search input:focus { outline: none; border-color: var(--red); }
.anecdote-list { display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.anecdote-item { background: #fff; border: 1px solid var(--border); border-radius: 8px; }
.anecdote-item[hidden] { display: none; }
.anecdote-item summary { cursor: pointer; padding: 12px 18px; color: var(--navy); font-weight: 600; list-style: none; }
.anecdote-item summary::-webkit-details-marker { display: none; }
.anecdote-item summary::before { content: "▸"; color: var(--red); margin-right: 10px; display: inline-block; transition: transform .15s; }
.anecdote-item[open] summary::before { transform: rotate(90deg); }
.anecdote-item summary:hover { color: var(--red); }
.anecdote-item[open] { box-shadow: 0 8px 20px rgba(20,20,10,.08); }
.anecdote-item .anecdote-video { margin: 4px auto 18px; width: calc(100% - 36px); }
.anecdote-item p { margin: 4px 18px 16px; }
.anecdote-video { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 8px; overflow: hidden; max-width: 640px; margin: 0 auto; }
.anecdote-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.anecdote-link { font-weight: 700; color: var(--red); }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-collage { display: none; }
  .search-grid { grid-template-columns: repeat(2, 1fr); }
  .poster-grid { grid-template-columns: repeat(3, 1fr); }
  .featured-band, .theme-band { grid-template-columns: 1fr; }
  .theme-grid { grid-template-columns: repeat(2, 1fr); }
  .quoteband-inner { grid-template-columns: 1fr; }
  .topbar-inner { flex-wrap: wrap; }
  .topbar-tagline { order: 3; width: 100%; text-align: left; }
  .detail-grid { grid-template-columns: 1fr; }
  .filters-bar { grid-template-columns: repeat(2, 1fr); }
  .az-grid { columns: 2; }
}
@media (max-width: 560px) {
  .poster-grid { grid-template-columns: repeat(2, 1fr); }
  .theme-grid { grid-template-columns: 1fr 1fr; }
  .az-grid { columns: 1; }
}
