/*
 Theme Name:   Teatrocomi
 Theme URI:    https://teatrocomi.co
 Description:  Child theme Kadence — design minimaliste inspiré Belvoir, compatible WP-Theatre
 Author:       Teatrocomi
 Template:     kadence
 Version:      1.0.0
 Text Domain:  teatrocomi
*/

/* ============================================================
   VARIABLES & DESIGN TOKENS
   ============================================================ */

:root {
  /* Palette */
  --tc-ivory:     #F7F4EF;
  --tc-charcoal:  #1C1C1C;
  --tc-bordeaux:  #8B1A2E;
  --tc-bordeaux-light: #A8253F;
  --tc-mid-grey:  #6B6B6B;
  --tc-light-grey:#D4CFC8;
  --tc-white:     #FFFFFF;
  --tc-black:     #0A0A0A;

  /* Typography */
  --tc-serif:     'Cormorant Garamond', Georgia, serif;
  --tc-sans:      'DM Sans', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --tc-gap-xs:    0.5rem;
  --tc-gap-sm:    1rem;
  --tc-gap-md:    2rem;
  --tc-gap-lg:    4rem;
  --tc-gap-xl:    8rem;

  /* Layout */
  --tc-max-width: 1280px;
  --tc-nav-height: 68px;

  /* Transitions */
  --tc-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--tc-sans);
  background-color: var(--tc-ivory);
  color: var(--tc-charcoal);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--tc-ease);
}

a:hover { color: var(--tc-bordeaux); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--tc-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.75em;
  color: var(--tc-charcoal);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.2rem; }

p {
  font-family: var(--tc-sans);
  font-size: 1rem;
  color: var(--tc-mid-grey);
  line-height: 1.7;
  margin: 0 0 1em;
}

.tc-overline {
  font-family: var(--tc-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tc-bordeaux);
}

/* ============================================================
   GOOGLE FONTS IMPORT
   ============================================================ */

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

/* ============================================================
   KADENCE OVERRIDES — GLOBAL
   ============================================================ */

.kadence-column,
.wp-block-kadence-column {
  padding: 0;
}

.site-container,
.container,
.wp-site-blocks {
  max-width: var(--tc-max-width);
}

/* Remove Kadence default padding */
.entry-content-wrap,
.single-content {
  padding: 0;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */

#masthead,
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--tc-charcoal);
  height: var(--tc-nav-height);
  display: flex;
  align-items: center;
  transition: background 0.3s var(--tc-ease), box-shadow 0.3s var(--tc-ease);
}

#masthead.scrolled {
  background: rgba(28, 28, 28, 0.97);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

/* Push content below fixed header */
.site-main,
#content {
  padding-top: var(--tc-nav-height);
}

/* Logo */
.site-branding,
.custom-logo-link {
  display: flex;
  align-items: center;
}

.custom-logo {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

.site-title {
  font-family: var(--tc-serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--tc-white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-title a { color: var(--tc-white); }
.site-title a:hover { color: var(--tc-light-grey); }

/* Primary Nav */
.primary-navigation,
.main-navigation {
  margin-left: auto;
}

.primary-navigation ul,
.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0;
  align-items: center;
}

.primary-navigation li,
.main-navigation li {
  position: relative;
}

.primary-navigation a,
.main-navigation a {
  font-family: var(--tc-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  padding: 0.5rem 1.1rem;
  display: block;
  transition: color 0.2s;
}

.primary-navigation a:hover,
.main-navigation a:hover,
.primary-navigation .current-menu-item > a,
.main-navigation .current-menu-item > a {
  color: var(--tc-white);
}

/* CTA nav button */
.nav-cta > a,
.menu-item.nav-cta > a {
  background: var(--tc-bordeaux);
  color: var(--tc-white) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 2px;
  margin-left: 0.5rem;
}

.nav-cta > a:hover,
.menu-item.nav-cta > a:hover {
  background: var(--tc-bordeaux-light);
}

/* Dropdown */
.primary-navigation .sub-menu,
.main-navigation .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--tc-charcoal);
  border-top: 2px solid var(--tc-bordeaux);
  padding: 0.5rem 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s;
  list-style: none;
  margin: 0;
  z-index: 200;
}

.primary-navigation li:hover > .sub-menu,
.main-navigation li:hover > .sub-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.primary-navigation .sub-menu a,
.main-navigation .sub-menu a {
  padding: 0.5rem 1.2rem;
  font-size: 0.75rem;
  white-space: nowrap;
}

/* Mobile toggle */
.menu-toggle,
button.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--tc-white);
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  border-radius: 2px;
  margin-left: auto;
}

