:root {
  --ink: #1f272b;
  --muted: #66747a;
  --paper: #f7f3ec;
  --surface: #fff;
  --line: #ded7cc;
  --brand: #315967;
  --brand-dark: #173844;
  --accent: #dc6d56;
  --gold: #caa44a;
  --max: 1180px;
  --shadow: 0 18px 45px rgba(31, 39, 43, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
button, input, textarea, select, option {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(28px, 5vw, 72px);
  height: 112px;
  padding: 4px clamp(18px, 4vw, 48px);
  background: rgba(247, 243, 236, .98);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 850;
  color: #333;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.brand img { height: 104px; width: auto; max-width: 340px; object-fit: contain; }
.brand span { display: none; }
.top-nav { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 3vw, 42px); flex: 1; width: auto; margin-top: -8px; font-size: .93rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #333; }
.top-nav a {
  position: relative;
  padding: 6px 0;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease;
}
.top-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  transition: transform 180ms ease;
}
.top-nav a:hover { color: var(--accent); }
.top-nav a:hover::after, .top-nav a:focus-visible::after { transform: scaleX(1); }
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 20;
  display: grid;
  min-width: 190px;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(31, 39, 43, .14);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease, transform 160ms ease;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.nav-dropdown-menu a { padding: 9px 10px; text-align: left; }
.nav-dropdown-menu a::after { display: none; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--ink); }

.calendar-first, .section, .page-main { width: min(var(--max), calc(100% - 36px)); margin: 0 auto; }
.calendar-first { padding: 58px 0 34px; }
.section { padding: 72px 0; }
.page-main { padding: 54px 0 76px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-head.compact { align-items: center; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-weight: 850; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }
h1, h2 { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; letter-spacing: 0; line-height: 1.05; }
h1 { font-size: clamp(2.2rem, 5vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }

.button, .calendar-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.button.primary { color: #fff; background: var(--accent); }
.button.secondary-dark { color: var(--brand-dark); background: transparent; border-color: var(--line); }
/* ATTENTION : `.secondary` est blanc sur fond translucide — reserve aux FONDS SOMBRES (hero en
   image). Sur une surface claire il devient blanc sur blanc, donc invisible. Pour un fond clair,
   utiliser `.secondary-dark`. */
.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .08);
}
.button:hover, .calendar-toolbar button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(31, 39, 43, .14);
}

.calendar-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.calendar-toolbar button { min-height: 38px; color: var(--brand-dark); background: transparent; border-color: var(--line); }
.calendar-toolbar button.active, .calendar-toolbar button:hover { color: #fff; background: var(--brand); border-color: var(--brand); }
.calendar-shell {
  display: flex;
  flex-direction: column;
  gap: 34px;
  max-width: 900px;
  margin-inline: auto;
}
/* ── Calendrier en liste (façon « À l'affiche », style Étoile) ───────────────── */
.cal-month { }
.cal-month-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 10px; margin-bottom: 6px; border-bottom: 2px solid var(--brand); }
.cal-month-head h2 { margin: 0; font-size: 1.5rem; color: var(--brand-dark); text-transform: capitalize; letter-spacing: .01em; }
.cal-month-head span { color: var(--muted); font-weight: 800; font-size: .82rem; white-space: nowrap; }
.cal-week { display: flex; flex-direction: column; gap: 10px; }
.cal-week-head { margin: 14px 0 2px; font-size: .76rem; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.cal-row { position: relative; display: grid; grid-template-columns: 56px 76px minmax(0, 1fr) auto; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; transition: box-shadow .15s ease, transform .15s ease; cursor: pointer; }
.cal-row:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
/* Lien étiré : tout le clic de la ligne mène à la fiche (sauf le bouton Réserver, au-dessus). */
.cal-row-title::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.cal-row-action { position: relative; z-index: 2; }
.cal-date { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; text-align: center; }
.cal-date span { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; }
.cal-date strong { font-size: 1.7rem; color: var(--brand-dark); font-weight: 850; }
.cal-date em { font-size: .7rem; text-transform: uppercase; color: var(--accent); font-style: normal; font-weight: 850; letter-spacing: .04em; }
.cal-poster { display: block; width: 76px; height: 112px; border-radius: 6px; overflow: hidden; box-shadow: 0 6px 16px rgba(31, 39, 43, .16); flex-shrink: 0; }
.cal-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cal-row-main { min-width: 0; }
.cal-row-title { text-decoration: none; color: inherit; }
.cal-row-title h4 { margin: 0 0 7px; font-size: 1.1rem; color: var(--ink); line-height: 1.15; }
.cal-row-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cal-cat { font-size: .76rem; font-weight: 800; color: var(--brand); background: rgba(49, 89, 103, .1); border-radius: 999px; padding: 3px 11px; }
.cal-exterior { font-size: .73rem; font-weight: 800; color: #7c3aed; background: rgba(124, 58, 237, .1); border-radius: 999px; padding: 3px 11px; }
/* Badges de disponibilité — seuil et libellés configurés dans Guichet. */
.cal-avail { display: inline-flex; align-items: center; gap: 6px; font-size: .73rem; font-weight: 850; border-radius: 999px; padding: 3px 11px; }
.cal-avail::before { content: "●"; font-size: .6em; line-height: 1; }
.cal-avail--last { color: #a3271b; background: rgba(163, 39, 27, .09); border: 1px solid rgba(163, 39, 27, .22); }
.cal-avail--full { color: #fff; background: #7f1d1d; border: 1px solid #7f1d1d; }
.cal-times { display: flex; gap: 6px; flex-wrap: wrap; }
.cal-times b { font-size: .9rem; font-weight: 850; color: var(--brand-dark); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 2px 9px; }
.cal-row-action { display: flex; align-items: center; gap: 10px; }
.cal-info { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-style: italic; font-weight: 800; color: var(--brand); text-decoration: none; font-family: Georgia, 'Times New Roman', serif; flex-shrink: 0; }
.cal-info:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.cal-book { background: var(--accent); color: #fff; text-decoration: none; font-weight: 800; padding: 10px 18px; border-radius: 8px; white-space: nowrap; }
.cal-book:hover { background: #c85a44; }
/* Plusieurs spectacles le même jour : reliés dans un bloc commun */
.cal-daygroup { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 16px; align-items: stretch; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 10px; padding: 12px 16px; }
.cal-daygroup--has-ext { border-left-color: #7c3aed; }
.cal-daygroup > .cal-date { align-self: center; }
.cal-daygroup-items { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cal-daygroup .cal-row { grid-template-columns: 76px minmax(0, 1fr) auto; border: none; border-radius: 0; padding: 0; background: transparent; gap: 14px; cursor: pointer; }
.cal-daygroup .cal-row:hover { box-shadow: none; transform: none; }
.cal-daygroup .cal-row + .cal-row { border-top: 1px solid var(--line); padding-top: 12px; }
@media (max-width: 720px) {
  /* Le bouton « Réserver » occupait une colonne « auto » qui étranglait le titre : celui-ci
     passait sur trois lignes et chaque pastille tombait sur la sienne. On le descend sur une
     ligne à lui, en pleine largeur : le titre et les pastilles récupèrent toute la place. */
  .cal-row { grid-template-columns: 44px 58px minmax(0, 1fr); align-items: start; gap: 11px; row-gap: 9px; padding: 10px 12px; }
  .cal-poster { width: 58px; height: 86px; }
  .cal-date strong { font-size: 1.35rem; }
  .cal-book { padding: 9px 13px; font-size: .85rem; flex: 1; text-align: center; }
  .cal-month-head h2 { font-size: 1.2rem; }
  .cal-daygroup { grid-template-columns: 44px minmax(0, 1fr); gap: 11px; }
  .cal-daygroup .cal-row { grid-template-columns: 58px minmax(0, 1fr); gap: 11px; row-gap: 9px; }
  .cal-row-action { grid-column: 1 / -1; }
  /* Pastilles resserrées : catégorie, horaire et disponibilité tiennent alors sur une ligne ou deux. */
  .cal-row-title h4 { font-size: 1rem; margin-bottom: 6px; }
  .cal-row-meta { gap: 6px; }
  .cal-cat, .cal-exterior, .cal-avail { font-size: .68rem; padding: 2px 9px; }
  .cal-times b { font-size: .82rem; padding: 2px 8px; }
}
.program-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  padding-top: 0;
  color: var(--ink);
  text-decoration: none;
}
.program-card a { color: inherit; text-decoration: none; }
.program-card--exterior {
  padding: 10px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(139, 92, 246, .12), rgba(255,255,255,0));
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .22);
}
.program-card--exterior .program-poster-link,
.program-card--exterior img { border-radius: 8px; }
.program-card--exterior .program-time-badge,
.program-card--exterior .program-card-badge {
  color: #4c1d95;
  border-color: rgba(139, 92, 246, .34);
}
.program-card--exterior .program-card-badge { border-top-color: #8b5cf6; }
.program-exterior-tag {
  display: inline-flex;
  margin-right: 8px;
  padding: 3px 7px;
  color: #6d28d9;
  background: #f3e8ff;
  border-radius: 999px;
  font-size: .72rem;
}
.program-day-cluster {
  position: relative;
  display: grid;
  padding: 14px;
  border-radius: 10px;
  background: rgba(23, 56, 68, .07);
  box-shadow: inset 0 0 0 1px rgba(23, 56, 68, .1);
}
.program-day-cluster--2 { grid-column: span 2; }
.program-day-cluster--3 { grid-column: span 3; }
.program-day-cluster--4 { grid-column: span 4; }
.program-day-cluster-grid {
  display: grid;
  grid-template-columns: repeat(var(--cluster-count, 2), minmax(0, 1fr));
  gap: 18px;
}
.program-day-cluster--2 .program-day-cluster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.program-day-cluster--3 .program-day-cluster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.program-day-cluster--4 .program-day-cluster-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.program-card::before {
  content: "";
  display: none;
  height: 3px;
  width: 100%;
  border-radius: 999px;
  background: var(--brand);
}
.program-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  display: grid;
  min-width: 58px;
  padding: 7px 8px 8px;
  color: var(--brand-dark);
  text-align: center;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(23, 56, 68, .16);
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(31, 39, 43, .18);
}
.program-day-cluster > .program-card-badge {
  top: 22px;
  left: 22px;
}
.program-card-badge { border-top: 5px solid var(--brand-dark); }
.program-card-badge span,
.program-card-badge em,
.program-card-badge b {
  font-size: .58rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.program-card-badge b {
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px solid rgba(23, 56, 68, .2);
  font-size: .66rem;
}
.program-card-badge strong {
  font-size: 1.55rem;
  line-height: .95;
}
.program-card img {
  display: block;
  width: 100%;
  height: clamp(260px, 25vw, 340px);
  object-fit: cover;
  object-position: top center;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(31, 39, 43, .08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.program-poster-link { display: block; overflow: hidden; border-radius: 8px; }
.program-info-link {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--brand-dark);
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(23, 56, 68, .16);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(31, 39, 43, .16);
}
.program-info-link:hover { color: #fff; background: var(--brand-dark); }
.program-card--in-cluster .program-info-link {
  top: 8px;
  right: 8px;
}
.program-card--in-cluster .program-time-badge {
  right: auto;
  left: 8px;
  top: 82px;
}
.program-time-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  padding: 6px 9px;
  color: var(--brand-dark);
  background: rgba(255,255,255,.94);
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(31, 39, 43, .16);
}
.program-card-body {
  align-self: start;
}
.program-card:hover img {
  transform: scale(1.025);
  box-shadow: 0 18px 38px rgba(31, 39, 43, .16);
}
.program-card-date {
  margin: 0 0 6px;
  font-size: .9rem;
  color: #0f0f0f;
}
.program-card h3 {
  margin: 0;
  font-size: clamp(.98rem, 1.4vw, 1.18rem);
  line-height: 1.13;
  font-weight: 950;
  text-transform: uppercase;
}
.program-card-category {
  margin: 8px 0 0;
  color: #8a1818;
  font-weight: 900;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.poster-link:hover img { transform: scale(1.045); }

.hero { position: relative; min-height: clamp(640px, 84vh, 860px); display: grid; align-items: end; overflow: hidden; background: var(--brand-dark); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; opacity: .78; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,35,41,.56), rgba(18,35,41,.14)); }
.hero-content { position: relative; z-index: 1; width: min(var(--max), calc(100% - 36px)); margin: 0 auto; padding: 78px 0 132px; color: #fff; }
.hero-content p:last-child { max-width: 620px; color: rgba(255,255,255,.86); font-size: 1.16rem; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 34px;
  width: 54px;
  height: 54px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(8px);
}
.scroll-cue::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 17px;
  width: 14px;
  height: 14px;
  transform: translateX(-50%) rotate(45deg);
  border-right: 3px solid rgba(255, 255, 255, .9);
  border-bottom: 3px solid rgba(255, 255, 255, .9);
  animation: cue-bounce 1.6s ease-in-out infinite;
}
@keyframes cue-bounce {
  0%, 100% { transform: translate(-50%, -3px) rotate(45deg); opacity: .55; }
  50% { transform: translate(-50%, 5px) rotate(45deg); opacity: 1; }
}

.show-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.show-card { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.poster-link { display: block; overflow: hidden; background: #ddd; }
.poster-link img { display: block; width: 100%; aspect-ratio: 3 / 4.25; object-fit: cover; transition: transform 180ms ease; }
.show-card div { padding: 16px; }
.show-card h3 { margin: 0 0 8px; font-size: 1.08rem; line-height: 1.15; }
.show-card p { margin: 0 0 14px; color: var(--muted); }
.show-detail-layout {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.show-detail-poster img { display: block; width: 100%; border-radius: 8px; box-shadow: var(--shadow); }
.show-detail-content { display: grid; gap: 22px; }
.show-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.show-meta span {
  padding: 6px 10px;
  color: var(--brand-dark);
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
}
.show-credits { margin: 14px 0 4px; color: var(--ink); }
.show-credits p { margin: 2px 0; font-size: 1rem; }
.show-credits strong { color: var(--muted); font-weight: 800; }
.show-cast-block { margin-top: 8px; }
.show-cast-block > strong { margin-right: 8px; }
.show-cast { display: inline; line-height: 1.45; }
.show-cast-member, .show-cast-holders { display: inline; }
.show-cast-name { color: var(--ink); font-weight: 400; }
.show-cast-or { margin: 0 5px; color: var(--muted); font-size: .82em; font-style: italic; }
.show-cast-separator { color: var(--ink); }
.show-cast-alternate {
  margin-left: 5px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 400;
  letter-spacing: .01em;
  opacity: .45;
}
.show-cast-plain { color: var(--ink); }
.show-detail-cta { justify-self: start; }
.show-pitch { max-width: 760px; color: var(--ink); font-size: 1.04rem; }
.show-visuals {
  display: grid;
  gap: 12px;
  width: 100%;
  margin-top: 20px;
}
.show-visuals[hidden] { display: none; }
.show-visuals-head { display: grid; gap: 2px; }
.show-visuals-head h2 { font-size: 1.18rem; color: var(--brand-dark); }
.show-visuals-head span { color: var(--muted); font-size: .82rem; }
.show-visuals-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(110px, 1fr);
  grid-template-rows: minmax(0, 1.1fr) minmax(0, .9fr);
  aspect-ratio: .96;
  gap: 10px;
}
.show-visuals-grid--count-3 .show-visual:first-child { grid-row: 1 / 3; }
.show-visuals-grid--count-2 {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  grid-template-rows: 1fr;
  aspect-ratio: 1.32;
}
.show-visuals-grid--count-1 {
  display: block;
  aspect-ratio: auto;
}
.show-visuals-grid--count-1 .show-visual { aspect-ratio: 4 / 3; }
.show-visual {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #e8e2d9;
  border: 1px solid rgba(23, 56, 68, .16);
  border-radius: 8px;
  box-shadow: 0 7px 18px rgba(31, 39, 43, .12);
}
.show-visual img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }

.ticket-page { display: grid; grid-template-columns: 248px 1fr; gap: 24px; align-items: start; }
.ticket-piece, .ticket-panel, .login-card, .account-note, .admin-card, .info-list article, .info-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(31,39,43,.08);
}
.ticket-piece { overflow: hidden; }
.ticket-affiche { position: relative; display: block; }
.ticket-affiche img { display: block; width: 100%; aspect-ratio: 3 / 4.25; object-fit: cover; }
.ticket-affiche-info {
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(15,23,42,.78); color: #fff; font-weight: 800; font-style: italic;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.ticket-affiche:hover .ticket-affiche-info { background: var(--accent); }
.ticket-affiche-meta { padding: 16px 18px; }
.ticket-affiche-meta h2 { margin: 0 0 6px; font-size: 1.15rem; }
.ticket-affiche-meta .selected-session { color: var(--accent); font-weight: 700; margin: 0 0 10px; }
.ticket-affiche-link { font-size: .9rem; font-weight: 700; color: var(--accent); text-decoration: none; }
.ticket-affiche-link:hover { text-decoration: underline; }
.ticket-piece div { padding: 18px; }
.ticket-piece p { color: var(--muted); }
.piece-video {
  margin-top: 18px;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
}
.piece-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}
.piece-video video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  background: #000;
}
.selected-session { color: var(--accent) !important; font-weight: 850; }
.ticket-panel { padding: 22px; }
.ticket-chooser {
  margin: 0 0 20px;
  padding: 18px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}
.chooser-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 12px;
  align-items: end;
}
.custom-select {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
}
.custom-select > span {
  font-weight: 900;
  font-size: 1.05rem;
}
.custom-select-button {
  width: 100%;
  min-height: 46px;
  padding: 10px 42px 10px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: left;
  font-weight: 850;
  cursor: pointer;
}
.custom-select-button::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 18px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid var(--ink);
  pointer-events: none;
}
.custom-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 300px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  /* Ascenseur toujours visible (macOS masque l'overlay) pour signaler qu'il y a d'autres pièces */
  scrollbar-width: thin;
  scrollbar-color: var(--brand) #efe9e0;
}
.custom-select-menu::-webkit-scrollbar { width: 11px; }
.custom-select-menu::-webkit-scrollbar-track { background: #efe9e0; border-radius: 0 8px 8px 0; }
.custom-select-menu::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 8px; border: 2px solid #efe9e0; }
.custom-select-menu::-webkit-scrollbar-thumb:hover { background: var(--brand-dark); }
.custom-select-menu button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 6px;
  text-align: left;
  font-weight: 750;
  cursor: pointer;
}
.custom-select-menu button:hover {
  color: #fff;
  background: var(--brand);
}
.custom-select-menu button:disabled {
  color: var(--muted);
  cursor: default;
}
.ticket-embed iframe { display: block; width: 100%; min-height: 420px; border: 0; transition: height .15s ease; }
.ticket-toast {
  position: fixed; top: 16px; left: 50%; transform: translate(-50%, -12px);
  z-index: 1000; max-width: min(520px, calc(100vw - 24px));
  background: #fff7df; color: #7a4b00; border: 1px solid #ead08b; border-radius: 999px;
  padding: 12px 18px; font-weight: 800; text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.ticket-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 760px) {
  .ticket-toast {
    top: calc(78px + env(safe-area-inset-top));
    width: calc(100vw - 24px);
    max-width: 520px;
    padding: 12px 14px;
    border-radius: 12px;
    line-height: 1.35;
    text-align: center;
    transform: translate(-50%, -8px);
  }
  .ticket-toast.is-visible { transform: translate(-50%, 0); }
}

/* Colonne gauche : affiche + panier */
.ticket-left { display: flex; flex-direction: column; gap: 16px; }
.ticket-cart {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 8px 28px rgba(31,39,43,.08); padding: 16px 18px;
}
.ticket-cart[hidden] { display: none; }
.ticket-cart .widget-cart-sticky h2 { margin: 0 0 4px; font-size: 1.05rem; }
.ticket-cart .widget-cart-sticky > p { margin: 0 0 10px; color: var(--muted); font-size: .9rem; }
.ticket-cart ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ticket-cart li,
.ticket-cart .widget-cart-extra-line { display: grid; grid-template-columns: minmax(0, 1fr) auto 28px; align-items: center; gap: 10px; font-size: .92rem; }
.ticket-cart li span { color: var(--ink); min-width: 0; }
.ticket-cart .widget-cart-extra { display: grid; gap: 9px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.ticket-cart .widget-cart-extra-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ticket-cart .widget-cart-extra-info > strong { overflow-wrap: anywhere; }
.ticket-cart .widget-cart-extra-date,
.ticket-cart .widget-cart-extra-line small { color: var(--muted); font-size: .82rem; font-weight: 700; }
.ticket-cart .widget-cart-extra-line > strong { white-space: nowrap; }
.ticket-cart .widget-cart-remove { display: grid; place-items: center; align-self: center; width: 28px; height: 28px; margin: 0; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #9aa3af; font-size: .85rem; line-height: 1; cursor: pointer; }
.ticket-cart .widget-cart-remove:hover { color: #b3261e; background: #fdecea; }
.ticket-cart .widget-cart-seats { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.ticket-cart .widget-cart-seats span { background: #eef3ff; color: #1d4ed8; border-radius: 999px; padding: .18rem .5rem; font-weight: 800; font-size: .8rem; }
.ticket-cart .widget-cart-discount { display: flex; justify-content: space-between; margin-top: 10px; color: #166534; font-weight: 800; }
.ticket-cart .widget-cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.ticket-cart .widget-cart-total span { color: var(--muted); font-weight: 700; }
.ticket-cart .widget-cart-total strong { font-size: 1.2rem; }
.ticket-cart .widget-timer { margin: 10px 0 0; color: var(--accent); font-weight: 800; font-size: .85rem; }
.ticket-unavailable {
  padding: 28px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
}
.ticket-unavailable h2 {
  margin-bottom: 10px;
  font-size: 1.6rem;
}
.ticket-unavailable p {
  margin: 0;
  color: var(--muted);
}

.page-hero p { max-width: 720px; color: var(--muted); font-size: 1.15rem; }
.info-layout { display: grid; grid-template-columns: 360px 1fr; gap: 24px; padding-top: 0; }
.info-list { display: grid; gap: 14px; }
.info-list article, .info-grid article { padding: 22px; }
.info-list h2, .info-grid h2 { font-size: 1.4rem; margin-bottom: 8px; }
.map { width: 100%; min-height: 520px; border: 1px solid var(--line); border-radius: 8px; background: #ddd; }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.account-shell { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; padding-top: 0; }
.login-card, .account-note { padding: 24px; }
.login-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 28px rgba(31,39,43,.08); }
.form-notice, .account-error, .account-ok {
  scroll-margin-top: 136px;
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 850;
  line-height: 1.35;
  margin: 0 0 16px;
}
.account-error { color: #8b1616; background: #fff1f1; border: 1px solid #f2b8b8; box-shadow: 0 8px 22px rgba(153,27,27,.12); }
input.field-error, textarea.field-error { border-color: #dc2626; background: #fff5f5; box-shadow: 0 0 0 2px rgba(220,38,38,.18); }
.pw-toggle { font-weight: 600; font-size: .88rem; color: var(--muted); margin: -4px 0 14px; }
.account-benefits { background: #f1f6ff; border: 1px solid #d8e2f8; border-radius: 6px; padding: 10px 12px; color: var(--ink); font-weight: 600; font-size: .92rem; margin: 0 0 14px; }
.account-ok { background: #ecfdf3; color: #14532d; border: 1px solid #9ee6bd; box-shadow: 0 8px 22px rgba(22,101,52,.1); }
.account-link { background: none; border: 0; color: var(--accent); font-weight: 800; cursor: pointer; padding: 8px 0 0; text-align: left; width: auto; }
.account-link:hover { text-decoration: underline; }
.account-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.account-actions .button { width: auto; }
[data-page="account"] .section { padding: 28px 0; }
[data-page="account"] .page-hero { padding-bottom: 0; }
[data-page="account"] #accountView { padding-top: 12px; }
/* Cases à cocher alignées sur leur texte */
.checkbox-line { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-weight: 700; }
.checkbox-line input { width: auto; margin: 0; padding: 0; }
/* Formulaires compte plus compacts (messages visibles sans trop scroller) */
[data-page="account"] .page-hero h1 { font-size: 2.4rem; }
[data-page="account"] .login-card { padding: 20px 22px; }
[data-page="account"] .login-card h2 { font-size: 1.5rem; margin: 0 0 12px; }
[data-page="account"] .login-card label { margin: 0 0 11px; gap: 5px; font-size: .95rem; }
[data-page="account"] .login-card input { padding: 9px 12px; }
[data-page="account"] .account-benefits { margin: 0 0 11px; }
.account-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.account-head h2 { margin: 2px 0; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.account-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 28px rgba(31,39,43,.08); padding: 22px; }
.account-card h3 { margin: 0 0 12px; }
.account-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.account-list li { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.account-list li:last-child { border-bottom: 0; }
.account-list li span { color: var(--muted); font-size: .9rem; }
label { display: grid; gap: 8px; margin: 0 0 16px; font-weight: 800; }
input, textarea, select { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }

.login-overlay { position: fixed; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(23,56,68,.92); }
.login-overlay[hidden], .admin-console[hidden] { display: none; }
.login-card img { width: 90px; height: 90px; object-fit: contain; }
.error { color: #b42318; font-weight: 800; }
.admin-console { width: min(var(--max), calc(100% - 36px)); margin: 0 auto; padding: 42px 0; }
.admin-top { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.admin-card { padding: 22px; }
.admin-card-wide { grid-column: span 2; }
.video-preview {
  min-height: 160px;
  margin: 0 0 16px;
  background: #f8fafc;
  border: 1px dashed var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.video-preview iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}
.video-preview p {
  margin: 0;
  padding: 18px;
  color: var(--muted);
}
.rich-text-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  padding: 8px;
  background: #f5f5f5;
  border: 1px solid var(--line);
  border-radius: 6px 6px 0 0;
}
.rich-text-toolbar button {
  min-width: 40px;
  min-height: 36px;
  padding: 0 10px;
  background: var(--surface);
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  transition: all 180ms ease;
}
.rich-text-toolbar button:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.rich-text-toolbar button:nth-child(1) strong {
  font-weight: 900;
}
.rich-text-toolbar button:nth-child(2) em {
  font-style: italic;
}
.rich-text-preview {
  padding: 14px;
  color: var(--ink);
  background: rgba(255,255,255,.64);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.site-footer { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 34px 18px; color: rgba(255,255,255,.74); background: var(--brand-dark); }
.site-footer a { text-decoration: none; }
.site-footer span { color: #fff; font-weight: 850; }
.site-footer-logo img { display: block; width: 74px; height: auto; object-fit: contain; filter: brightness(0) invert(1); opacity: .92; }
.loading { color: var(--muted); }

@media (max-width: 980px) {
  .show-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .calendar-shell { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .program-day-cluster--3,
  .program-day-cluster--4 { grid-column: span 3; }
  .program-day-cluster--2 { grid-column: span 2; }
  .chooser-form { grid-template-columns: 1fr; }
  .ticket-page, .info-layout, .account-shell { grid-template-columns: 1fr; }
  .ticket-piece { display: none; } /* mobile : pas de fiche pièce, parcours direct */
  .admin-grid, .info-grid { grid-template-columns: 1fr; }
  .admin-card-wide { grid-column: auto; }
}

@media (max-width: 760px) {
  html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
  input, textarea, select, .custom-select-button { font-size: 16px; line-height: 1.35; }
  .site-header { height: 70px; justify-content: space-between; gap: 14px; padding: 4px 16px; }
  .brand img { height: 62px; width: auto; }
  .menu-toggle { display: block; }
  .menu-toggle { flex: 0 0 auto; background: rgba(255,255,255,.72); }
  .top-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100vh - 70px); overflow-y: auto; padding: 8px 18px 18px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 18px 36px rgba(31, 39, 43, .12); }
  .top-nav.open { display: flex; }
  .top-nav a { padding: 14px 0; border-top: 1px solid var(--line); }
  .nav-dropdown { display: grid; align-items: stretch; }
  .nav-dropdown-menu { position: static; display: grid; min-width: 0; padding: 0 0 0 14px; background: transparent; border: 0; border-radius: 0; box-shadow: none; opacity: 1; pointer-events: auto; transform: none; }
  .nav-dropdown-menu a { padding: 10px 0; color: var(--muted); }
  .section-head, .admin-top { align-items: start; flex-direction: column; }
  .calendar-shell { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .program-day-cluster,
  .program-day-cluster--2,
  .program-day-cluster--3,
  .program-day-cluster--4 { grid-column: 1 / -1; }
  .program-day-cluster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .program-card img { height: clamp(220px, 52vw, 320px); }
  .show-visuals-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(92px, 1fr);
  }
  .show-grid { grid-template-columns: 1fr; }
  .show-card { display: grid; grid-template-columns: 108px 1fr; }
  .poster-link img { height: 100%; aspect-ratio: auto; }
  .show-detail-layout { grid-template-columns: 1fr; }
  .show-detail-poster { max-width: 420px; }
  body[data-page="ticketing"] .page-main { width: 100%; margin: 0; }
  body[data-page="ticketing"] .ticket-page { display: flex; flex-direction: column; align-items: stretch; width: 100%; gap: 0; }
  body[data-page="ticketing"] .ticket-panel { order: 1; width: 100%; }
  body[data-page="ticketing"] .ticket-left {
    order: 2;
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  body[data-page="ticketing"] .ticket-piece { display: none; }
  body[data-page="ticketing"] .ticket-cart {
    margin: 0;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 16px 18px;
  }
  body[data-page="ticketing"] .ticket-cart .widget-cart-sticky h2 { font-size: 1.55rem; }
  body[data-page="ticketing"] .ticket-cart .widget-cart-sticky > p { font-size: 1rem; }
  body[data-page="ticketing"] .ticket-cart li,
  body[data-page="ticketing"] .ticket-cart .widget-cart-discount,
  body[data-page="ticketing"] .ticket-cart .widget-cart-total { font-size: 1rem; }
  body[data-page="ticketing"] .ticket-cart .widget-cart-total strong { font-size: 1.45rem; }
  body[data-page="ticketing"] .ticket-panel {
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  body[data-page="ticketing"] .section-head.compact {
    display: none;
  }
  body[data-page="ticketing"] .ticket-chooser {
    margin: 0;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }
  body[data-page="ticketing"] .ticket-embed,
  body[data-page="ticketing"] .ticket-embed iframe {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  body[data-page="ticketing"] .site-footer-logo {
    min-height: 88px;
    padding: 14px 18px 18px;
  }
  body[data-page="ticketing"] .site-footer-logo img {
    width: 56px;
  }
}

@media (max-width: 460px) {
  .calendar-shell { grid-template-columns: 1fr; }
  .program-day-cluster-grid { grid-template-columns: 1fr; }
  .program-card img { height: 360px; }
  .program-day-cluster { padding: 12px; }
  .program-day-cluster > .program-card-badge { top: 18px; left: 18px; }
}

/* État connecté sur le bouton « Mon compte » de la nav */
.top-nav a.nav-account-connected { color: var(--accent); font-weight: 800; }
.nav-account-dot { display:inline-block; width:.5rem; height:.5rem; border-radius:50%; background:#22c55e; margin-right:.4rem; vertical-align:middle; box-shadow:0 0 0 3px rgba(34,197,94,.22); }

/* Listes « J'ai vu » / « Je n'ai pas encore vu » dans l'espace client */
.account-shows { list-style:none; margin:0; padding:0; display:grid; gap:.7rem; }
.account-shows li a { display:flex; gap:.75rem; align-items:center; text-decoration:none; color:inherit; }
.account-shows li a:hover strong { color: var(--accent); }
.account-shows img { width:46px; height:64px; object-fit:cover; border-radius:6px; background:#eee; flex:0 0 auto; }
.account-shows span { display:flex; flex-direction:column; gap:2px; }
.account-shows em { color:#6b7280; font-style:normal; font-size:.85em; }

/* Espace client : onglets + formulaire coordonnées */
.account-tabs { display:flex; gap:.3rem; flex-wrap:wrap; margin:1.1rem 0 1.3rem; border-bottom:1px solid rgba(0,0,0,.08); }
.account-tab { background:none; border:none; padding:.6rem .95rem; font:inherit; font-weight:800; color:#6b7280; cursor:pointer; border-bottom:3px solid transparent; margin-bottom:-1px; }
.account-tab:hover { color:#374151; }
.account-tab.is-active { color:var(--accent); border-bottom-color:var(--accent); }
.account-profile-form { display:grid; gap:.75rem; max-width:520px; }
.account-profile-form label { display:flex; flex-direction:column; gap:.25rem; font-weight:700; font-size:.9rem; }
.account-profile-form input { padding:.6rem .7rem; border:1px solid rgba(0,0,0,.18); border-radius:8px; font:inherit; }

/* Pages légales (mentions, CGV, confidentialité) */
.legal-page { max-width: 820px; }
.legal-page h2 { margin: 1.6rem 0 .5rem; font-size: 1.2rem; color: var(--brand-dark); }
.legal-page p, .legal-page li { color: var(--ink); line-height: 1.6; }
.legal-page ul { margin: .4rem 0 .8rem 1.1rem; }
.legal-page li { margin: .25rem 0; }
.legal-page em { color: var(--accent); font-style: normal; font-weight: 700; }
.legal-page .legal-links { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-weight: 700; }
.legal-page a { color: var(--accent); }
/* Liens légaux en pied de page */
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 0; }
.footer-legal a { position: relative; color: rgba(255,255,255,.82); text-decoration: none; font-size: .88rem; font-weight: 600; padding: 2px 16px; }
.footer-legal a + a::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 13px; background: rgba(255,255,255,.28); }
.footer-legal a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 560px) { .footer-legal a { padding: 2px 11px; font-size: .82rem; } }

/* Badge panier dans la nav */
/* Badge panier dans le header (desktop : à droite de la nav ; mobile : à gauche du burger) */
.nav-cart { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; padding: 5px 11px; background: var(--accent); border-radius: 999px; color: #fff !important; text-decoration: none; box-shadow: 0 4px 14px rgba(220,109,86,.35); }
.nav-cart::after { display: none !important; }
.nav-cart:hover { color: #fff !important; filter: brightness(1.05); }
.nav-cart-ico { display: inline-flex; }
.nav-cart-ico svg { width: 19px; height: 19px; }
.nav-cart-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; background: #fff; color: var(--accent); border-radius: 999px; font-size: .78rem; font-weight: 850; line-height: 1; }
@media (max-width: 760px) {
  .nav-cart { order: 2; margin-left: auto; }
  .menu-toggle { order: 3; }
}

/* Billets dans le compte client (QR + places) */
.account-ticket-intro { margin: 0 0 1rem; font-size: .92rem; }
.account-ticket { border: 1px solid var(--line); border-radius: 10px; margin-bottom: .7rem; overflow: hidden; background: var(--paper); }
.account-ticket > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; }
.account-ticket > summary::-webkit-details-marker { display: none; }
.ticket-sum-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ticket-sum-main strong { color: var(--ink); }
.ticket-sum-main em { font-style: normal; color: var(--muted); font-size: .88rem; }
.ticket-sum-cta { flex: 0 0 auto; color: #fff; background: var(--accent); border-radius: 6px; padding: .35rem .8rem; font-weight: 800; font-size: .85rem; }
.account-ticket[open] > summary .ticket-sum-cta { background: var(--brand); }
.account-ticket-body { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 1rem; border-top: 1px solid var(--line); text-align: center; }
.ticket-qr { background: #fff; padding: 12px; border-radius: 10px; box-shadow: var(--shadow); line-height: 0; }
.ticket-qr svg { width: 240px; height: 240px; max-width: 70vw; max-height: 70vw; display: block; }
.ticket-places { margin: .2rem 0; font-size: 1rem; }
.ticket-note { margin: .2rem 0; font-size: .9rem; color: var(--brand-dark); background: #eef6f3; border-radius: 8px; padding: .55rem .8rem; max-width: 440px; line-height: 1.4; }
.ticket-ref { margin: .2rem 0 0; font-size: .8rem; color: var(--muted); font-weight: 700; }

/* ============================================================
   Cartes cadeau — page de vente en ligne
   ============================================================ */
.gift-page { max-width: var(--max); margin: 0 auto; padding: 28px 20px 80px; }
.gift-hero { text-align: center; max-width: 720px; margin: 8px auto 30px; }
.gift-hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.05; margin: 4px 0 12px; color: var(--brand-dark); }
.gift-hero-sub { color: var(--muted); font-size: 1.08rem; line-height: 1.55; max-width: 620px; margin: 0 auto; }

.gift-shop { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.gift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.gift-loading, .gift-empty { grid-column: 1 / -1; color: var(--muted); text-align: center; padding: 40px 0; }

/* Garde-fou « un seul panier à la fois » (billets vs cartes cadeau) */
.cart-guard {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  background: #fff7ed; border: 1px solid #f6c99a; border-radius: 12px;
  padding: 14px 18px; margin: 0 0 20px; color: #8a4b12; line-height: 1.5;
}
.cart-guard strong { color: #7c3d0a; }
.cart-guard span { flex: 1; min-width: 200px; }
.cart-guard .button { margin-left: auto; }
/* Bandeau ambre : ni le blanc ni le bleu sombre ne s'y lisent bien, on reprend son propre ton. */
.button.cart-guard-cta { color: #7c3d0a; background: #fff; border-color: #e2b183; }
.button.cart-guard-cta:hover { background: #fffaf4; }
.cart-guard-block {
  flex-direction: column; align-items: flex-start; text-align: left;
  background: var(--surface); border: 1px dashed var(--line); color: var(--ink);
  box-shadow: var(--shadow); padding: 28px 26px;
}
.cart-guard-block strong { font-size: 1.15rem; color: var(--brand-dark); }
.cart-guard-block p { margin: 0; color: var(--muted); }
.cart-guard-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.cart-guard-actions .button { margin: 0; }
.gift-grid.is-cart-locked { opacity: .45; pointer-events: none; filter: grayscale(.3); }

/* Carte présentée (visuel vendeur) */
.gift-card-sell {
  --gc: #d8a22a;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.gift-card-sell:hover { transform: translateY(-3px); box-shadow: 0 24px 55px rgba(31,39,43,.18); }
.gift-card-ribbon {
  background: var(--gc); /* repli si color-mix non supporté */
  background: linear-gradient(135deg, var(--gc), color-mix(in srgb, var(--gc) 68%, #000 14%));
  color: #fff; padding: 20px 20px 18px; position: relative;
}
.gift-card-ribbon::after {
  content: ""; position: absolute; right: 16px; top: 16px; width: 30px; height: 30px;
  background: url("assets/Etoile.png") center/contain no-repeat; opacity: .9; filter: brightness(0) invert(1);
}
.gift-card-ribbon-kicker { display: block; font-size: .72rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; opacity: .9; }
.gift-card-ribbon-title { display: block; font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: 1.55rem; margin-top: 4px; line-height: 1.1; }
/* Visuel uploadé (remplace le bandeau coloré) — cadre paysage 3:2, texte lisible sur voile dégradé */
.gift-card-photo {
  aspect-ratio: 3 / 2; background-size: cover; background-position: center; background-color: var(--gc);
  color: #fff; position: relative; display: flex; align-items: flex-end;
}
.gift-card-photo-scrim {
  width: 100%; padding: 16px 20px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,.12) 60%, rgba(0,0,0,0));
}
.gift-card-photo .gift-card-ribbon-title { text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.gift-card-body { padding: 16px 20px 6px; flex: 1; }
.gift-card-summary { margin: 0 0 12px; color: var(--ink); font-size: 1rem; line-height: 1.45; font-weight: 600; }
.gift-card-valid { margin: 0 0 10px; font-weight: 850; color: var(--brand-dark); font-size: .96rem; }
.gift-card-benefits { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 7px; }
.gift-card-benefits li { position: relative; padding-left: 24px; color: var(--ink); font-size: .92rem; line-height: 1.4; }
.gift-card-benefits li::before {
  content: "✓"; position: absolute; left: 0; top: -1px; width: 17px; height: 17px; border-radius: 50%;
  background: #eee; color: var(--brand-dark); /* repli si color-mix non supporté */
  background: color-mix(in srgb, var(--gc) 22%, #fff); color: color-mix(in srgb, var(--gc) 72%, #000 12%);
  font-size: .7rem; font-weight: 900; display: grid; place-items: center;
}
.gift-card-extra { margin: 4px 0 0; font-size: .86rem; color: var(--muted); font-style: italic; }
.gift-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px 18px; border-top: 1px solid var(--line); margin-top: 8px; }
.gift-card-price { font-size: 1.5rem; font-weight: 900; color: var(--brand-dark); }
.gift-card-add { position: relative; }
.gift-card-badge { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--brand-dark); color: #fff; font-size: .74rem; font-weight: 900; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.gift-card-badge[hidden] { display: none; } /* la classe display:grid l'emporterait sinon sur l'attribut hidden */

/* Panier / récapitulatif */
.gift-cart {
  position: sticky; top: 96px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 20px; box-shadow: var(--shadow);
}
.gift-cart h2 { margin: 0 0 14px; font-size: 1.25rem; color: var(--brand-dark); }
.gift-cart-empty { color: var(--muted); font-size: .95rem; margin: 0; }
.gift-cart-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.gift-cart-chip { --gc: #d8a22a; width: 14px; height: 28px; border-radius: 5px; background: var(--gc); flex: none; }
.gift-cart-info { flex: 1; min-width: 0; }
.gift-cart-info strong { display: block; font-size: .95rem; color: var(--ink); }
.gift-cart-info small { color: var(--muted); font-size: .82rem; }
.gift-qty { display: flex; align-items: center; gap: 8px; }
.gift-qty-btn { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); font-size: 1.1rem; font-weight: 800; color: var(--brand-dark); cursor: pointer; line-height: 1; }
.gift-qty-btn:hover { border-color: var(--accent); color: var(--accent); }
.gift-qty-n { min-width: 18px; text-align: center; font-weight: 800; }
.gift-cart-remove { width: 26px; height: 26px; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--muted); font-size: 1rem; line-height: 1; cursor: pointer; flex: none; }
.gift-cart-remove:hover { color: #b3261e; border-color: #f5b5ad; background: #fdecea; }
.gift-cart-item { padding: 10px 0; border-bottom: 1px solid var(--line); }
.gift-cart-item .gift-cart-row { padding: 0 0 2px; border-bottom: 0; }
.gift-phys-line { display: flex; align-items: flex-start; gap: 9px; margin: 8px 0 0; padding: 9px 11px; background: #faf7f1; border: 1px solid var(--line); border-radius: 10px; font-size: .82rem; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.gift-phys-line:hover { border-color: var(--accent); }
.gift-phys-line.is-on { border-color: var(--accent); background: #fdf3ee; }
.gift-phys-line input { flex: none; width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.gift-phys-text { flex: 1; min-width: 0; color: var(--ink); font-weight: 600; line-height: 1.4; }
.gift-phys-fee { display: inline-block; margin-left: 2px; color: var(--brand-dark); font-weight: 800; white-space: nowrap; }
.gift-phys-note { margin: 10px 0 0; padding: 10px 12px; background: #f7f3ec; border: 1px solid var(--line); border-radius: 10px; font-size: .8rem; color: var(--muted); line-height: 1.5; }
.gift-phys-note strong { color: var(--brand-dark); }
.gift-cart-total { display: flex; align-items: baseline; justify-content: space-between; margin: 14px 0 4px; font-size: 1.05rem; }
.gift-cart-total strong { font-size: 1.5rem; font-weight: 900; color: var(--brand-dark); }

/* Bandeau compte client dans le panier */
.gift-account { margin-top: 14px; }
.gift-account[hidden] { display: none; }
.gift-account-connected { display: flex; align-items: center; gap: 10px; background: #eef6f3; border: 1px solid #cfe6dd; border-radius: 10px; padding: 10px 12px; }
.gift-account-connected strong { display: block; font-size: .9rem; color: var(--brand-dark); }
.gift-account-connected small { color: var(--muted); font-size: .82rem; }
.gift-account-connected > div { flex: 1; min-width: 0; }
.gift-account-dot { width: 9px; height: 9px; border-radius: 50%; background: #2e9e6b; box-shadow: 0 0 0 3px rgba(46,158,107,.18); flex: none; }
.gift-account-invite { margin: 0; font-size: .86rem; color: var(--muted); line-height: 1.5; }
.gift-account-link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 800; cursor: pointer; text-decoration: underline; }
.gift-login { margin-top: 10px; display: grid; gap: 8px; }
.gift-login label { display: block; font-size: .82rem; font-weight: 700; color: var(--brand-dark); }
.gift-login input { display: block; width: 100%; margin-top: 4px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; font: inherit; background: var(--paper); }
.gift-login input:focus { outline: none; border-color: var(--accent); background: #fff; }
.gift-login-btn { width: 100%; justify-content: center; }

.gift-buyer { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 14px; }
.gift-buyer h3 { margin: 0 0 4px; font-size: 1rem; color: var(--ink); }
.gift-buyer-hint { margin: 0 0 12px; font-size: .84rem; color: var(--muted); line-height: 1.4; }
.gift-buyer label { display: block; font-size: .82rem; font-weight: 700; color: var(--brand-dark); margin-bottom: 10px; }
.gift-buyer input { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; font: inherit; background: var(--paper); }
.gift-buyer input:focus { outline: none; border-color: var(--accent); background: #fff; }
.gift-buyer-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gift-pay { width: 100%; justify-content: center; margin-top: 6px; font-size: 1.02rem; }
.gift-pay.is-loading { opacity: .6; pointer-events: none; }
.gift-secure { margin: 10px 0 0; font-size: .78rem; color: var(--muted); text-align: center; line-height: 1.4; }
.gift-error { margin: 0 0 10px; padding: 9px 12px; border-radius: 9px; background: #fdecea; border: 1px solid #f5b5ad; color: #b3261e; font-size: .86rem; }

@media (max-width: 900px) {
  .gift-shop { grid-template-columns: 1fr; }
  .gift-cart { position: static; order: 2; }
  .gift-buyer-row { grid-template-columns: 1fr; }
}
