@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Mulish:wght@300;400;500;600;700&display=swap');

/*
Theme Name: GeneratePress Child
Template: generatepress
*/

body, p, li, td, input, textarea {
  font-family: 'Mulish', sans-serif;
}

:root {
  --ct-header-row-height: 80px;
  --ct-mascotte-slot: 120px;
}

h1, h2, h3, h4, h5, h6,
.tab-btn, .film-ics-btn, button,
.main-navigation a, label {
  font-family: 'Josefin Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}

/* Global spacing */
.site-content {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  margin-top: 0;
}

.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header {
  margin-top: 16px !important;
  margin-bottom: 16px !important;
}

.separate-containers .inside-article {
  padding: 24px !important;
}

@media (max-width: 768px) {
  .site-content {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
  .separate-containers .inside-article {
    padding: 18px !important;
  }
}

/* ===== HEADER – DESKTOP ===== */
.site-header {
  background-color: #fff9df !important;
  border-bottom: 1px solid #e8e0c0;
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: visible !important;
}

.site-header .inside-header {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px;
  height: var(--ct-header-row-height, 80px);
  padding: 0 16px !important;
  overflow: visible !important;
}

.logo-nav-group {
  display: flex !important;
  align-items: center !important;
  gap: 24px;
  justify-content: flex-start !important;
  flex: 0 1 auto !important;
  width: auto !important;
  overflow: visible;
}

/* Mascot – hybrid overlap (desktop only) */
.header-mascotte {
  height: 100px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  margin-top: 30px;
  margin-bottom: -20px;
  align-self: flex-start;
}

/* Volunteer button – colors controlled by wp_head */
.benevole-btn {
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 14px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff !important;
}

/* Clean up GeneratePress conflicts */
.main-navigation .inside-navigation {
  justify-content: flex-start !important;
}
.main-navigation .main-nav ul {
  margin: 0 !important;
}
.site-header .site-logo {
  margin: 0 !important;
}

/* Hide any leftover .header-cta-grid */
.header-cta-grid {
  display: none !important;
}

/* ===== MOBILE HEADER & FIXED OVERLAY MENU (max-width: 768px) ===== */
@media (max-width: 768px) {
  /* Hide mascot */
  .header-mascotte {
    display: none !important;
  }

  /* Center logo */
  .site-header .inside-header {
    justify-content: space-between !important;
    position: relative;
  }

  .site-header .site-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
  }

  /* Custom hamburger button – on the right */
  .custom-menu-toggle {
    display: block !important;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    padding: 5px 10px;
    z-index: 100;
    position: relative;
    order: 1;
    margin: 0;
    line-height: 1;
    color: #232323 !important;
    align-self: center;
  }

  /* Hide the original GeneratePress hamburger and menu bar items */
  .menu-toggle, .main-navigation .menu-bar-items {
    display: none !important;
  }

  /* Fixed overlay menu – starts hidden, becomes visible when .toggled */
  .main-navigation .main-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: #fff9df !important;
    z-index: 9999 !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transition: visibility 0.3s, opacity 0.3s ease;
    overflow-y: auto;
    padding-top: 80px;
  }

  .main-navigation.toggled .main-nav {
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Menu items – vertical, centered, tight */
  .main-navigation.toggled .main-nav ul {
    flex-direction: column !important;
    gap: 4px !important;
    padding: 20px !important;
    margin: 0 !important;
  }

  .main-navigation.toggled .main-nav ul li {
    width: 100%;
    text-align: center;
    margin: 0 !important;
  }

  .main-navigation.toggled .main-nav ul li a {
    font-size: 18px;
    padding: 10px;
    display: block;
    color: #232323 !important;
  }

  /* Volunteer button hidden on mobile */
  .benevole-btn {
    display: none !important;
  }
}

/* ===== DESKTOP OVERRIDES (min-width: 769px) – ensures no custom burger ===== */
@media (min-width: 769px) {
  /* Hide custom hamburger on desktop */
  .custom-menu-toggle {
    display: none !important;
  }
  /* Ensure original navigation is visible */
  .main-navigation .main-nav {
    display: block !important;
    position: static !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    padding-top: 0 !important;
    overflow: visible !important;
    transform: none !important;
  }
  .main-navigation .main-nav ul {
    flex-direction: row !important;
    gap: 24px !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .main-navigation .main-nav ul li {
    width: auto !important;
    text-align: left !important;
  }
  .main-navigation.toggled .main-nav {
    display: block !important;
  }
  .menu-toggle {
    display: none !important;
  }
  /* Ensure film grids use multi-column layout */
  .films-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  }
  .cinetransat-accueil .home-week-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* ===== FILM CARDS – 2:3 ASPECT RATIO (does not affect hero) ===== */
.film-card-poster {
    aspect-ratio: 2 / 3 !important;
    width: 100% !important;
    height: auto !important;
    background: #f0f0f0;
    position: relative;
}

.film-card-poster img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Fixed cancelled overlay – centered on poster */
.film-annule-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background: rgba(192, 57, 43, 0.9);
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 15;
    pointer-events: none;
    font-family: 'Josefin Sans', sans-serif;
}

/* ===== FILM DETAIL PAGE ===== */
.film-detail-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.film-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

.film-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.film-card-section {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.film-card-section h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.film-card-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.film-card-section--blue {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.film-card-section--gray {
  background: #f8f8f8;
}

.film-card-section p {
  color: #555;
  line-height: 1.8;
}

.film-acteurs {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.film-tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.film-tech-label {
  font-size: 13px;
  color: #888;
  margin-bottom: 4px;
}

.film-tech-value {
  font-weight: 600;
  color: #1a1a1a;
}

.film-soustitres {
  display: block;
  font-size: 12px;
  color: #888;
  font-weight: 400;
  margin-top: 2px;
}

.film-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 100px;
}

.film-sidebar-poster {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.film-sidebar-poster img {
  width: 100%;
  height: auto;
  display: block;
}

.film-seance-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 8px;
}

.film-seance-label {
  font-size: 13px;
  color: #888;
}

.film-seance-value {
  font-weight: 600;
  color: #1a1a1a;
}

.film-seance-actions {
  margin-top: 16px;
}

.film-infos-pratiques {
  list-style: none;
  padding: 0;
  margin: 0;
}

.film-infos-pratiques li {
  padding: 6px 0;
  color: #555;
  font-size: 14px;
  border-bottom: 1px solid #eee;
}

.film-infos-pratiques li::before {
  content: "• ";
  color: #009d8c;
}

.film-trailer-wrap {
  border-radius: 8px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .film-layout {
    grid-template-columns: 1fr;
  }
  .film-sidebar {
    position: static;
    order: -1;
  }
  .film-tech-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== PROGRAMME PAGE ===== */
.programme-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.programme-header {
  margin-bottom: 40px;
}

.programme-header h1 {
  color: #009d8c;
  margin-bottom: 8px;
}

.programme-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  border-bottom: 2px solid #eee;
  padding-bottom: 0;
}

.tab-btn {
  padding: 10px 20px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 15px;
  color: #555;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.tab-btn.active {
  color: #009d8c;
  border-bottom-color: #009d8c;
  font-weight: 600;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.week-label {
  color: #009d8c;
  margin-bottom: 20px;
}

.programme-week {
  margin-bottom: 48px;
}

.films-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.film-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: box-shadow 0.2s;
}

.film-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.15); }

.film-card-link { text-decoration: none; color: inherit; display: block; }

.film-card-poster {
  position: relative;
  height: auto; /* aspect-ratio will control */
  overflow: hidden;
}

/* Badges on programme cards (also reused on homepage) */
.film-card-badges-top {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  max-width: calc(100% - 16px);
}

.badge-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

/* Status badge */
.film-statut {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Josefin Sans', sans-serif;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.film-statut--upcoming {
  background: #e8f4fd;
  color: #1a6fa8;
}

.film-statut--past {
  background: #f0f0f0;
  color: #555;
}

.film-statut--cancelled {
  background: #fdecea;
  color: #c0392b;
}

.film-statut--replay {
  background: #eafaf1;
  color: #1e8449;
}

/* Partner & short film badges */
.film-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  font-family: 'Josefin Sans', sans-serif;
  color: #fff;
  white-space: nowrap;
}