/* ============================================================
   HERO — PAGE D'ACCUEIL
   ============================================================ */

.tc-hero {
  position: relative;
  height: calc(100svh - var(--tc-nav-height));
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--tc-charcoal);
}

.tc-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.7;
  transition: opacity 0.5s;
}

.tc-hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(28,28,28,0.85) 0%,
    rgba(28,28,28,0.3) 50%,
    transparent 100%
  );
}

.tc-hero__content {
  position: relative;
  z-index: 2;
  padding: var(--tc-gap-lg) var(--tc-gap-md);
  max-width: var(--tc-max-width);
  margin: 0 auto;
  width: 100%;
}

.tc-hero__overline {
  font-family: var(--tc-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tc-bordeaux-light);
  display: block;
  margin-bottom: 0.75rem;
}

.tc-hero__title {
  font-family: var(--tc-serif);
  font-size: clamp(2.5rem, 6vw, 6rem);
  font-weight: 400;
  color: var(--tc-white);
  margin: 0 0 1rem;
  max-width: 16ch;
  line-height: 1.05;
}

.tc-hero__title em {
  font-style: italic;
  color: var(--tc-light-grey);
}

.tc-hero__meta {
  font-family: var(--tc-sans);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2rem;
  letter-spacing: 0.03em;
}

.tc-hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.tc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--tc-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: 2px;
  transition: all 0.2s var(--tc-ease);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.tc-btn--primary {
  background: var(--tc-bordeaux);
  color: var(--tc-white);
}

.tc-btn--primary:hover {
  background: var(--tc-bordeaux-light);
  color: var(--tc-white);
  transform: translateY(-1px);
}

.tc-btn--outline {
  background: transparent;
  color: var(--tc-white);
  border: 1px solid rgba(255,255,255,0.5);
}

.tc-btn--outline:hover {
  border-color: var(--tc-white);
  background: rgba(255,255,255,0.08);
  color: var(--tc-white);
}

.tc-btn--dark {
  background: var(--tc-charcoal);
  color: var(--tc-white);
}

.tc-btn--dark:hover {
  background: #333;
  color: var(--tc-white);
}

.tc-btn--text {
  background: none;
  color: var(--tc-bordeaux);
  padding-left: 0;
  padding-right: 0;
  letter-spacing: 0.08em;
}

.tc-btn--text::after {
  content: '→';
  transition: transform 0.2s;
}

.tc-btn--text:hover {
  color: var(--tc-bordeaux-light);
}

.tc-btn--text:hover::after {
  transform: translateX(4px);
}

/* ============================================================
   SECTIONS GÉNÉRIQUES
   ============================================================ */

.tc-section {
  padding: var(--tc-gap-lg) var(--tc-gap-md);
  max-width: var(--tc-max-width);
  margin: 0 auto;
}

.tc-section--full {
  padding: var(--tc-gap-lg) 0;
  max-width: none;
}

.tc-section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--tc-gap-md);
  gap: 1rem;
}

.tc-section__title {
  font-family: var(--tc-serif);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--tc-charcoal);
  margin: 0;
}

.tc-divider {
  width: 100%;
  height: 1px;
  background: var(--tc-light-grey);
  margin: var(--tc-gap-lg) 0;
  border: none;
}

/* ============================================================
   GRILLE DE SPECTACLES (WP-THEATRE + custom)
   ============================================================ */

