/* Event overview: dimensions follow the site's scaled 1920 / 500 layout. */
.page-shell[data-barba-namespace="events"] .container { top: calc(150px * var(--ssw-desktop-scale, 1)); }
.events-page { width: 1620px; margin: 125px auto 0; }
.events-section { border-top:1px solid rgba(255,255,255,.3); padding-top:38px; }
.events-heading { display:flex; align-items:baseline; justify-content:space-between; }
.events-heading h1 { font-size:54px; letter-spacing:-.035em; }
.events-heading > span { font-size:28px; opacity:.65; }
.events-preview { margin-top:35px; }
.events-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:22px; }
.event-card { background:#fff; color:#171717; border-radius:18px; overflow:hidden; }
.event-card img { display:block; width:100%; height:235px; object-fit:cover; }
.event-card__body { padding:25px 25px 24px; min-height:255px; display:flex; flex-direction:column; }
.event-card__meta { display:flex; justify-content:space-between; gap:12px; color:#777; font-size:15px; font-weight:600; }
.event-card h2 { font-size:30px; line-height:1.12; letter-spacing:-.03em; margin:22px 0 32px; }
.event-card__bottom { display:flex; align-items:end; justify-content:space-between; border-top:1px solid #ddd; margin-top:auto; padding-top:20px; }
.event-card time { font-size:29px; font-weight:750; letter-spacing:-.04em; }
.event-card time small { font-size:15px; font-weight:500; color:#777; }
.event-card__arrow { font-size:29px; color:#ad292b; }
.events-empty { display:none; min-height:280px; border:1px solid rgba(255,255,255,.4); border-radius:18px; align-items:center; gap:45px; padding:60px; }
.events-empty > span { font-size:85px; opacity:.75; }
.events-empty h2 { font-size:34px; margin-bottom:12px; }
.events-empty p { font-size:21px; line-height:1.5; opacity:.75; }
.events-outro { margin:130px 0 150px; border-top:1px solid rgba(255,255,255,.3); padding-top:38px; display:grid; grid-template-columns:1fr 1fr; gap:20px 100px; }
.events-outro h2 { font-size:52px; line-height:1.1; letter-spacing:-.03em; grid-row:span 2; }
.events-outro p { font-size:24px; line-height:1.5; max-width:650px; }
.events-outro a { font-size:20px; font-weight:700; text-decoration:underline; text-underline-offset:6px; }
.events-outro a span { margin-left:12px; }
.page-shell[data-barba-namespace="events"] .footer .bas_footer, .page-shell[data-barba-namespace="events"] .footer .deco_footer { width:1620px; }
@media (max-width:1024px) {
 .page-shell[data-barba-namespace="events"] .container { top:var(--ssw-layout-top,80px); width:500px; padding:0 32px 80px; align-items:stretch; overflow:clip; }
 .events-page { width:100%; margin:40px 0 0; }
 .events-section { padding-top:25px; }
 .events-heading h1 { font-size:31px; }
 .events-heading > span { font-size:19px; }
 .events-preview { margin-top:25px; }
 .events-grid { grid-template-columns:1fr; gap:18px; }
 .event-card { display:grid; grid-template-columns:40% 60%; border-radius:13px; min-height:185px; }
 .event-card img { height:100%; min-height:185px; }
 .event-card__body { padding:18px; min-height:185px; }
 .event-card__meta { font-size:12px; }
 .event-card h2 { font-size:22px; margin:13px 0 18px; }
 .event-card time { font-size:20px; }
 .event-card time small { font-size:12px; }
 .event-card__bottom { padding-top:12px; }
 .event-card__arrow { font-size:22px; }
 .events-empty { min-height:230px; padding:28px; gap:20px; }
 .events-empty > span { font-size:46px; }
 .events-empty h2 { font-size:24px; }
 .events-empty p { font-size:16px; }
 .events-outro { margin:75px 0 80px; padding-top:25px; display:block; }
 .events-outro h2 { font-size:34px; margin-bottom:18px; }
 .events-outro p { font-size:18px; margin-bottom:22px; }
 .events-outro a { font-size:16px; }
 .page-shell[data-barba-namespace="events"] .footer .bas_footer, .page-shell[data-barba-namespace="events"] .footer .deco_footer { width:100%; }
}

/* Top spacing for the event overview. */
.events-page { margin-top: 35px; }
@media (max-width: 1024px) {
  .events-page { margin-top: 35px; }
}

/* The event list is the opening section of the page. */
.events-section { border-top: 0; padding-top: 0; }

/* Osmo list/grid control, adapted to the site's event cards. */
.list-grid__bar { display:none; justify-content:flex-end; margin:-70px 0 34px; min-height:36px; }
[data-list-grid-initialized="true"] .list-grid__bar { display:flex; }
.list-grid__toggle { position:relative; display:grid; grid-template-columns:100px 100px; padding:4px; border-radius:100px; background:rgba(255,255,255,.12); }
.list-grid__button { position:relative; z-index:1; padding:10px 5px; background:transparent; color:white; font:600 16px/1 var(--inter); transition:color .3s .2s; }
.list-grid__button[aria-pressed="true"] { color:#8e1f1e; }
.list-grid__button:focus-visible { outline:2px solid white; outline-offset:2px; border-radius:100px; }
.list-grid__indicator { position:absolute; top:4px; bottom:4px; left:4px; width:calc(50% - 4px); border-radius:100px; background:#fff; }
[data-list-grid-view="grid"] .list-grid__indicator { left:50%; }
[data-list-grid-view="list"] .events-grid { grid-template-columns:1fr; gap:12px; }
[data-list-grid-view="list"] .event-card { display:grid; grid-template-columns:260px minmax(0,1fr); min-height:170px; }
[data-list-grid-view="list"] .event-card img { height:100%; min-height:170px; }
[data-list-grid-view="list"] .event-card__body { min-height:170px; display:grid; grid-template-columns:minmax(0,2fr) minmax(180px,1fr) auto; grid-template-rows:auto 1fr; column-gap:35px; align-items:center; padding:22px 32px; }
[data-list-grid-view="list"] .event-card__meta { grid-column:2; grid-row:1 / 3; flex-direction:column; gap:8px; align-items:flex-start; }
[data-list-grid-view="list"] .event-card h2 { grid-column:1; grid-row:1 / 3; margin:0; }
[data-list-grid-view="list"] .event-card__bottom { grid-column:3; grid-row:1 / 3; border:0; padding:0; margin:0; }
@media (max-width:1024px) {
 .list-grid__bar { margin:0 0 20px; }
 .list-grid__toggle { grid-template-columns:82px 82px; }
 .list-grid__button { font-size:14px; }
 [data-list-grid-view="grid"] .events-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
 [data-list-grid-view="grid"] .event-card { display:block; min-height:0; }
 [data-list-grid-view="grid"] .event-card img { height:145px; min-height:0; }
 [data-list-grid-view="grid"] .event-card__body { min-height:190px; padding:15px; }
 [data-list-grid-view="grid"] .event-card h2 { font-size:20px; }
 [data-list-grid-view="list"] .event-card { grid-template-columns:36% minmax(0,1fr); min-height:150px; }
 [data-list-grid-view="list"] .event-card img { min-height:150px; }
 [data-list-grid-view="list"] .event-card__body { min-height:150px; display:flex; padding:15px; }
 [data-list-grid-view="list"] .event-card__meta { width:100%; flex-direction:row; }
 [data-list-grid-view="list"] .event-card h2 { margin:12px 0; }
 [data-list-grid-view="list"] .event-card__bottom { width:100%; border-top:1px solid #ddd; padding-top:10px; margin-top:auto; }
}
@media (prefers-reduced-motion:reduce) { .list-grid__button { transition:none; } }
/* Keep the media frame at a stable aspect ratio while Flip animates it. */
.event-card__media { width:100%; height:235px; overflow:hidden; }
.event-card__media img { width:100%; height:100%; object-fit:cover; }
[data-list-grid-view="list"] .event-card__media { height:170px; }
[data-list-grid-view="list"] .event-card__media img { height:100%; min-height:0; }
@media (max-width:1024px) {
 [data-list-grid-view="grid"] .event-card__media { height:145px; }
 [data-list-grid-view="grid"] .event-card__media img { height:100%; min-height:0; }
 [data-list-grid-view="list"] .event-card__media { height:100%; min-height:150px; }
 [data-list-grid-view="list"] .event-card__media img { height:100%; min-height:150px; }
}

/* With no published cards, show the localized empty state. */
.events-grid:not(:has(.event-card)) { display:none; }
.events-grid:not(:has(.event-card)) + .events-empty { display:flex; }
.events-preview:not(:has(.event-card)) .list-grid__bar { display:none; }

/* A question mark denotes dates not yet announced. */
.event-card__tbd { display:flex; align-items:center; gap:12px; }
.event-card__tbd strong { font-size:29px; line-height:1; }
.event-card__tbd span { color:#666; font-size:16px; font-weight:600; line-height:1.3; }
@media (max-width:1024px) { .event-card__tbd { gap:8px; } .event-card__tbd strong { font-size:20px; } .event-card__tbd span { font-size:12px; } }

/* Keep the shared newsletter footer inside the event page's padded mobile container. */
@media (max-width: 1024px) {
  .page-shell[data-barba-namespace="events"] .footer {
    position: static;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 34px;
  }
  .page-shell[data-barba-namespace="events"] .footer .bas_footer {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 30px;
    border-radius: 12px;
    background-size: cover;
  }
  .page-shell[data-barba-namespace="events"] .footer .bas_footer h2 {
    width: auto;
    font-size: 36px;
    line-height: 1.1;
  }
  .page-shell[data-barba-namespace="events"] .footer .bas_footer h2 span {
    margin-left: 6px;
    font-size: 38px;
  }
  .page-shell[data-barba-namespace="events"] .footer .bas_footer p {
    width: auto;
    margin-top: 14px;
    font-size: 17px;
    line-height: 1.35;
  }
  .page-shell[data-barba-namespace="events"] .footer .bas_footer .box_inscription {
    width: 100%;
    height: auto;
    margin-top: 24px;
    background: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .page-shell[data-barba-namespace="events"] .footer .bas_footer .box_inscription input {
    width: 100%;
    height: 46px;
    padding: 0 18px;
    border-radius: 4px;
    font-size: 18px;
  }
  .page-shell[data-barba-namespace="events"] .footer .bas_footer .box_inscription button.button-023--footer-submit {
    position: static;
    width: 100% !important;
    height: 40px;
    margin: 0;
    font-size: 13px;
  }
  .page-shell[data-barba-namespace="events"] .footer .bas_footer p.newsletter-legal-notice {
    position: static;
    width: auto;
    max-width: 100%;
    margin: 16px 0 0;
    font-size: 12px;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }
  .page-shell[data-barba-namespace="events"] .footer .deco_footer {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    margin: 0;
    justify-content: space-between;
    align-items: flex-end;
  }
  .page-shell[data-barba-namespace="events"] .footer .deco_footer img:first-child { width: 144px; height: auto; }
  .page-shell[data-barba-namespace="events"] .footer .deco_footer img:last-child { width: 180px; height: auto; }
}
@media (max-width: 1024px) {
  .page-shell[data-barba-namespace="events"] .footer .deco_footer { padding-bottom: 122px; }
  .page-shell[data-barba-namespace="events"] .footer .deco_footer > .legal-links { bottom: 90px; }
}