.film-badge--court {
  background: #e67e22;
}

.film-badge--partenaire {
  background: #8e44ad;
}

/* Remove absolute positioning from inside badges */
.film-card-badges-top .film-statut,
.film-card-badges-top .film-badge {
  position: static !important;
  margin: 0 !important;
}

.film-badges {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.film-card-body { padding: 16px; }

.film-card-body h3 {
  font-size: 16px;
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.film-card-date {
  background: #009d8c10;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 10px;
}

.film-card-date-day {
  display: block;
  color: #009d8c;
  font-weight: 600;
  font-size: 14px;
}

.film-card-date-time {
  display: block;
  color: #009d8c;
  font-size: 13px;
  margin-top: 2px;
}

.film-card-langue {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.film-card-synopsis {
  font-size: 13px;
  color: #555;
  margin-bottom: 10px;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.film-card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}

.film-card-more {
  font-size: 13px;
  color: #009d8c;
  font-weight: 500;
}

.film-card-ics {
  padding: 0 16px 16px;
}

.film-ics-btn--small {
  display: block;
  text-align: center;
  padding: 8px;
  font-size: 13px;
  background: transparent;
  border-radius: 4px;
  text-decoration: none;
}

/* ===== HOMEPAGE ===== */
.home-section {
  padding: 20px 0 !important;
}

.home-section--gray {
  background: #f9fafb !important;
}

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

.home-section-title {
  color: #009d8c;
  text-align: center;
  margin-bottom: 40px;
}

.prochaine-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.prochaine-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prochaine-info {
  padding: 32px 32px 32px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.prochaine-info h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.prochaine-synopsis {
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}

.prochaine-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
  font-size: 14px;
}

.home-cta {
  text-align: center;
  margin-top: 32px;
}

.home-empty {
  text-align: center;
  padding: 40px 0;
  color: #666;
}

.soirees-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.soiree-card {
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}

.soiree-card:hover { transform: scale(1.05); }

.soiree-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.8rem;
}

.soiree-icon--blue   { background: #dbeafe; }
.soiree-icon--purple { background: #ede9fe; }
.soiree-icon--pink   { background: #fce7f3; }

.soiree-card h3 { margin-bottom: 8px; }
.soiree-card p  { font-size: 14px; color: #666; }

/* ===== FOOTER ===== */
.site-footer {
  background: #1a1a1a;
  color: #aaa;
  margin-top: 60px;
  width: 100%;
  box-sizing: border-box;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 15px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.footer-contact a,
.footer-contact span {
  color: #aaa;
  text-decoration: none;
}

.footer-contact a:hover { color: #fff; }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a {
  color: #aaa;
  text-decoration: none;
  font-size: 14px;
}

.footer-nav a:hover { color: #fff; }

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-social a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
}

/* ===== OTHER PAGES ===== */
.soirees-container, .medias-container, .partenaires-container, .contact-container,
.faq-container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.soirees-header h1, .medias-header h1, .partenaires-header h1, .contact-header h1 {
  color: #009d8c;
  margin-bottom: 12px;
}

.soiree-detail-card {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 40px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  overflow: hidden;
}

@media (max-width: 768px) {
  .soiree-detail-card {
    grid-template-columns: 1fr;
  }
}

.partenaires-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: center;
}

@media (max-width: 768px) {
  .partenaires-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 60px;
}

.faq-item {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eee;
  padding: 28px;
}

.faq-item h2 {
  color: #009d8c;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

/* ===== GLOBAL CONTAINERS ===== */
.film-detail-container, .programme-container, .home-container,
.soirees-container, .medias-container, .partenaires-container,
.contact-container, .faq-container {
  margin: 40px auto;
  padding: 0 20px;
}

/* ===== GLOBAL FONTS & UTILITIES ===== */
body {
  font-family: 'Muli', sans-serif;
}

h1, h2, h3, h4, h5, h6, button, label, .tab-btn, .film-ics-btn {
  font-family: 'Josefin Sans', sans-serif;
}

.home-section--gray {
  background: #f9fafb !important;
}

/* Base button styling – colors controlled by wp_head */
.film-ics-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
  text-align: center;
}

.film-ics-btn, .film-ics-btn--small {
  border-radius: 6px !important;
}

.wpforms-submit, input[type="submit"] {
  border-radius: 6px !important;
  font-family: 'Josefin Sans', sans-serif !important;
  border: none !important;
  padding: 10px 24px !important;
  cursor: pointer !important;
}

.soiree-icon {
  font-size: 2rem;
  line-height: 64px;
}

.page .entry-title, .site-info {
  display: none;
}

/* ===== FILM HERO ===== */
.film-hero {
  position: relative;
  height: 40vh;
  min-height: 250px;
  overflow: hidden;
}

.film-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.film-hero-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.film-hero-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.film-hero-badge {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  font-family: 'Josefin Sans', sans-serif;
}

.film-hero-badge.film-statut--upcoming  { background: #009d8c; }
.film-hero-badge.film-statut--past      { background: #888; }
.film-hero-badge.film-statut--cancelled { background: #c0392b; }
.film-hero-badge.film-statut--replay    { background: #2980b9; }
.film-hero-badge--orange { background: #e67e22; }
.film-hero-badge--purple { background: #8e44ad; }

.film-hero-title {
  color: #fff !important;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: 'Josefin Sans', sans-serif;
}

.film-hero-director {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
}

/* ===== SINGLE FILM PAGE – WIDE LAYOUT ===== */
body.single-film .site-content,
body.single-film .inside-article,
body.single-film .site-main,
body.single-film .grid-container {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
}

body.single-film .film-detail-container {
  max-width: 1400px !important;
  width: 90% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

body.single-film .film-layout {
  gap: 32px !important;
}

@media (min-width: 1200px) {
  body.single-film .film-detail-container {
    max-width: 1400px !important;
    width: auto !important;
  }
}

/* ===== RESPONSIVE ADJUSTMENTS (TABLETS & MOBILE) ===== */
@media (max-width: 900px) {
  .cinetransat-accueil .home-week-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* General layout */
  .home-container, .programme-container, .film-detail-container,
  .soirees-container, .medias-container, .partenaires-container,
  .contact-container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  /* Film grids: single column */
  .films-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  
  /* Programme tabs: scrollable */
  .programme-tabs {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
  .tab-btn {
    display: inline-block;
    float: none;
    font-size: 14px;
    padding: 8px 16px;
  }
  
  .week-label {
    font-size: 1.2rem;
  }
  
  /* Buttons full width */
  .film-ics-btn, .benevole-btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
  
  /* Footer: reduce padding */
  .footer-container {
    padding: 30px 20px 20px;
  }
  
  /* Single film hero: reduce height */
  .film-hero {
    height: 30vh;
    min-height: 200px;
  }
  .film-hero-inner {
    padding: 20px;
  }
  .film-hero-title {
    font-size: 1.8rem;
  }
  
  /* Sidebar on single film becomes static */
  .film-sidebar {
    position: static;
  }
  
  /* ===== HOMEPAGE: Prochaine soirée as a card ===== */
  .prochaine-card {
    display: block !important;
    max-width: 100% !important;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  .prochaine-poster {
    height: 250px;
  }
  .prochaine-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .prochaine-info {
    padding: 16px !important;
  }
  .prochaine-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .prochaine-synopsis {
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .prochaine-meta {
    font-size: 12px;
    margin: 10px 0;
  }
  .prochaine-info .film-ics-btn {
    display: block;
    text-align: center;
    background: transparent !important;
    border: 1px solid #222 !important;
    color: #222 !important;
    margin-top: 12px;
    padding: 8px;
    font-size: 12px;
  }
  
  /* Soirées spéciales grid: single column */
  .soirees-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .cinetransat-accueil .prochaine-card,
  .cinetransat-accueil .prochaine-poster {
    min-height: 0;
  }
  .cinetransat-accueil .prochaine-info {
    padding: 24px;
  }
  .cinetransat-accueil .prochaine-info h3 {
    font-size: 1.7rem;
  }
  .cinetransat-accueil .home-week-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== PARTNER SECTION STYLING ===== */
.film-partenaire {
    margin: 32px 0;
    padding: 24px;
    background: #f9f9f9;
    border-left: 6px solid #009d8c;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.partenaire-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.partenaire-logo {
    max-width: 150px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 8px;
}

.partenaire-card h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
}

.partenaire-description {
    font-style: italic;
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===== GENERATEPRESS OVERRIDES (preserved) ===== */
.site-header {
  background-color: #fff9df !important;
  border-bottom: 1px solid #e8e0c0;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

.site-header .inside-header,
.main-navigation .inside-navigation {
  height: var(--ct-header-row-height);
  min-height: var(--ct-header-row-height);
}

.site-header .inside-header {
  padding-left: 16px;
  padding-right: 16px;
}

.main-navigation a {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #232323 !important;
}

.main-navigation a,
.main-navigation a:visited,
.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation a:active {
  color: #232323 !important;
}

.main-navigation ul li,
.main-navigation ul li a,
.main-navigation ul li:hover > a,
.main-navigation ul li.current-menu-item > a {
  background: transparent !important;
  background-color: transparent !important;
}

.main-navigation ul ul {
  background: #fff9df !important;
}

:root {
  --base-3: transparent !important;
}

.main-navigation ul li a {
  background-color: transparent !important;
}

.main-navigation .inside-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 10px;
  overflow: visible;
}

.main-navigation .inside-navigation .main-nav {
  flex: 0 1 auto;
  min-width: 0;
  margin-left: 16px;
  margin-right: 16px;
}

.site-header .site-logo,
.site-header .custom-logo-link {
  flex: 0 0 auto;
}

.site-header .site-logo img,
.site-header .custom-logo-link img,
.site-header .custom-logo {
  width: auto;
  max-width: 220px;
  max-height: 64px;
  height: auto;
  object-fit: contain;
  flex: 0 0 auto;
}

.main-navigation .main-nav ul {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
}

.main-navigation .main-nav ul li {
  flex: 0 0 auto;
  margin: 0;
}

.main-navigation .main-nav ul li a {
  white-space: nowrap;
}

.main-navigation .main-nav > ul > li > a {
  padding-left: 0;
  padding-right: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: var(--ct-header-row-height);
}

.cinetransat-accueil #primary,
.cinetransat-a-propos #primary {
  float: none;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.cinetransat-accueil .content-area,
.cinetransat-a-propos .content-area {
  margin-left: auto;
  margin-right: auto;
}

.cinetransat-accueil .home-section:first-of-type .home-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cinetransat-accueil .prochaine-card {
  grid-template-columns: 480px 1fr;
  max-width: 1200px;
  min-height: 560px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.cinetransat-accueil .prochaine-poster {
  min-height: 560px;
}

.cinetransat-accueil .prochaine-info {
  padding: 44px 44px 44px 0;
}

.cinetransat-accueil .prochaine-info h3 {
  font-size: 2.4rem;
  margin-bottom: 18px;
}

.cinetransat-accueil .prochaine-synopsis {
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: 24px;
}

.cinetransat-accueil .prochaine-meta {
  font-size: 1rem;
  gap: 10px;
  margin-bottom: 30px;
}

.main-navigation .menu-bar-items {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
}

@media (min-width: 901px) {
  .site-header .inside-header.grid-container {
    max-width: 1400px;
  }
  .site-header .inside-header {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 24px;
    position: relative;
    left: 8px;
  }
  .site-header .inside-header > #site-navigation {
    width: auto;
    flex: 0 1 auto;
    min-width: 0;
  }
  .main-navigation .inside-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
  }
  .main-navigation .inside-navigation .main-nav {
    flex: 0 1 auto;
    margin-left: 0;
    margin-right: 0;
    min-width: 0;
  }
}

@media (max-width: 1024px) {
  .cinetransat-accueil .prochaine-card {
    grid-template-columns: 380px 1fr;
    min-height: 500px;
  }
  .cinetransat-accueil .prochaine-poster {
    min-height: 500px;
  }
  .cinetransat-accueil .prochaine-info {
    padding: 34px 34px 34px 0;
  }
  .cinetransat-accueil .prochaine-info h3 {
    font-size: 2rem;
  }
}

@media (max-width: 900px) {
  :root {
    --ct-header-row-height: 72px;
  }
}

.site-logo {
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.custom-logo-link {
  display: block;
}

.main-navigation .main-nav > ul {
  display: flex !important;
  justify-content: center !important;
  margin: 0 auto !important;
}

.inside-header {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
}

/* Affiches : garantissent le ratio 2:3 et le recadrage focal */
.film-card-poster {
    aspect-ratio: 2 / 3 !important;
    width: 100% !important;
    background: #f0f0f0;
    position: relative;
}
.film-card-poster img,
.film-sidebar-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* sera remplacé par le style inline de Media Focus Point */
}

/* Sidebar poster : même ratio */
.film-sidebar-poster {
    aspect-ratio: 2 / 3;
    width: 100%;
    background: #f0f0f0;
    position: relative;
}