/* Conteneur de la liste */
.wpt_productions_list,
.tc-shows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Carte spectacle */
.wpt_production,
.tc-show-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--tc-white);
  border-radius: 3px;
  overflow: hidden;
  transition: transform 0.3s var(--tc-ease), box-shadow 0.3s var(--tc-ease);
  text-decoration: none;
  color: var(--tc-charcoal);
}

.wpt_production:hover,
.tc-show-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(28,28,28,0.12);
}

/* Image spectacle */
.wpt_production .wp-post-image,
.wpt_production_thumbnail img,
.tc-show-card__image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--tc-ease);
}

.wpt_production:hover .wp-post-image,
.wpt_production:hover .wpt_production_thumbnail img,
.tc-show-card:hover .tc-show-card__image {
  transform: scale(1.03);
}

/* Wrapper image pour overflow hidden */
.wpt_production_thumbnail,
.tc-show-card__thumb {
  overflow: hidden;
  position: relative;
}

/* Badge "Prochainement" / "Limité" */
.tc-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-family: var(--tc-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--tc-bordeaux);
  color: var(--tc-white);
  padding: 0.3rem 0.6rem;
  border-radius: 1px;
  z-index: 2;
}

/* Corps de la carte */
.wpt_production_content,
.tc-show-card__body {
  padding: 1.1rem 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Méta (dates, lieu) */
.wpt_event_startdate,
.wpt_event_enddate,
.wpt_production_dates,
.tc-show-card__dates {
  font-family: var(--tc-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tc-bordeaux);
  margin-bottom: 0.4rem;
  display: block;
}

.wpt_event_venue,
.tc-show-card__venue {
  font-family: var(--tc-sans);
  font-size: 0.72rem;
  color: var(--tc-mid-grey);
  margin-bottom: 0.6rem;
  display: block;
  letter-spacing: 0.04em;
}

/* Titre spectacle dans la carte */
.wpt_production_title,
.tc-show-card__title {
  font-family: var(--tc-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--tc-charcoal);
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.wpt_production_title a,
.tc-show-card__title a {
  color: inherit;
  text-decoration: none;
}

/* Courte description dans la carte */
.wpt_production_excerpt,
.tc-show-card__excerpt {
  font-size: 0.82rem;
  color: var(--tc-mid-grey);
  line-height: 1.55;
  margin: 0 0 1rem;
  flex: 1;
}

/* Lien billet dans la carte */
.wpt_event_tickets a,
.tc-show-card__ticket {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--tc-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tc-bordeaux);
  margin-top: auto;
  transition: gap 0.2s;
}

.wpt_event_tickets a:hover,
.tc-show-card__ticket:hover {
  gap: 0.6rem;
}

.wpt_event_tickets a::after,
.tc-show-card__ticket::after {
  content: '→';
}

/* ============================================================
   PAGE PROGRAMME (WHAT'S ON)
   ============================================================ */

.tc-programme {
  padding-top: calc(var(--tc-nav-height) + 3rem);
  min-height: 80vh;
}

.tc-programme__hero {
  background: var(--tc-charcoal);
  padding: 4rem var(--tc-gap-md) 3rem;
  max-width: 100%;
}

.tc-programme__hero-inner {
  max-width: var(--tc-max-width);
  margin: 0 auto;
}

.tc-programme__hero-overline {
  font-family: var(--tc-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tc-bordeaux-light);
  display: block;
  margin-bottom: 0.75rem;
}

.tc-programme__hero-title {
  font-family: var(--tc-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--tc-white);
  font-weight: 400;
  margin: 0;
  line-height: 1.1;
}

/* Filtres */
.tc-filters {
  background: var(--tc-ivory);
  border-bottom: 1px solid var(--tc-light-grey);
  position: sticky;
  top: var(--tc-nav-height);
  z-index: 50;
}

.tc-filters__inner {
  max-width: var(--tc-max-width);
  margin: 0 auto;
  padding: 0 var(--tc-gap-md);
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.tc-filters__inner::-webkit-scrollbar { display: none; }

.tc-filter-btn {
  font-family: var(--tc-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tc-mid-grey);
  background: none;
  border: none;
  padding: 1.1rem 1.2rem;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}

.tc-filter-btn:hover {
  color: var(--tc-charcoal);
}

.tc-filter-btn.is-active {
  color: var(--tc-bordeaux);
  border-bottom-color: var(--tc-bordeaux);
}

/* Corps du programme */
.tc-programme__content {
  max-width: var(--tc-max-width);
  margin: 0 auto;
  padding: var(--tc-gap-md) var(--tc-gap-md) var(--tc-gap-lg);
}

/* Mise en avant (spectacle "Highlight" en banner) */
.tc-featured-show {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--tc-charcoal);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: var(--tc-gap-md);
  min-height: 340px;
  text-decoration: none;
  color: var(--tc-white);
  transition: opacity 0.2s;
}

.tc-featured-show:hover { opacity: 0.92; }

.tc-featured-show__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.tc-featured-show__body {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.tc-featured-show__overline {
  font-family: var(--tc-sans);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tc-bordeaux-light);
  margin-bottom: 0.75rem;
  display: block;
}

.tc-featured-show__title {
  font-family: var(--tc-serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400;
  color: var(--tc-white);
  margin: 0 0 0.75rem;
  line-height: 1.1;
}

.tc-featured-show__dates {
  font-family: var(--tc-sans);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}

/* ============================================================
   PAGE SPECTACLE (SINGLE PRODUCTION)
   ============================================================ */

.single-wpt_production .site-main,
.single-tc-show .site-main {
  padding-top: 0;
}

/* Bannière hero spectacle */
.tc-show-banner {
  position: relative;
  height: 65vh;
  min-height: 400px;
  background: var(--tc-charcoal);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.tc-show-banner__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.tc-show-banner__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,28,28,0.9) 0%, transparent 60%);
}

