:root {
  --leo-plum: #351039;
  --leo-violet: #531c73;
  --leo-wine: #752044;
  --leo-surface: linear-gradient(125deg, #491861, #46143e 48%, #651935);
  --leo-card-surface: linear-gradient(120deg, #66278a, #5e2255 58%, #8c2a50);
  --leo-accent-surface: linear-gradient(125deg, #792c9a, #9a2c58);
}

.leo-agenda-cards, .leo-calendar, .leo-gallery, .leo-agenda-jump {
  --agenda-ink: #fff0dc;
  --agenda-gold: #ffd398;
  --agenda-line: #bd806a;
  --agenda-surface: var(--leo-card-surface);
  color: var(--agenda-ink);
}
.leo-agenda-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.3vw, 26px);
  margin-block: 18px 34px;
}
.leo-agenda-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid var(--agenda-line);
  border-radius: 15px;
  background: var(--agenda-surface);
  box-shadow: 0 8px 0 #12071257;
}
.leo-agenda-cover { position: relative; display: grid; place-items: center; aspect-ratio: 210 / 297; overflow: hidden; background: #1c0a25; }
.leo-agenda-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.leo-agenda-placeholder { color: var(--agenda-gold); font-size: 3rem; }
.leo-agenda-card-body { padding: clamp(15px, 2vw, 24px); border-top: 2px dashed #d2a58280; }
.leo-agenda-card h3 { color: var(--agenda-ink); font: 700 clamp(1.14rem, 2vw, 1.42rem)/1.24 Georgia, serif; margin: .45rem 0 .25rem; }
.leo-agenda-card h3 a { color: inherit; text-decoration: none; }
.leo-agenda-card time, .leo-agenda-kicker { color: var(--agenda-gold); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.leo-agenda-card p { color: #f5d9c9; margin: .4rem 0 0; font-size: .93rem; }
.leo-calendar, .leo-gallery {
  margin: 34px 0;
  padding: clamp(16px, 4vw, 48px);
  background: var(--leo-surface);
  border: 2px solid var(--agenda-line);
  border-radius: 17px;
}
.leo-gallery { width: min(1180px, 94%); margin: 38px auto 70px; }
.leo-gallery h2, .leo-calendar h2 { font: 400 clamp(1.9rem, 4.5vw, 3.45rem)/1.08 Georgia, serif; color: var(--agenda-ink); margin: .35em 0; }
.leo-calendar[id] { scroll-margin-top: 132px; }
.leo-calendar-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 22px 0 16px; }
.leo-calendar-nav strong { min-width: 10ch; text-align: center; text-transform: capitalize; }
.leo-calendar-nav a, .leo-agenda-more a, .leo-agenda-jump a {
  color: var(--agenda-ink);
  background: linear-gradient(115deg, #5a2178, #75253e);
  border: 1px solid var(--agenda-line);
  border-radius: 7px;
  display: inline-block;
  padding: .45em .8em;
  text-decoration: none;
}
.leo-calendar-nav a:hover, .leo-agenda-more a:hover, .leo-agenda-jump a:hover, .leo-agenda-card a:hover { color: #fff5cd; text-decoration: underline; }
.leo-agenda-jump { text-align: center; margin: 6px 0 28px; }
.leo-calendar-grid { width: 100%; table-layout: fixed; margin: 0; border-collapse: collapse; }
.leo-calendar-grid th, .leo-calendar-grid td { border: 1px solid #a77a9070; padding: 7px; text-align: left; overflow-wrap: anywhere; }
.leo-calendar-grid th { text-align: center; font-size: .84rem; color: var(--agenda-gold); }
.leo-calendar-grid td { vertical-align: top; height: 76px; background: #200b25a6; }
.leo-calendar-grid .leo-calendar-blank { background: transparent; }
.leo-calendar-grid .leo-calendar-today { box-shadow: inset 0 0 0 2px #f2a966; }
.leo-day-number { color: var(--agenda-gold); font-weight: 700; display: inline-block; }
.leo-calendar-grid ul { list-style: none; padding: 0; margin: 4px 0; }
.leo-calendar-grid li { font-size: .78rem; line-height: 1.3; margin: 4px 0; }
.leo-calendar-grid li a { color: inherit; }
.leo-calendar-status { display: block; color: #f2c1ff; margin: 2px 0; }
.leo-calendar-dot { display: inline-block; width: .5em; height: .5em; border-radius: 50%; background: currentColor; margin-right: .32em; vertical-align: .12em; }
.leo-date-next { color: #ffd69d; }
.leo-date-past { color: #e8b9f8; }
.leo-calendar-key { display: flex; gap: 18px; margin: 14px 0; font-size: .88rem; }
.leo-calendar-list { list-style: none; margin: 14px 0 22px; padding: 0; }
.leo-calendar-list li { display: grid; grid-template-columns: 5ch minmax(0, 1fr) auto; column-gap: 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid #a77a9059; }
.leo-calendar-list time, .leo-calendar-list a { color: var(--agenda-ink); }
.leo-calendar-list li > span { font-size: .78rem; color: var(--agenda-gold); }
.leo-agenda-empty { color: #f5d8ed; }
.leo-agenda-photos summary { color: var(--agenda-gold); cursor: pointer; margin-top: 8px; }
.leo-agenda-photos div { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.leo-agenda-photos img { width: 68px; height: 58px; object-fit: cover; border-radius: 5px; }
.leo-agenda-admin-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(290px, 1fr); gap: 20px; align-items: start; }
.leo-agenda-admin .leo-calendar { margin: 0; padding: 18px; }
.leo-agenda-admin .leo-calendar h2 { font-size: 1.65rem; }
.leo-agenda-admin .leo-day-number { padding: 3px 7px; border-radius: 4px; background: #512342; }
.leo-agenda-admin #leo-event-form { padding: 18px; background: #fff; border: 1px solid #c3c4c7; border-radius: 10px; }
.leo-agenda-admin #leo-event-form h2 { margin-top: 0; }
.leo-agenda-admin label { display: block; font-weight: 600; margin: 12px 0 5px; }
.leo-agenda-admin form input:not([type=hidden]), .leo-agenda-admin textarea { width: 100%; }
.leo-form-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.leo-media-field { margin-top: 14px; }
.leo-media-preview { display: flex; flex-wrap: wrap; gap: 5px; padding: 5px 0; }
.leo-media-preview img { width: 52px; height: 52px; object-fit: cover; }
.leo-media-clear { margin-left: 6px !important; }
.leo-form-actions { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 1100px) {
  .leo-agenda-admin-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .leo-agenda-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .leo-agenda-cards { grid-template-columns: minmax(0, 1fr); }
  .leo-calendar-grid td { height: 45px; padding: 3px; }
  .leo-calendar-grid th { font-size: .69rem; padding: 3px; }
  .leo-calendar:not(.leo-agenda-admin .leo-calendar) .leo-calendar-event-name { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
  .leo-calendar-grid ul { display: flex; flex-wrap: wrap; gap: 2px; }
  .leo-calendar-grid .leo-calendar-dot { margin-right: 0; }
  .leo-calendar-list li { grid-template-columns: 5ch minmax(0, 1fr) auto; font-size: .88rem; }
  .leo-agenda-admin .leo-calendar-grid li { font-size: .66rem; }
}

/* Calendrier et espaces La Scène */
.leo-calendar {
  background:
    radial-gradient(ellipse at 8% 0%, #6e2d874a, transparent 48%),
    linear-gradient(125deg, #30113d 0%, #261126 53%, #4d172c 100%);
}
.leo-calendar[id] { scroll-margin-top: 24px; }
.leo-calendar-grid { border: 0; border-collapse: separate; border-spacing: 5px; }
.leo-calendar-grid th { border: 0; padding-block: 6px; letter-spacing: .1em; text-transform: uppercase; }
.leo-calendar-grid td { border-color: #bc82a13d; border-radius: 9px; background: #1f0a2391; }
.leo-calendar-grid .leo-calendar-blank { border-color: transparent; }
.leo-calendar-grid .leo-calendar-filled { background: linear-gradient(140deg, #5b2462, #4b1d3f 65%, #632137); }
.leo-calendar-grid .leo-calendar-today { border-color: #ffc07e; box-shadow: inset 0 0 0 1px #ffc07e; }
.leo-calendar-grid li a { display: block; padding: 5px 4px; border-radius: 5px; background: #200c29aa; text-decoration: none; }
.leo-calendar-grid li a:hover { background: #782f60; color: #fff1d9; }
.leo-calendar-nav strong { font: 700 clamp(1.05rem, 2vw, 1.4rem)/1.2 Georgia, serif; }
.leo-calendar-key span { padding: .26em .65em; border: 1px solid #bf8a9a70; border-radius: 999px; background: #1d0d21; }
.leo-calendar-list-title { color: #ffdfbb; font: 700 clamp(1.28rem, 3vw, 1.9rem)/1.2 Georgia, serif; margin: 1.3em 0 .65em; }
.leo-calendar-list li { padding: 10px 8px; }
.leo-calendar-list li:nth-child(odd) { background: #5b285833; }
.leo-calendar-list li > span { white-space: nowrap; }
.leo-agenda-jump, .leo-news-program { text-align: center; margin: 8px auto 16px; }

.leo-news-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: .7em 1.02em;
  border: 2px solid #ffd090;
  border-radius: 9px;
  background: var(--leo-accent-surface);
  color: #fff3e0 !important;
  font: 700 1rem/1.25 Georgia, serif;
  text-decoration: none !important;
  cursor: pointer;
}
.leo-news-cta:hover { background: linear-gradient(130deg, #7c359d 0%, #9c3456 100%); }
.leo-news-cta:focus-visible, .leo-calendar a:focus-visible, .leo-team-portal a:focus-visible { outline: 2px solid #ffd090; outline-offset: 3px; }
.leo-news-hero { text-align: center; position: relative; margin: 1rem auto .2rem; }

.leo-news-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(22px, 4vw, 52px);
  width: min(1150px, calc(100% - 32px));
  margin: clamp(26px, 5vw, 62px) auto;
  padding: clamp(22px, 4vw, 48px);
  border: 2px solid #e1a97e;
  border-radius: 16px;
  background: radial-gradient(ellipse at 5% 0%, #8c35a3, transparent 72%), var(--leo-card-surface);
  color: #fff1df;
  box-shadow: 0 8px 0 #1c0b2080;
  scroll-margin-top: 110px;
}
.leo-news-banner .leo-agenda-kicker { color: #ffdaa9; margin: 0 0 .65em; }
.leo-news-banner h2 {
  color: #ffe1b2;
  font: 700 clamp(1.85rem, 4.4vw, 3.4rem)/1.08 Georgia, serif;
  margin: 0 0 .28em;
}
.leo-news-banner-copy > p:last-child { margin: 0; max-width: 58ch; font-size: clamp(1rem, 2vw, 1.125rem); line-height: 1.55; }
.leo-news-banner-action {
  display: grid;
  justify-items: center;
  gap: .65rem;
  border-left: 2px dashed #e1a97e99;
  padding-left: clamp(22px, 4vw, 52px);
  text-align: center;
}
.leo-news-banner .leo-news-cta {
  min-height: 48px;
  background: linear-gradient(125deg, #ffe3b4, #f3af71);
  color: #391328 !important;
}
.leo-news-banner .leo-news-cta:hover { background: #fff0cc; }
.leo-news-banner small { color: #fff1df; font-size: .88rem; line-height: 1.35; }

.leo-news-page, .leo-team-portal {
  --agenda-ink: #fff1e2;
  --agenda-gold: #ffd29f;
  width: min(1240px, 94%);
  margin: clamp(26px, 5vw, 58px) auto 70px;
  color: var(--agenda-ink);
}
.leo-news-page { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); max-width: 1120px; border: 2px solid #b98271; border-radius: 19px; overflow: hidden; }
.leo-news-intro { padding: clamp(24px, 5vw, 68px); background: radial-gradient(ellipse at 0% 0%, #9731b8, #53164d 76%); }
.leo-news-intro h2, .leo-team-head h2, .leo-team-contacts h2 { color: var(--agenda-ink); font: 400 clamp(1.8rem, 4vw, 3.45rem)/1.05 Georgia, serif; margin: .45em 0; }
.leo-news-sheet { padding: clamp(20px, 4vw, 44px); background: linear-gradient(125deg, #41143e, #681b3b); }
.leo-news-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.leo-news-fields label { display: grid; gap: 4px; font-weight: 650; }
.leo-news-fields input { display: block; box-sizing: border-box; width: 100%; min-width: 0; border: 1px solid #a47795; border-radius: 6px; background: #211020; color: #fff2df; padding: 10px; }
.leo-news-fields input:focus { outline: 2px solid #ffd292; outline-offset: 1px; }
.leo-news-form fieldset { min-width: 0; border: 1px solid #b382958c; border-radius: 12px; margin: 24px 0 20px; padding: 12px 15px 15px; }
.leo-news-form fieldset label { display: flex; align-items: flex-start; gap: .7em; padding: 8px 0; line-height: 1.5; }
.leo-news-form fieldset .leo-news-note { margin: 10px 0 0; color: #f8d6c0; }
.leo-news-consent-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.leo-news-consent-row > label { flex: 1 1 240px; }
.leo-news-form .leo-news-consent-row > select {
  width: auto;
  min-height: 44px;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid #d6a38f;
  border-radius: 8px;
  background: var(--leo-plum);
  color: #fff1df;
  color-scheme: dark;
  font-size: 16px;
  font-weight: 700;
}
.leo-news-consent-row > select:focus-visible { outline: 2px solid #ffd292; outline-offset: 2px; }
.leo-news-form input[type=checkbox] { flex: 0 0 auto; width: 1.05em; height: 1.05em; accent-color: #d68be8; margin: .21em 0 0; }
.leo-news-form legend { padding: 0 .3em; font-weight: 700; }
.leo-news-note, .leo-news-privacy { font-size: .9rem; }
.leo-news-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.leo-news-feedback { padding: .7em .9em; border-radius: 8px; border: 1px solid #bd8b9a; background: #4c2451; }
.leo-news-privacy { margin-top: 18px; }
.leo-news-privacy summary { cursor: pointer; font-weight: 700; }
.leo-news-privacy p { margin: .7em 0; }
.leo-news-privacy a { color: #ffd29f; }
.site-main article:has(.leo-news-page, .leo-team-portal) > .entry-header { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.leo-team-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: clamp(18px, 3.5vw, 36px); border: 2px solid #b98271; border-radius: 15px; background: linear-gradient(115deg, #56216d, #67213f); }
.leo-team-head p, .leo-team-head h2 { margin: 0; }
.leo-team-head h2 { margin-top: .35em; }
.leo-team-head a, .leo-team-tabs a { color: #ffe0b2; }
.leo-team-tabs, .leo-team-export { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.leo-team-tabs a { padding: .6em .9em; border-radius: 7px; border: 1px solid #b98271; text-decoration: none !important; }
.leo-team-tabs a[aria-current=page] { background: #672850; color: #fff0df; }
.leo-team-portal .leo-agenda-admin { margin: 0; }
.leo-team-portal .leo-agenda-admin > h1 { display: none; }
.leo-team-portal #leo-event-form { color: #fff1e2; background: #3d1639; border-color: #b98271; }
.leo-team-portal #leo-event-form h2 { color: #ffdfbb; }
.leo-team-portal #leo-event-form input:not([type=hidden]), .leo-team-portal #leo-event-form textarea { background: #211020; color: #fff1e2; border: 1px solid #a47795; border-radius: 6px; padding: .5em; color-scheme: dark; }
.leo-team-portal #leo-event-form a, .leo-team-portal .button-link { color: #ffdcaa; }
.leo-team-portal #leo-event-form .button, .leo-team-table .button { color: #fff2df; background: #672850; border: 1px solid #a47795; border-radius: 6px; padding: .45em .7em; text-decoration: none; cursor: pointer; }
.leo-team-portal #leo-event-form .button-primary { background: #872d5a; }
.leo-team-contacts { padding: clamp(16px, 3.5vw, 38px); background: linear-gradient(135deg, #371546, #42152b); border: 2px solid #b98271; border-radius: 13px; }
.leo-team-table-wrap { overflow-x: auto; }
.leo-team-table { min-width: 680px; }
.leo-team-table td, .leo-team-table th { text-align: left; border-color: #ad7d9290; }
.leo-team-table td form { margin: 0; }
.leo-news-fiches { min-width: 810px; }
.leo-news-agreement, .leo-news-coordinate { display: block; }
.leo-news-agreement { color: #ffd8a8; font-size: .9em; font-weight: 700; }
.leo-news-coordinate { overflow-wrap: anywhere; }
.leo-news-fiche-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.leo-team-table .leo-fiche-export { background: #ffd29f; color: #391328; border-color: #ffd29f; font-weight: 700; }
.leo-team-portal .notice { border-left: 3px solid #e0a878; padding: .6em 1em; margin: 0 0 12px; background: #4c2451; }
.leo-team-portal .notice p { margin: 0; }
.leo-bar-editor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 16px; }
.leo-bar-card-form { min-width: 0; padding: 16px; border: 1px solid #b382958c; border-radius: 12px; background: #260e25; }
.leo-bar-card-form h3 { color: #ffe2bd; margin: 0 0 12px; }
.leo-bar-card-form label { display: block; margin: 0 0 6px; color: #fff1e2; font-weight: 700; }
.leo-bar-card-form input[type=file] { max-width: 100%; }
.leo-bar-card-form a { color: #ffd29f; }
.leo-bar-card-preview { display: grid; place-items: center; height: 180px; border: 1px dashed #b382958c; border-radius: 8px; background: #1d0b20; }
.leo-bar-card-preview img { max-width: 100%; width: auto; max-height: 164px; height: auto; object-fit: contain; }
.leo-bar-editor-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

@media (max-width: 767px) {
  body header.elementor.elementor-location-header {
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
  }
  body header.elementor.elementor-location-header > .elementor-element.elementor-element-587c521[data-id] {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 44px !important;
    grid-template-rows: auto !important;
    align-items: center;
    min-height: 66px !important;
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
    gap: 0 !important;
    padding: 8px 12px !important;
  }
  body header.elementor.elementor-location-header > .elementor-element-587c521.elementor-sticky--active {
    left: 0 !important;
    right: 0 !important;
  }
  body .elementor-location-header .elementor-element-587c521 > .elementor-element-8a7b1d2 {
    grid-area: 1 / 2 !important;
    width: 100% !important;
    text-align: center !important;
  }
  body .elementor-location-header .elementor-element-8a7b1d2 .elementor-heading-title {
    font-size: clamp(1.05rem, 5.5vw, 1.5rem) !important;
    line-height: 1.15 !important;
    text-align: center !important;
  }
  body .elementor-location-header .elementor-element-587c521 > .elementor-element-7ba37db {
    grid-area: 1 / 3 !important;
    width: 44px !important;
  }
  .elementor-location-header [data-id="7ba37db"] .elementor-menu-toggle {
    box-sizing: border-box;
    width: 44px;
    min-height: 44px !important;
    padding: 8px !important;
  }
  .elementor-location-header [data-id="7ba37db"] .elementor-nav-menu--dropdown {
    margin-top: 11px !important;
  }
  body .elementor-location-header [data-id="7ba37db"] .elementor-nav-menu--dropdown a.elementor-item {
    transform: none !important;
    min-height: 44px;
  }
  body #page .leo-instagram-sticky {
    inset: 11px auto auto 12px !important;
    transform: none !important;
  }
  body.admin-bar #page .leo-instagram-sticky {
    top: calc(11px + var(--wp-admin--admin-bar--height, 46px)) !important;
  }
  body.home .elementor-widget-html .leo-cabaret { padding-top: 42px !important; }
  body.home .leo-cabaret .leo-stage-content .leo-actions {
    align-items: center !important;
    justify-content: center !important;
    margin: 24px auto 0 !important;
  }
  body.home .leo-cabaret .leo-actions .leo-program-disc {
    align-self: center !important;
    margin: 0 !important;
    transform: rotate(5deg);
  }
  body.home .leo-cabaret .leo-news-hero { margin: 24px auto 14px; }
  .leo-news-banner {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    scroll-margin-top: 76px;
  }
  .leo-news-banner-copy > p:last-child { margin-inline: auto; }
  .leo-news-banner-action {
    border-left: 0;
    border-top: 2px dashed #e1a97e99;
    padding: 18px 0 0;
  }
}
@media (max-width: 680px) {
  .leo-news-page { grid-template-columns: minmax(0, 1fr); margin-top: 18px; }
  .leo-news-intro { text-align: center; }
  .leo-news-intro > p:last-child { margin-bottom: 0; }
  .leo-news-page { font-size: 1rem; line-height: 1.5; }
  .leo-news-fields { grid-template-columns: minmax(0, 1fr); }
  .leo-news-fields input { min-height: 44px; font-size: 16px; }
  .leo-calendar-grid { border-spacing: 2px; }
  .leo-calendar-grid td { border-radius: 5px; }
  .leo-calendar-grid li a { padding: 0 2px; }
  .leo-calendar-grid th { letter-spacing: 0; }
  .leo-team-head { flex-direction: column; align-items: start; }
}
.elementor-location-header a.elementor-item[href$="/actualites/"] {
  color: #ffe4bd !important;
  background: linear-gradient(130deg, #642781, #82294a) !important;
  border: 1px solid #e2a583;
  border-radius: 8px;
  font-weight: 700;
}

/* Astra fixe la couleur des libellés en dehors du thème des formulaires. */
.leo-news-form label, .leo-news-form legend,
.leo-team-portal #leo-event-form label, .leo-team-table th {
  color: #fff0df !important;
}
.leo-news-fields label:has(> span) { display: block; }
.leo-news-fields label:has(> span) input { margin-top: 4px; }

.leo-team-login { max-width: 560px; }
.leo-team-login #loginform label { display: block; color: #fff0df; font-weight: 700; margin-bottom: 5px; }
.leo-team-login #loginform input[type=text], .leo-team-login #loginform input[type=password] {
  display: block; width: 100%; padding: .65em; border: 1px solid #a47795; border-radius: 7px; background: #211020; color: #fff0df;
}
.leo-team-login #wp-submit { background: #792d65; border: 1px solid #ffd090; color: #fff0df; border-radius: 8px; }
.leo-team-login a { color: #ffdaac; }
.leo-team-login #loginform input[type=email] {
  display: block; width: 100%; padding: .65em; border: 1px solid #a47795; border-radius: 7px; background: #211020; color: #fff0df;
}
.leo-team-head form { margin: 0; }
.leo-team-portal #leo-event-form input[type=checkbox] { width: auto; }

/* Réduire la fiche interne aux champs utilisés pour publier. */
.leo-team-portal .leo-team-head { padding-block: 20px; }
.leo-team-portal .leo-team-head h2 { font-size: clamp(1.55rem, 3.1vw, 2.5rem); }
.leo-team-portal .leo-agenda-admin-layout { gap: 16px; }
.leo-team-portal .leo-calendar h2, .leo-team-portal #leo-event-form h2 { font-size: 1.35rem; }
.leo-team-portal .leo-calendar-grid td { min-height: 60px; }
.leo-team-portal .leo-extra-media { padding: .65rem 0; margin-top: .4rem; border-top: 1px solid #b982715e; }
.leo-team-portal .leo-extra-media summary { color: #ffdaac; cursor: pointer; }
.leo-team-portal #leo-event-form input[type=file] { color: #fff0df; padding: 5px; background: #2d152a; }
.leo-team-portal #leo-event-form input[type=file]::file-selector-button {
  color: #fff0df; background: #6c2b62; border: 1px solid #b98271; border-radius: 5px; padding: .38rem .55rem; cursor: pointer;
}
.leo-team-portal .leo-file-hint { margin: .4rem 0 .75rem; color: #edd3d9; font-size: .82rem; }

.leo-login-password { margin-bottom: 1.4rem; }
.leo-team-login #loginform .leo-password-toggle {
  margin-top: .45rem;
  padding: .2rem 0;
  border: 0;
  background: transparent;
  color: #ffdaac;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: .9rem;
  cursor: pointer;
}
.leo-team-login #loginform .leo-password-toggle:focus-visible {
  outline: 2px solid #ffd090;
  outline-offset: 3px;
}

.leo-team-portal .leo-calendar-grid .leo-team-day { position: relative; cursor: pointer; }
.leo-team-portal .leo-team-day-link::after { position: absolute; inset: 0; z-index: 1; content: ''; border-radius: 9px; }
.leo-team-portal .leo-team-day-link:focus-visible::after,
.leo-team-portal .leo-team-day-selected { box-shadow: inset 0 0 0 2px #ffd090; }
.leo-team-portal .leo-team-day:hover { background-color: #492044; }
.leo-team-portal .leo-team-day li a { position: relative; z-index: 2; }
.leo-team-portal #leo-event-form { scroll-margin-top: 145px; }
.leo-team-portal #leo-event-form .leo-local-poster { border: 1px dashed #b98271; border-radius: 8px; padding: 0 12px; }
.leo-team-portal #leo-event-form .leo-poster-dragover { background: #682450; }
.leo-team-portal #leo-event-form [data-leo-poster-preview][hidden] { display: none; }
.leo-team-portal #leo-event-form [data-leo-poster-preview] img { width: 82px; height: 108px; object-fit: contain; background: #211020; border-radius: 4px; }

/* Calendrier public */
.leo-calendar-public {
  padding: clamp(13px, 3vw, 34px);
  border: 1px solid #d491a566;
  border-radius: 24px;
  background: var(--leo-surface);
  scroll-margin-top: 104px !important;
}
.leo-calendar-public .leo-calendar-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 16px;
  margin: 20px 0 10px;
}
.leo-calendar-public .leo-calendar-nav,
.leo-calendar-public .leo-calendar-key { margin: 0; gap: 7px; }
.leo-calendar-public .leo-calendar-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #dfa88b70;
  border-radius: 999px;
  background: #512044;
  text-decoration: none;
}
.leo-calendar-public .leo-calendar-nav a:hover { background: #763158; }
.leo-calendar-public .leo-calendar-grid td {
  height: 58px;
  padding: 6px;
  border-color: #d58fc92b;
  border-radius: 13px;
  background: #1d0c226b;
}
.leo-calendar-public .leo-calendar-grid .leo-calendar-blank { background: transparent; border-color: transparent; }
.leo-calendar-public .leo-calendar-grid .leo-calendar-filled { background: #8f2d648c; }
.leo-calendar-public .leo-calendar-grid .leo-calendar-today { border-color: #ffc07e; }
.leo-calendar-public .leo-calendar-grid li { margin: 3px 0 0; }
.leo-calendar-public .leo-calendar-grid li a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 3px;
  border-radius: 8px;
  background: #1e0a254d;
  text-decoration: none;
}
.leo-calendar-public .leo-calendar-grid li a:hover { background: #8c3a6b; }
.leo-calendar-public .leo-calendar-event-name { font: 700 .8rem/1.25 system-ui, sans-serif; }
.leo-calendar-preview {
  display: grid;
  flex: 0 0 auto;
  width: clamp(26px, 3.2vw, 52px);
  aspect-ratio: 210 / 297;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: linear-gradient(150deg, #7d4081, #60233c);
  color: #ffd398;
}
.leo-calendar-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.leo-agenda-cover img[src*="6.11.2026-SOIREE-LATINA"],
.leo-calendar-preview img[src*="6.11.2026-SOIREE-LATINA"] { transform: scale(1.14); }

body .elementor.elementor-location-header .elementor-widget-nav-menu nav a.elementor-item {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: .012em;
}
body.home .leo-cabaret video.leo-bg-video {
  filter: blur(3px) !important;
  transform: scale(1.025);
}

/* Palette commune des sections Elementor et des pages WordPress. */
body #page {
  background-color: #2a0d27;
}
body #page :is(.elementor-location-header > [data-id="587c521"], .elementor-location-footer) {
  background-image: linear-gradient(105deg, var(--leo-violet), var(--leo-plum) 49%, var(--leo-wine)) !important;
}
body #page :is(.leo-day, .leo-info, [data-id="790e096"]) {
  background-image: var(--leo-surface) !important;
}
body #page :is(.leo-menu-preview, .leo-visit-main, .leo-sign) {
  background-image: var(--leo-card-surface) !important;
}
body #page :is(.leo-info-ticket, .leo-visit-stub, .leo-day-row.highlight) {
  background-image: linear-gradient(130deg, #632452, #451430) !important;
}
body #page .leo-marquee {
  background-image: linear-gradient(100deg, #792ca6, #8b2b73 45%, #ab315d) !important;
}
body #page .leo-cabaret .leo-stage-haze {
  background-image: radial-gradient(at 20% 54%, #aa49ef80, transparent 58%), radial-gradient(at 80% 60%, #f19b4338, transparent 43%) !important;
}
body #page .leo-program-disc {
  background-image: linear-gradient(140deg, var(--leo-violet), var(--leo-wine)) !important;
}

/* Textes de lecture, légendes et commandes des pages publiques. */
body #page {
  --leo-reading-font: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
}
body #page :is(main, .elementor-location-footer) :is(
  p:not(.leo-stage-tagline), li, small, figcaption, label, summary, legend, input, select, textarea,
  .elementor-icon-list-text, .elementor-button-text, .leo-day-number
) {
  font-family: var(--leo-reading-font) !important;
}
body #page :is(main, .elementor-location-footer) :is(
  p:not(.leo-stage-tagline), li, figcaption, .elementor-icon-list-text
) { font-weight: 600 !important; }
body #page :is(main, .elementor-location-footer) :is(
  small, label, summary, legend, .elementor-button-text, .leo-agenda-kicker,
  .leo-stage-kicker, .leo-stage-meta, .leo-calendar-key
) { font-weight: 700 !important; }
body #page :is(main, .elementor-location-footer) :is(
  .leo-news-cta, .leo-calendar-nav a, .leo-agenda-jump a, .leo-agenda-more a,
  .leo-day-link, .leo-info-link, .leo-visit-action, .leo-menu-link
) { font-family: var(--leo-reading-font) !important; font-weight: 700 !important; }
body #page :is(.leo-day-copy, .leo-info-ticket-main, .leo-news-intro, .leo-visit-main) p {
  line-height: 1.6;
}
body #page :is(.leo-day-copy, .leo-info-ticket-main) h2 { margin-block-end: .45em; }
body #page :is(.leo-day-copy, .leo-info-ticket-main) p + :is(p, a) { margin-block-start: .65rem; }
body #page .leo-news-privacy { margin-block-start: 22px; }

@media (max-width: 767px) {
  body #page .leo-cabaret .leo-stage-lead {
    max-width: 34ch;
    margin-inline: auto !important;
    font-size: clamp(.95rem, 4vw, 1.05rem) !important;
    line-height: 1.6 !important;
  }
  body #page .leo-news-sheet { padding: 20px 16px 24px; }
  body #page .leo-news-form .leo-news-cta { min-height: 44px; }
}

@media (max-width: 680px) {
  .leo-calendar-public .leo-calendar-grid td { height: 42px; padding: 2px; border-radius: 7px; }
  .leo-calendar-public .leo-calendar-grid ul { display: block; }
  .leo-calendar-public .leo-calendar-grid li a { justify-content: center; padding: 1px; }
  .leo-calendar-preview { width: min(100%, 34px); border-radius: 4px; }
}
.leo-team-portal #leo-event-form [data-leo-save-status]:not([hidden]) { padding: 8px; background: #582445; border-radius: 6px; }

/* Legible reading text and a stronger theatre-inspired heading hierarchy. */
body #page { --leo-reading-font: Montserrat, Roboto, system-ui, -apple-system, "Segoe UI", sans-serif; }
body #page main :is(h2, h3),
body #page main :is(.leo-day, .leo-info) h1 { font-weight: 700 !important; }
body #page main :is(h2, h3) { text-wrap: pretty; }
body #page main :is(.leo-day, .leo-info) :is(h1, h2),
body #page main :is(.leo-calendar, .leo-gallery) h2 {
  letter-spacing: -.025em;
  text-shadow: 0 2px 14px #14051a20;
}
body #page main .entry-title {
  color: #fff0d5 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 700 !important;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.2;
  text-align: center;
  margin: 34px 16px;
  text-wrap: balance;
}
body #page main :is(.leo-stage-tagline, .leo-program-disc) { font-weight: 700 !important; }
body #page main .leo-stage-tagline { text-shadow: 0 2px 14px #21082080; }
body #page main :is(.leo-stage-kicker, .leo-stage-meta, .leo-agenda-kicker) {
  font-weight: 700 !important;
  font-size: max(.75rem, .8em);
  letter-spacing: .12em;
}
body #page main :is(button, .elementor-button, .leo-day-link, .leo-info-link, .leo-menu-link, .leo-visit-action) {
  font-family: var(--leo-reading-font);
  font-weight: 700;
}
body #page main :is(.leo-legal, .leo-menu-preview, .leo-news-intro) h2 {
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 700 !important;
  letter-spacing: -.02em;
}
body #page .leo-legal h2 { padding-top: 12px; border-top: 1px solid #e7ba783b; }
body #page .leo-legal h2::before {
  content: "✦";
  color: #edbd79;
  font-size: .58em;
  margin-right: .65em;
  vertical-align: .15em;
}
/* One consistent set of gold-framed controls, in the footer and legal pages. */
body #page .leo-legal nav,
body #page .leo-legal-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  margin: 0;
}
body #page .leo-legal nav { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid #edbd7940; }
body #page .leo-legal nav a,
body #page .leo-legal-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  min-width: 174px;
  padding: 12px 22px;
  border: 1.5px solid #d7ae76;
  border-radius: 14px;
  color: #fff0d5;
  background: linear-gradient(130deg, #71367e, #632443 90%);
  box-shadow: inset 0 1px 0 #ffe6b52b, 0 4px 0 #170a2080;
  font-family: var(--leo-reading-font) !important;
  font-size: 14px;
  font-weight: 700 !important;
  letter-spacing: .015em;
  line-height: 1.35;
  text-align: center;
  text-decoration: none !important;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
body #page .leo-legal nav a::before,
body #page .leo-legal-buttons a::before { content: "✦"; color: #f7cb87; font-size: 12px; }
body #page .leo-legal nav a:hover,
body #page .leo-legal-buttons a:hover { background: #874068; border-color: #ffe3a4; transform: translateY(-2px); }
body #page .leo-legal nav a:focus-visible,
body #page .leo-legal-buttons a:focus-visible { outline: 3px solid #fff0d5; outline-offset: 4px; }
body #page .leo-legal-buttons a[aria-current="page"],
body.page-id-902 #page .leo-legal nav a[href="/mentions-legales/"],
body.page-id-3 #page .leo-legal nav a[href="/politique-de-confidentialite/"],
body.page-id-904 #page .leo-legal nav a[href="/politique-de-cookies/"] {
  background: linear-gradient(130deg, #ffe4ae, #ddb074);
  color: #3a173a;
  border-color: #ffe4ae;
}
body #page .leo-legal-buttons a[aria-current="page"]::before,
body.page-id-902 #page .leo-legal nav a[href="/mentions-legales/"]::before,
body.page-id-3 #page .leo-legal nav a[href="/politique-de-confidentialite/"]::before,
body.page-id-904 #page .leo-legal nav a[href="/politique-de-cookies/"]::before { color: #642d66; }
body #page .elementor-location-footer [data-id="121fd9f"] {
  width: 100%;
  align-items: center;
  gap: 20px;
  padding: 30px 20px 34px;
}
body #page .elementor-location-footer [data-id="ec2aa42"] { width: 100%; text-align: center; }
body #page .elementor-location-footer [data-id="375d759"] { display: none; }
@media (max-width: 600px) {
  body #page .leo-legal nav,
  body #page .leo-legal-buttons { display: grid; grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; gap: 10px; }
  body #page .leo-legal nav a,
  body #page .leo-legal-buttons a { width: 100%; min-width: 0; min-height: 48px; }
  body #page .elementor-location-footer [data-id="121fd9f"] { padding-inline: 20px; }
  body #page main :is(h2, h3) { overflow-wrap: break-word; }
}
@media (prefers-reduced-motion: reduce) {
  body #page .leo-legal nav a,
  body #page .leo-legal-buttons a { transition: none; transform: none; }
}

/* Monthly programme: a complete poster with an accessible full-size link. */
.leo-monthly-poster {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(240px,360px);
  align-items: center;
  gap: clamp(24px,5vw,64px);
  max-width: 1120px;
  margin: 36px auto;
  padding: clamp(24px,4vw,52px);
  border: 1.5px solid #c49b69;
  border-radius: 24px;
  color: #fff0d5;
  background: var(--leo-surface);
  box-shadow: 0 12px 32px #16071928;
}
.leo-monthly-copy h2 { color: #fff0d5; margin: 12px 0 24px; font: 700 clamp(30px,3.8vw,48px)/1.12 Georgia,serif; letter-spacing: -.025em; }
.leo-monthly-copy h2 span { color: #ffd398; }
.leo-monthly-copy p:not(.leo-agenda-kicker) { max-width: 38ch; line-height: 1.7; margin-bottom: 24px; }
.leo-monthly-copy small { display: block; margin-top: 16px; font-size: .8rem; color: #eed3c3; }
.leo-monthly-copy .leo-news-cta { min-height: 48px; text-align: center; }
.leo-monthly-image { position: relative; display: block; overflow: hidden; border: 1px solid #e2bb78; border-radius: 16px; box-shadow: 0 8px 0 #1a082b75; background: #260f28; }
.leo-monthly-image img { display: block; width: 100%; height: auto; max-width: 100%; object-fit: contain; }
.leo-monthly-image > span { position: absolute; right: 12px; bottom: 12px; border: 1px solid #ffd398; border-radius: 9px; padding: 6px 12px; background: #2d122dec; color: #fff0d5; font: 700 .75rem/1.3 system-ui,sans-serif; }
.leo-monthly-image:focus-visible { outline: 3px solid #fff0d5; outline-offset: 5px; }
.leo-monthly-select { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:24px 0; }
.leo-monthly-select label { font-weight:700; }
.leo-monthly-select input { min-height:44px; padding:8px 12px; border-radius:8px; border:1px solid #c49b69; background:#26102a; color:#fff0d5; color-scheme:dark; }
.leo-monthly-form { display:grid; grid-template-columns:minmax(180px,280px) minmax(0,1fr); align-items:start; gap:28px; }
.leo-monthly-form .leo-bar-card-preview { min-height:240px; margin:0; text-align:center; }
.leo-monthly-form .leo-bar-card-preview img { max-height:420px; width:auto; max-width:100%; height:auto; object-fit:contain; }
.leo-monthly-form .leo-bar-card-preview span { padding:20px; }
.leo-monthly-fields h3 { margin-top:0; }
@media(max-width:700px) {
  .leo-monthly-poster { grid-template-columns:1fr; margin:24px 12px; padding:24px 20px; gap:28px; }
  .leo-monthly-copy { text-align:center; }
  .leo-monthly-copy p:not(.leo-agenda-kicker) { margin-inline:auto; }
  .leo-monthly-image { width:min(100%,400px); margin-inline:auto; }
  .leo-monthly-form { grid-template-columns:1fr; }
  .leo-monthly-select { align-items:stretch; }
  .leo-monthly-select label { width:100%; }
}
body #page .leo-monthly-copy h2 { color: #fff0d5 !important; }

/* Entire A4 posters: no zoom and no cropping, on public pages and in previews. */
body #page .leo-agenda-cover,
body #page .leo-calendar-preview {
  aspect-ratio: 210 / 297 !important;
  box-sizing: border-box;
  padding: 4px;
  background: #211022;
}
body #page .leo-agenda-cover img,
body #page .leo-calendar-preview img {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  transform: none !important;
  border-radius: 0;
}
body #page .leo-menu-link img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 210 / 297 !important;
  object-fit: contain !important;
  transform: none !important;
  border-radius: 0;
  background: #211022;
}
body #page .leo-monthly-image {
  padding: 4px;
  box-sizing: border-box;
}
body #page .leo-monthly-image img {
  height: auto !important;
  aspect-ratio: 210 / 297;
  object-fit: contain !important;
  transform: none !important;
  border-radius: 0;
}
body.single-evenement #page main [data-id="237e736"] img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 210 / 297;
  object-fit: contain !important;
  transform: none !important;
}
.leo-team-portal #leo-event-form [data-leo-poster-preview] img,
.leo-team-portal #leo-event-form .leo-media-preview > img:only-child {
  width: 106px; height: 150px;
  object-fit: contain; transform: none;
}
.leo-bar-card-preview { height: auto; min-height: 180px; padding: 8px; }
.leo-bar-card-preview img { max-height: 300px; aspect-ratio: 210 / 297; object-fit: contain; transform: none; }
.leo-monthly-form .leo-bar-card-preview img { max-height: 420px; }
/* Inset the complete poster inside the rounded frame, including its corners. */
body #page .leo-agenda-cover img {
  position: absolute !important;
  inset: 8px !important;
  width: calc(100% - 16px) !important;
  height: calc(100% - 16px) !important;
}
body #page .leo-calendar-preview { position: relative; }
body #page .leo-calendar-preview img {
  position: absolute !important;
  inset: 2px !important;
  width: calc(100% - 4px) !important;
  height: calc(100% - 4px) !important;
}
body #page .leo-monthly-image { padding: 8px; }