.tc-show-banner__content {
  position: relative;
  z-index: 2;
  padding: var(--tc-gap-md);
  max-width: var(--tc-max-width);
  margin: 0 auto;
  width: 100%;
}

.tc-show-banner__overline {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tc-bordeaux-light);
  font-family: var(--tc-sans);
  display: block;
  margin-bottom: 0.5rem;
}

.tc-show-banner__title {
  font-family: var(--tc-serif);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 400;
  color: var(--tc-white);
  margin: 0 0 0.5rem;
  line-height: 1.05;
}

.tc-show-banner__subtitle {
  font-family: var(--tc-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

/* Corps spectacle */
.tc-show-body {
  max-width: var(--tc-max-width);
  margin: 0 auto;
  padding: var(--tc-gap-md) var(--tc-gap-md) var(--tc-gap-lg);
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--tc-gap-md);
  align-items: start;
}

.tc-show-body__description {
  font-family: var(--tc-serif);
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--tc-charcoal);
}

.tc-show-body__description p {
  font-family: var(--tc-serif);
  font-size: 1.1rem;
  color: var(--tc-charcoal);
}

/* Sidebar billet */
.tc-show-sidebar {
  position: sticky;
  top: calc(var(--tc-nav-height) + 1.5rem);
  background: var(--tc-white);
  border-radius: 3px;
  padding: 1.5rem;
  border: 1px solid var(--tc-light-grey);
}

.tc-show-sidebar__section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--tc-light-grey);
}

.tc-show-sidebar__section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.tc-show-sidebar__label {
  font-family: var(--tc-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tc-mid-grey);
  display: block;
  margin-bottom: 0.3rem;
}

.tc-show-sidebar__value {
  font-family: var(--tc-sans);
  font-size: 0.9rem;
  color: var(--tc-charcoal);
  display: block;
}

.tc-show-sidebar .tc-btn {
  width: 100%;
  justify-content: center;
}

/* WP-Theatre events list dans la sidebar */
.wpt_events_list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wpt_events_list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--tc-light-grey);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.wpt_events_list li:last-child { border-bottom: none; }

.wpt_event_date {
  font-size: 0.82rem;
  color: var(--tc-charcoal);
}

.wpt_event_time {
  font-size: 0.78rem;
  color: var(--tc-mid-grey);
}

.wpt_event_tickets a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tc-bordeaux);
  white-space: nowrap;
}

/* ============================================================
   SECTION "À L'AFFICHE" — HOMEPAGE
   ============================================================ */

.tc-upcoming {
  background: var(--tc-white);
  padding: var(--tc-gap-lg) 0;
}

.tc-upcoming__inner {
  max-width: var(--tc-max-width);
  margin: 0 auto;
  padding: 0 var(--tc-gap-md);
}

/* Liste horizontale scrollable sur mobile */
.tc-upcoming__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ============================================================
   SECTION SAISON
   ============================================================ */

.tc-season-promo {
  position: relative;
  overflow: hidden;
  background: var(--tc-charcoal);
}

.tc-season-promo__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.tc-season-promo__content {
  position: relative;
  z-index: 2;
  padding: var(--tc-gap-xl) var(--tc-gap-md);
  max-width: var(--tc-max-width);
  margin: 0 auto;
  text-align: center;
}

.tc-season-promo__title {
  font-family: var(--tc-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--tc-white);
  font-weight: 400;
  margin: 0 0 1rem;
}

.tc-season-promo__text {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  max-width: 50ch;
  margin: 0 auto 2rem;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer,
#colophon {
  background: var(--tc-charcoal);
  color: rgba(255,255,255,0.6);
  padding: var(--tc-gap-lg) var(--tc-gap-md) var(--tc-gap-md);
}

.tc-footer__inner {
  max-width: var(--tc-max-width);
  margin: 0 auto;
}

.tc-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--tc-gap-md);
  padding-bottom: var(--tc-gap-md);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: var(--tc-gap-md);
}

.tc-footer__brand .site-title,
.tc-footer__brand .site-title a {
  color: var(--tc-white);
  font-size: 1.2rem;
}

.tc-footer__tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  margin: 0.75rem 0 0;
}

.tc-footer__heading {
  font-family: var(--tc-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
  display: block;
}

.tc-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tc-footer__links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.tc-footer__links a:hover { color: var(--tc-white); }

/* Réseaux sociaux */
.tc-social-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tc-social-links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.tc-social-links a:hover { color: var(--tc-white); }

/* Bas de footer */
.tc-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.tc-footer__copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  margin: 0;
}

.tc-footer__legal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.tc-footer__legal a {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
}

.tc-footer__legal a:hover { color: rgba(255,255,255,0.7); }

/* Newsletter dans le footer */
.tc-newsletter {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--tc-gap-md);
  margin-top: var(--tc-gap-md);
  display: flex;
  align-items: center;
  gap: var(--tc-gap-md);
  flex-wrap: wrap;
}

.tc-newsletter__label {
  font-family: var(--tc-serif);
  font-size: 1.1rem;
  color: var(--tc-white);
  margin: 0;
  white-space: nowrap;
}

.tc-newsletter__form {
  display: flex;
  gap: 0;
  flex: 1;
  min-width: 240px;
  max-width: 420px;
}

.tc-newsletter__input {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-right: none;
  color: var(--tc-white);
  font-family: var(--tc-sans);
  font-size: 0.85rem;
  padding: 0.7rem 1rem;
  outline: none;
  border-radius: 2px 0 0 2px;
  transition: border-color 0.2s;
}

.tc-newsletter__input::placeholder { color: rgba(255,255,255,0.3); }
.tc-newsletter__input:focus { border-color: rgba(255,255,255,0.4); }

.tc-newsletter__submit {
  background: var(--tc-bordeaux);
  color: var(--tc-white);
  border: none;
  font-family: var(--tc-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.7rem 1.2rem;
  cursor: pointer;
  border-radius: 0 2px 2px 0;
  transition: background 0.2s;
}

.tc-newsletter__submit:hover { background: var(--tc-bordeaux-light); }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.tc-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.tc-text-center { text-align: center; }
.tc-text-right  { text-align: right; }
.tc-mt-lg       { margin-top: var(--tc-gap-lg); }
.tc-mb-md       { margin-bottom: var(--tc-gap-md); }

/* ============================================================
   RESPONSIVE — TABLETTE (≤ 900px)
   ============================================================ */

@media (max-width: 900px) {

  /* Nav */
  .primary-navigation,
  .main-navigation {
    position: fixed;
    top: var(--tc-nav-height);
    left: 0; right: 0; bottom: 0;
    background: var(--tc-charcoal);
    padding: 2rem var(--tc-gap-md);
    transform: translateX(100%);
    transition: transform 0.35s var(--tc-ease);
    overflow-y: auto;
    z-index: 90;
  }

  .primary-navigation.is-open,
  .main-navigation.toggled {
    transform: translateX(0);
  }

  .primary-navigation ul,
  .main-navigation ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .primary-navigation a,
  .main-navigation a {
    font-size: 0.95rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.8);
  }

  .primary-navigation .sub-menu,
  .main-navigation .sub-menu {
    position: static;
    opacity: 1;
    pointer-events: all;
    transform: none;
    background: none;
    border-top: none;
    padding-left: 1rem;
  }

  .menu-toggle { display: block; }

  /* Hero */
  .tc-hero { height: 75svh; }
  .tc-hero__title { font-size: clamp(2rem, 8vw, 3.5rem); }

  /* Featured show */
  .tc-featured-show {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .tc-featured-show__image {
    aspect-ratio: 16/9;
  }

  /* Grid shows */
  .wpt_productions_list,
  .tc-shows-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tc-upcoming__list {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Show body */
  .tc-show-body {
    grid-template-columns: 1fr;
  }

  .tc-show-sidebar {
    position: static;
    order: -1;
  }

  /* Footer */
  .tc-footer__top {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 600px)
   ============================================================ */

@media (max-width: 600px) {

  :root {
    --tc-gap-md: 1.2rem;
    --tc-gap-lg: 2.5rem;
  }

  .tc-section,
  .tc-programme__content,
  .tc-show-body {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Hero */
  .tc-hero { height: 90svh; }
  .tc-hero__actions { flex-direction: column; align-items: flex-start; }
  .tc-hero__content { padding: var(--tc-gap-md) 1rem; }

  /* Filters */
  .tc-filters__inner { padding: 0 1rem; }

  /* Grid shows → 1 colonne */
  .wpt_productions_list,
  .tc-shows-grid,
  .tc-upcoming__list {
    grid-template-columns: 1fr;
  }

  /* Featured show */
  .tc-featured-show__body { padding: 1.5rem 1rem; }

  /* Banner spectacle */
  .tc-show-banner { height: 55svh; }
  .tc-show-banner__content { padding: 1rem; }

  /* Filtres overflow scroll */
  .tc-section__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  /* Footer */
  .tc-footer__top {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .tc-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .tc-newsletter {
    flex-direction: column;
    align-items: flex-start;
  }

  .tc-newsletter__form { max-width: 100%; }

  /* WP-Theatre events list */
  .wpt_events_list li {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   CAROUSEL VERTICAL FULLSCREEN (homepage)
   ============================================================

   Principe : scroll-snap CSS natif.
   Le wrapper .tc-carousel-wrap prend 100svh et scroll en snap.
   Chaque .tc-slide est un panel fullscreen avec image + overlay.
   Navigation : points latéraux (.tc-carousel-dots).

   ============================================================ */

/* Désactiver le scroll global quand le carousel est actif */
body.has-fullscreen-carousel {
  overflow: hidden;
}

/* Wrapper principal — contient tous les slides */
.tc-carousel-wrap {
  position: fixed;
  inset: 0;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  z-index: 0;
}

/* Masquer la scrollbar native */
.tc-carousel-wrap::-webkit-scrollbar { display: none; }
.tc-carousel-wrap { scrollbar-width: none; }

/* ─── Slide individuel ─────────────────────────────────────── */

.tc-slide {
  position: relative;
  height: 100svh;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

/* Image de fond */
.tc-slide__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: opacity 0.6s var(--tc-ease);
  will-change: opacity;
}

/* Dégradé — bas fort, haut léger */
.tc-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,10,0.88) 0%,
    rgba(10,10,10,0.25) 45%,
    rgba(10,10,10,0.1)  100%
  );
}

/* Contenu texte en bas */
.tc-slide__content {
  position: relative;
  z-index: 2;
  padding: 0 var(--tc-gap-md) clamp(3rem, 8vh, 6rem);
  max-width: var(--tc-max-width);
  margin: 0 auto;
  width: 100%;
}

.tc-slide__season {
  font-family: var(--tc-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tc-bordeaux-light);
  display: block;
  margin-bottom: 0.6rem;
}

.tc-slide__title {
  font-family: var(--tc-serif);
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  font-weight: 400;
  color: var(--tc-white);
  margin: 0 0 0.4rem;
  line-height: 1.0;
  max-width: 14ch;
}

.tc-slide__title em {
  font-style: italic;
  color: rgba(255,255,255,0.65);
}

.tc-slide__dates {
  font-family: var(--tc-sans);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
  margin-bottom: 1.8rem;
  display: block;
}

.tc-slide__actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* ─── Navigation par points (côté droit) ──────────────────── */

.tc-carousel-dots {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tc-carousel-dots li button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
  display: block;
}

.tc-carousel-dots li button:hover,
.tc-carousel-dots li.is-active button {
  background: var(--tc-white);
  transform: scale(1.35);
}

/* ─── Indicateur de scroll ─────────────────────────────────── */

.tc-scroll-hint {
  position: fixed;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 1;
  transition: opacity 0.4s;
}

.tc-scroll-hint.is-hidden { opacity: 0; pointer-events: none; }

.tc-scroll-hint__line {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.4);
  position: relative;
  overflow: hidden;
}

.tc-scroll-hint__line::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 50%;
  background: var(--tc-white);
  animation: tc-scroll-line 1.6s ease-in-out infinite;
}

@keyframes tc-scroll-line {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

.tc-scroll-hint__label {
  font-family: var(--tc-sans);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

/* ─── Header transparent sur le carousel ──────────────────── */

body.has-fullscreen-carousel #masthead {
  background: transparent;
  box-shadow: none;
}

body.has-fullscreen-carousel #masthead.scrolled,
body.has-fullscreen-carousel #masthead.on-light-slide {
  background: rgba(10,10,10,0.75);
  backdrop-filter: blur(8px);
}

/* ─── Responsive carousel ─────────────────────────────────── */

@media (max-width: 600px) {
  .tc-carousel-dots { right: 0.75rem; }

  .tc-slide__content {
    padding: 0 1rem clamp(4rem, 12vh, 5rem);
  }

  .tc-slide__title {
    font-size: clamp(2.2rem, 11vw, 3.5rem);
  }

  .tc-slide__actions { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@media (prefers-reduced-motion: no-preference) {

  .tc-show-card,
  .wpt_production {
    animation: tc-fade-up 0.4s var(--tc-ease) both;
  }

  @keyframes tc-fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Stagger sur les cartes */
  .wpt_production:nth-child(2), .tc-show-card:nth-child(2) { animation-delay: 0.05s; }
  .wpt_production:nth-child(3), .tc-show-card:nth-child(3) { animation-delay: 0.1s; }
  .wpt_production:nth-child(4), .tc-show-card:nth-child(4) { animation-delay: 0.15s; }
  .wpt_production:nth-child(5), .tc-show-card:nth-child(5) { animation-delay: 0.2s; }
  .wpt_production:nth-child(6), .tc-show-card:nth-child(6) { animation-delay: 0.25s; }
}
