/*
 * PRO ÉTUDES — Ultimate Patch V2
 * Couche design radicale mais scindée par modules via body classes.
 */

:root {
  --pe-primary:#0E5CAD;
  --pe-primary-hover:#0A4B8E;
  --pe-accent:#00B7FF;
  --pe-bg-dark:#071427;
  --pe-surface-dark:#0B1F33;
  --pe-surface:#FFFFFF;
  --pe-background:#F6F8FB;
  --pe-text:#071427;
  --pe-text-muted:#4B5563;
  --pe-border:#DCE4EE;
  --pe-focus:#FFB000;
  --pe-radius:16px;
  --pe-content-width:1240px;
  --pe-radius-sm:10px;
  --pe-shadow-sm:0 6px 20px rgba(7,20,39,.08);
  --pe-shadow:0 18px 48px rgba(7,20,39,.13);
  --pe-shadow-hover:0 24px 58px rgba(7,20,39,.17);
  --pe-font:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --pe-transition:180ms cubic-bezier(.2,.65,.3,1);
}

/* ---------- FOUNDATION / ACCESSIBILITY ---------- */
html { scroll-padding-top: 96px; }
body.pe-ultimate-patch-v2 {
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}

.pe-skip-link {
  position:fixed;
  left:16px;
  top:12px;
  z-index:2147483647;
  transform:translateY(-150%);
  background:#fff;
  color:var(--pe-text);
  padding:11px 15px;
  border:2px solid var(--pe-primary);
  border-radius:10px;
  box-shadow:var(--pe-shadow);
  font:700 14px/1.2 var(--pe-font);
  text-decoration:none;
}
.pe-skip-link:focus { transform:translateY(0); }

.pe-ultimate-patch-v2 :where(a,button,input,select,textarea,[role="button"],[tabindex]):focus-visible {
  outline:3px solid var(--pe-focus) !important;
  outline-offset:3px !important;
}
.pe-ultimate-patch-v2 :where(button,.button,input[type="submit"],input[type="button"],.elementor-button,.menu-item > a) { min-height:44px; }
.pe-ultimate-patch-v2 :where(img,svg,video) { max-width:100%; }
.pe-ultimate-patch-v2 :where(p,li) { text-wrap:pretty; }
.pe-ultimate-patch-v2 :where(h1,h2,h3,h4,h5,h6) { text-wrap:balance; }
.pe-ultimate-patch-v2 :where(input,select,textarea) { accent-color:var(--pe-primary); }

/* ---------- GLOBAL DESIGN SYSTEM ---------- */
body.pe-v2-design {
  --e-global-color-primary:var(--pe-primary);
  background:var(--pe-background);
  color:var(--pe-text);
  font-family:var(--pe-font);
}
body.pe-v2-design :where(.elementor-section.elementor-section-boxed > .elementor-container,.e-con-boxed > .e-con-inner) {
  max-width:var(--pe-content-width);
}
body.pe-v2-design :where(h1,.elementor-heading-title) { letter-spacing:-.03em; }
body.pe-v2-design :where(h1) { line-height:1.05; }
body.pe-v2-design :where(h2) { line-height:1.12; }
body.pe-v2-design :where(h3,h4) { line-height:1.2; }
body.pe-v2-design :where(p,li) { line-height:1.68; }
body.pe-v2-design :where(.elementor-widget-text-editor p:last-child) { margin-bottom:0; }

/* ---------- CTA / BUTTONS ---------- */
body.pe-v2-design.pe-v2-cta :where(.elementor-button,.wp-element-button,.button,.woocommerce a.button,.woocommerce button.button,.learndash-wrapper .ld-button,.learndash-wrapper a.ld-button) {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  border:0;
  border-radius:calc(var(--pe-radius) - 3px);
  min-height:48px;
  padding:12px 20px;
  background:var(--pe-primary);
  color:#fff;
  font-family:var(--pe-font);
  font-weight:750;
  line-height:1.15;
  text-decoration:none;
  box-shadow:0 8px 22px rgba(14,92,173,.18);
  transition:transform var(--pe-transition),box-shadow var(--pe-transition),background var(--pe-transition);
}
body.pe-v2-design.pe-v2-cta :where(.elementor-button,.wp-element-button,.button,.woocommerce a.button,.woocommerce button.button,.learndash-wrapper .ld-button,.learndash-wrapper a.ld-button):hover {
  background:var(--pe-primary-hover);
  color:#fff;
  transform:translateY(-1px);
  box-shadow:0 12px 30px rgba(14,92,173,.26);
}
body.pe-v2-design.pe-v2-cta :where(.elementor-button-link.elementor-size-sm) { min-height:44px; }

/* ---------- HEADER / NAV ---------- */
body.pe-v2-design.pe-v2-header :where(.elementor-location-header,.site-header,.header-main) {
  position:sticky;
  top:0;
  z-index:99990;
  background:rgba(255,255,255,.92);
  border-bottom:1px solid rgba(7,20,39,.08);
  box-shadow:0 2px 14px rgba(7,20,39,.04);
  backdrop-filter:saturate(160%) blur(16px);
  -webkit-backdrop-filter:saturate(160%) blur(16px);
  transition:box-shadow var(--pe-transition),background var(--pe-transition);
}
body.admin-bar.pe-v2-design.pe-v2-header :where(.elementor-location-header,.site-header,.header-main) { top:32px; }
body.pe-v2-design.pe-v2-header.pe-header-scrolled :where(.elementor-location-header,.site-header,.header-main) {
  background:rgba(255,255,255,.97);
  box-shadow:0 10px 32px rgba(7,20,39,.10);
}
body.pe-v2-design.pe-v2-header :where(.elementor-nav-menu--main .elementor-item,.main-navigation a,.site-navigation a) {
  color:var(--pe-text);
  font-weight:650;
  letter-spacing:-.01em;
  border-radius:10px;
  transition:background var(--pe-transition),color var(--pe-transition);
}
body.pe-v2-design.pe-v2-header :where(.elementor-nav-menu--main .elementor-item,.main-navigation a,.site-navigation a):hover,
body.pe-v2-design.pe-v2-header :where(.current-menu-item > a,.current_page_item > a) {
  color:var(--pe-primary);
  background:rgba(14,92,173,.07);
}
body.pe-v2-design.pe-v2-header :where(.elementor-menu-toggle,.menu-toggle) {
  border:1px solid var(--pe-border);
  border-radius:12px;
  background:#fff;
  color:var(--pe-text);
  box-shadow:var(--pe-shadow-sm);
}
body.pe-v2-design.pe-v2-header :where(.elementor-nav-menu--dropdown,.sub-menu) {
  border:1px solid var(--pe-border);
  border-radius:14px;
  overflow:hidden;
  box-shadow:var(--pe-shadow);
}

/* ---------- HOME ---------- */
body.pe-v2-design.pe-v2-home.pe-page-home main,
body.pe-v2-design.pe-v2-home.pe-page-home #content { overflow:clip; }
body.pe-v2-design.pe-v2-home.pe-page-home :where(h1,.elementor-widget-heading h1.elementor-heading-title) {
  color:var(--pe-text);
  font-size:clamp(2.45rem,5.2vw,5.3rem);
  font-weight:850;
  letter-spacing:-.055em;
  line-height:.98;
}
body.pe-v2-design.pe-v2-home.pe-page-home :where(h2,.elementor-widget-heading h2.elementor-heading-title) {
  color:var(--pe-text);
  font-size:clamp(1.85rem,3.3vw,3.15rem);
  font-weight:820;
  letter-spacing:-.04em;
}
body.pe-v2-design.pe-v2-home.pe-page-home :where(.elementor-widget-text-editor,.elementor-widget-theme-post-content) { color:var(--pe-text-muted); }
body.pe-v2-design.pe-v2-home.pe-page-home .pe-hero-surface {
  border-radius:clamp(18px,2vw,28px);
  background:linear-gradient(135deg,var(--pe-bg-dark),var(--pe-surface-dark));
  color:#fff;
  box-shadow:0 28px 80px rgba(7,20,39,.22);
  overflow:hidden;
}

/* ---------- CARDS / FORMATIONS ---------- */
body.pe-v2-design.pe-v2-cards :where(.pe-auto-card,.e-loop-item,.elementor-post,.course-grid > *, .ld-course-list-items .ld_course_grid,.learndash-wrapper .ld-item-list-item) {
  border:1px solid var(--pe-border);
  border-radius:var(--pe-radius);
  background:var(--pe-surface);
  box-shadow:var(--pe-shadow-sm);
}
body.pe-v2-design.pe-v2-cards :where(.pe-auto-card,.e-loop-item,.elementor-post,.course-grid > *) {
  overflow:hidden;
  transition:transform var(--pe-transition),box-shadow var(--pe-transition),border-color var(--pe-transition);
}
body.pe-v2-design.pe-v2-cards :where(.pe-auto-card,.e-loop-item,.elementor-post,.course-grid > *):hover {
  transform:translateY(-4px);
  border-color:rgba(14,92,173,.28);
  box-shadow:var(--pe-shadow-hover);
}
body.pe-v2-design.pe-v2-cards :where(.pe-auto-card,.e-loop-item,.elementor-post) img {
  transition:transform 420ms cubic-bezier(.2,.65,.3,1);
}
body.pe-v2-design.pe-v2-cards :where(.pe-auto-card,.e-loop-item,.elementor-post):hover img { transform:scale(1.025); }
body.pe-v2-design.pe-v2-cards :where(.pe-auto-card h3,.pe-auto-card h4,.e-loop-item h3,.elementor-post h3) {
  color:var(--pe-text);
  font-weight:780;
  letter-spacing:-.025em;
}
body.pe-v2-design.pe-v2-cards :where(.pe-badge,[class*="badge"],[class*="tag"],[class*="pill"]) {
  border-radius:999px;
  font-weight:700;
}

/* ---------- FORMS ---------- */
body.pe-v2-design :where(.elementor-field,.elementor-field-textual,input[type="text"],input[type="email"],input[type="tel"],input[type="number"],input[type="date"],select,textarea) {
  min-height:48px;
  padding:11px 13px;
  border:1px solid var(--pe-border);
  border-radius:12px;
  background:#fff;
  color:var(--pe-text);
  box-shadow:none;
  transition:border var(--pe-transition),box-shadow var(--pe-transition);
}
body.pe-v2-design textarea { min-height:120px; }
body.pe-v2-design :where(.elementor-field,.elementor-field-textual,input,select,textarea):focus {
  border-color:var(--pe-primary);
  box-shadow:0 0 0 4px rgba(14,92,173,.11);
}
body.pe-v2-design :where(label,.elementor-field-label) { color:var(--pe-text);font-weight:650; }

/* ---------- AGENDA ---------- */
body.pe-v2-design.pe-v2-agenda.pe-page-agenda :where(main,#content,.site-main) {
  color:var(--pe-text);
}
body.pe-v2-design.pe-v2-agenda.pe-page-agenda :where([class*="agenda"],[class*="calendar"],[class*="session"],[class*="event"]) :where(select,input[type="search"],input[type="text"],button) {
  border-radius:12px;
}
body.pe-v2-design.pe-v2-agenda.pe-page-agenda :where(.pe-agenda-card,[class*="session-card"],[class*="event-card"],[class*="agenda-card"],article) {
  border:1px solid var(--pe-border);
  border-radius:var(--pe-radius);
  background:#fff;
  box-shadow:var(--pe-shadow-sm);
}
body.pe-v2-design.pe-v2-agenda.pe-page-agenda :where(table) {
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  background:#fff;
  border:1px solid var(--pe-border);
  border-radius:var(--pe-radius);
  overflow:hidden;
}
body.pe-v2-design.pe-v2-agenda.pe-page-agenda :where(th) {
  background:var(--pe-bg-dark);
  color:#fff;
  font-weight:750;
}
body.pe-v2-design.pe-v2-agenda.pe-page-agenda :where(th,td) { padding:13px 14px;border-bottom:1px solid var(--pe-border); }
body.pe-v2-design.pe-v2-agenda.pe-page-agenda :where(tr:last-child td) { border-bottom:0; }

/* ---------- ACADEMY / LEARNDASH ---------- */
body.pe-v2-design.pe-v2-academy.pe-page-academy :where(.learndash-wrapper,.ld-course-list-items) { color:var(--pe-text); }
body.pe-v2-design.pe-v2-academy.pe-page-academy .learndash-wrapper :where(.ld-item-list-item,.ld-table-list,.ld-focus-sidebar,.ld-focus-main) {
  border-color:var(--pe-border);
}
body.pe-v2-design.pe-v2-academy.pe-page-academy .learndash-wrapper :where(.ld-item-list-item,.ld-table-list) {
  border-radius:var(--pe-radius);
  overflow:hidden;
  box-shadow:var(--pe-shadow-sm);
}
body.pe-v2-design.pe-v2-academy.pe-page-academy .learndash-wrapper :where(.ld-item-list-item-preview,.ld-table-list-header) { min-height:56px; }
body.pe-v2-design.pe-v2-academy.pe-page-academy .learndash-wrapper :where(.ld-progress-bar) {
  background:#E8EEF5;
  border-radius:999px;
  overflow:hidden;
}
body.pe-v2-design.pe-v2-academy.pe-page-academy .learndash-wrapper :where(.ld-progress-bar-percentage) { background:var(--pe-primary); }
body.pe-v2-design.pe-v2-academy.pe-page-academy :where(.pe-course-state,[class*="course-status"],[class*="status"]) {
  border-radius:999px;
  font-weight:700;
}

/* ---------- FOOTER ---------- */
body.pe-v2-design.pe-v2-footer :where(.elementor-location-footer,.site-footer,footer.site-footer) {
  background:var(--pe-bg-dark);
  color:rgba(255,255,255,.80);
  border-top:1px solid rgba(255,255,255,.08);
}
body.pe-v2-design.pe-v2-footer :where(.elementor-location-footer,.site-footer,footer.site-footer) :where(h2,h3,h4,.elementor-heading-title) {
  color:#fff;
}
body.pe-v2-design.pe-v2-footer :where(.elementor-location-footer,.site-footer,footer.site-footer) a {
  color:rgba(255,255,255,.82);
  text-decoration-thickness:1px;
  text-underline-offset:4px;
}
body.pe-v2-design.pe-v2-footer :where(.elementor-location-footer,.site-footer,footer.site-footer) a:hover { color:var(--pe-accent); }

/* ---------- MOBILE CONVERSION BAR ---------- */
.pe-mobile-conversion { display:none; }
@media (max-width:767px) {
  body.pe-ultimate-patch-v2 { padding-bottom:82px; }
  body.admin-bar.pe-v2-design.pe-v2-header :where(.elementor-location-header,.site-header,.header-main) { top:46px; }
  .pe-mobile-conversion {
    position:fixed;
    left:8px;
    right:8px;
    bottom:max(8px,env(safe-area-inset-bottom));
    z-index:999999;
    display:grid;
    grid-auto-flow:column;
    grid-auto-columns:1fr;
    gap:7px;
    padding:7px;
    background:rgba(255,255,255,.96);
    border:1px solid rgba(7,20,39,.10);
    border-radius:17px;
    box-shadow:0 18px 52px rgba(7,20,39,.20);
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
  }
  .pe-mobile-action {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    min-height:50px;
    padding:7px 9px;
    border-radius:12px;
    color:var(--pe-text);
    text-decoration:none;
    font:750 13px/1 var(--pe-font);
    background:#F0F4F8;
  }
  .pe-mobile-action-primary { background:var(--pe-primary);color:#fff; }

  body.pe-v2-design.pe-v2-home.pe-page-home :where(h1,.elementor-widget-heading h1.elementor-heading-title) { font-size:clamp(2.15rem,11vw,3.35rem); }
  body.pe-v2-design.pe-v2-home.pe-page-home :where(h2,.elementor-widget-heading h2.elementor-heading-title) { font-size:clamp(1.7rem,8vw,2.45rem); }

  body.pe-v2-design.pe-v2-agenda.pe-page-agenda :where(table) { display:block;overflow-x:auto;-webkit-overflow-scrolling:touch; }
  body.pe-v2-design.pe-v2-agenda.pe-page-agenda :where(th,td) { white-space:nowrap; }
}

@media (max-width:480px) {
  .pe-mobile-action span { font-size:12px; }
  body.pe-v2-design :where(.elementor-button,.wp-element-button,.button) { width:auto; }
}

/* ---------- REDUCED MOTION / PRINT ---------- */
@media (prefers-reduced-motion:reduce) {
  .pe-ultimate-patch-v2 *,
  .pe-ultimate-patch-v2 *::before,
  .pe-ultimate-patch-v2 *::after {
    scroll-behavior:auto !important;
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
}
@media print {
  .pe-mobile-conversion,.pe-skip-link { display:none !important; }
  body.pe-ultimate-patch-v2 { background:#fff !important;padding-bottom:0 !important; }
}

/* ==========================================================================
   V2.2 — CALENDRIER REBUILD ENGINE
   Le calendrier visible est reconstruit depuis les H3/H4/H5 sémantiques déjà
   rendus par WordPress. Les anciennes grilles Elementor restent dans le DOM
   pour le contenu/SEO mais sont masquées visuellement.
   ========================================================================== */

.pe-v22-hide-original {
  display:none !important;
  visibility:hidden !important;
  width:0 !important;
  height:0 !important;
  min-height:0 !important;
  max-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  overflow:hidden !important;
}

body.pe-page-agenda {
  overflow-x:clip !important;
}
body.pe-page-agenda :where(main,#content,.site-main,.elementor) {
  max-width:100% !important;
}
body.pe-v22-header-deduped :where(.elementor-location-header,header.site-header,header[role="banner"]) {
  margin-top:0 !important;
}
body.pe-v22-header-deduped .pe-v22-header-kept {
  display:block !important;
}

/* CTA de secours pour les cartes "prochaines ouvertures" existantes. */
body.pe-v2-design.pe-page-agenda .pe-v22-cta {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:44px !important;
  padding:10px 16px !important;
  border:1px solid transparent !important;
  border-radius:12px !important;
  background:var(--pe-primary) !important;
  color:#fff !important;
  opacity:1 !important;
  text-decoration:none !important;
  font-weight:780 !important;
  line-height:1.15 !important;
  box-shadow:0 9px 24px rgba(14,92,173,.20) !important;
}
body.pe-v2-design.pe-page-agenda .pe-v22-cta * {
  color:inherit !important;
  fill:currentColor !important;
  opacity:1 !important;
}
body.pe-v2-design.pe-page-agenda .pe-v22-cta:hover,
body.pe-v2-design.pe-page-agenda .pe-v22-cta:focus-visible {
  background:var(--pe-primary-hover) !important;
  color:#fff !important;
}

/* HERO RECONSTRUIT */
.pe-v22-hero {
  position:relative;
  width:100%;
  margin:0;
  padding:clamp(48px,7vw,96px) 24px;
  overflow:hidden;
  background:
    radial-gradient(circle at 82% 15%,rgba(0,183,255,.24),transparent 34%),
    linear-gradient(128deg,#06182d 0%,#0b3159 55%,#0e5cad 100%);
  color:#fff;
}
.pe-v22-hero::after {
  content:"";
  position:absolute;
  width:420px;height:420px;
  right:-170px;bottom:-240px;
  border-radius:50%;
  background:rgba(255,255,255,.08);
  pointer-events:none;
}
.pe-v22-hero__inner {
  position:relative;
  z-index:1;
  width:min(100%,var(--pe-content-width));
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(320px,.72fr);
  gap:clamp(36px,6vw,82px);
  align-items:center;
}
.pe-v22-hero__copy { max-width:800px; }
.pe-v22-kicker {
  margin:0 0 18px !important;
  color:#8fd5ff !important;
  font:800 clamp(.78rem,1vw,.9rem)/1.2 var(--pe-font) !important;
  letter-spacing:.16em !important;
  text-transform:uppercase !important;
}
.pe-v22-kicker--dark { color:var(--pe-primary) !important; }
.pe-v22-hero h1 {
  margin:0 !important;
  color:#fff !important;
  font:850 clamp(2.7rem,5.4vw,5.6rem)/.98 var(--pe-font) !important;
  letter-spacing:-.055em !important;
  text-shadow:none !important;
}
.pe-v22-hero h1 span { color:#8fd5ff !important; }
.pe-v22-hero__intro {
  max-width:740px;
  margin:24px 0 0 !important;
  color:#dcecff !important;
  font:500 clamp(1rem,1.3vw,1.12rem)/1.65 var(--pe-font) !important;
}
.pe-v22-hero__actions {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:28px;
}
.pe-v22-btn {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:48px !important;
  padding:12px 20px !important;
  border-radius:13px !important;
  font:780 .95rem/1.15 var(--pe-font) !important;
  text-decoration:none !important;
  transition:transform var(--pe-transition),box-shadow var(--pe-transition),background var(--pe-transition) !important;
}
.pe-v22-btn:hover { transform:translateY(-1px); }
.pe-v22-btn--light {
  background:#fff !important;
  color:#071427 !important;
  box-shadow:0 12px 30px rgba(0,0,0,.14) !important;
}
.pe-v22-btn--ghost {
  background:transparent !important;
  color:#fff !important;
  border:1px solid rgba(255,255,255,.46) !important;
}
.pe-v22-btn--primary {
  background:var(--pe-primary) !important;
  color:#fff !important;
  border:1px solid var(--pe-primary) !important;
  box-shadow:0 10px 24px rgba(14,92,173,.22) !important;
}
.pe-v22-btn--primary:hover { background:var(--pe-primary-hover) !important; }
.pe-v22-hero__note {
  max-width:760px;
  margin:24px 0 0 !important;
  padding:14px 16px;
  border-left:3px solid #8fd5ff;
  background:rgba(255,255,255,.07);
  color:#dbeaff !important;
  font:500 .9rem/1.55 var(--pe-font) !important;
  border-radius:0 12px 12px 0;
}
.pe-v22-next {
  width:100%;
  max-width:440px;
  justify-self:end;
  padding:clamp(24px,3vw,34px);
  border:1px solid rgba(255,255,255,.55);
  border-radius:22px;
  background:#fff;
  color:var(--pe-text);
  box-shadow:0 28px 64px rgba(1,15,31,.24);
}
.pe-v22-next__eyebrow {
  margin:0 0 8px !important;
  color:var(--pe-primary) !important;
  font:850 .74rem/1.2 var(--pe-font) !important;
  text-transform:uppercase;
  letter-spacing:.14em;
}
.pe-v22-next__date {
  margin:0 0 12px !important;
  color:var(--pe-text) !important;
  font:850 clamp(1.9rem,3vw,2.75rem)/1 var(--pe-font) !important;
  letter-spacing:-.04em;
}
.pe-v22-next h2 {
  margin:0 0 10px !important;
  color:var(--pe-text) !important;
  font:820 clamp(1.2rem,1.7vw,1.55rem)/1.15 var(--pe-font) !important;
  letter-spacing:-.025em !important;
}
.pe-v22-next__location {
  margin:0 0 16px !important;
  color:var(--pe-text-muted) !important;
}
.pe-v22-next .pe-v22-btn { width:100%; margin-top:18px; }

/* AGENDA RECONSTRUIT */
.pe-v22-agenda {
  width:100%;
  padding:clamp(48px,6vw,84px) 24px;
  background:#f5f8fc;
  color:var(--pe-text);
}
.pe-v22-agenda__inner {
  width:min(100%,var(--pe-content-width));
  margin:0 auto;
}
.pe-v22-agenda__head {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:28px;
  align-items:end;
  margin-bottom:28px;
}
.pe-v22-agenda__head h2 {
  margin:0 0 10px !important;
  color:var(--pe-text) !important;
  font:850 clamp(2rem,3.5vw,3.6rem)/1.02 var(--pe-font) !important;
  letter-spacing:-.045em !important;
}
.pe-v22-agenda__head p:not(.pe-v22-kicker) {
  margin:0 !important;
  max-width:760px;
  color:var(--pe-text-muted) !important;
}
.pe-v22-summary {
  min-width:150px;
  padding:16px 18px;
  border:1px solid var(--pe-border);
  border-radius:16px;
  background:#fff;
  box-shadow:var(--pe-shadow-sm);
  text-align:center;
}
.pe-v22-summary strong {
  display:block;
  color:var(--pe-primary);
  font:850 2rem/1 var(--pe-font);
}
.pe-v22-summary span {
  display:block;
  margin-top:5px;
  color:var(--pe-text-muted);
  font-size:.8rem;
  font-weight:700;
}

.pe-v22-filters {
  display:grid;
  grid-template-columns:minmax(240px,1.35fr) minmax(210px,.85fr) auto;
  gap:14px 18px;
  align-items:end;
  padding:20px;
  border:1px solid var(--pe-border);
  border-radius:18px;
  background:#fff;
  box-shadow:var(--pe-shadow-sm);
}
.pe-v22-field,
.pe-v22-filter-group {
  min-width:0;
}
.pe-v22-field > span,
.pe-v22-filter-group > span {
  display:block;
  margin:0 0 7px;
  color:var(--pe-text);
  font:800 .72rem/1.2 var(--pe-font);
  letter-spacing:.09em;
  text-transform:uppercase;
}
.pe-v22-field input,
.pe-v22-field select {
  width:100% !important;
  min-width:0 !important;
  height:48px !important;
  border:1px solid #cbd9e8 !important;
  border-radius:12px !important;
  background:#fff !important;
  color:var(--pe-text) !important;
  padding:0 13px !important;
  font:600 .92rem/1 var(--pe-font) !important;
}
.pe-v22-filter-group--status { grid-column:1/-1; }
.pe-v22-chips {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.pe-v22-chips button {
  appearance:none;
  min-height:40px !important;
  padding:8px 13px !important;
  border:1px solid #cfdae7 !important;
  border-radius:999px !important;
  background:#fff !important;
  color:var(--pe-text) !important;
  font:750 .82rem/1 var(--pe-font) !important;
  box-shadow:none !important;
  cursor:pointer;
}
.pe-v22-chips button[aria-pressed="true"] {
  border-color:var(--pe-primary) !important;
  background:var(--pe-primary) !important;
  color:#fff !important;
}
.pe-v22-results {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  min-height:44px;
  margin:12px 2px 20px;
  color:var(--pe-text-muted);
  font-size:.86rem;
  font-weight:700;
}
#pe-v22-reset {
  appearance:none;
  min-height:38px !important;
  padding:7px 11px !important;
  border:0 !important;
  background:transparent !important;
  color:var(--pe-primary) !important;
  font-weight:800 !important;
  cursor:pointer;
}

.pe-v22-month {
  display:grid;
  grid-template-columns:150px minmax(0,1fr);
  gap:22px;
  align-items:start;
  margin:0 0 28px;
}
.pe-v22-month[hidden] { display:none !important; }
.pe-v22-month__head {
  position:sticky;
  top:112px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
  padding:16px;
  border:1px solid #cddff0;
  border-radius:16px;
  background:#eef6ff;
}
.pe-v22-month__num {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:58px;
  padding:8px 10px;
  border-radius:11px;
  background:var(--pe-bg-dark);
  color:#fff;
  font:850 1.55rem/1 var(--pe-font);
}
.pe-v22-month__name {
  margin:6px 0 0 !important;
  color:var(--pe-text) !important;
  font:850 1rem/1.1 var(--pe-font) !important;
  white-space:normal !important;
  writing-mode:horizontal-tb !important;
  word-break:normal !important;
}
.pe-v22-month__count {
  margin:0 !important;
  color:var(--pe-text-muted) !important;
  font:700 .74rem/1.2 var(--pe-font) !important;
}
.pe-v22-month__grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  min-width:0;
}
.pe-v22-session {
  min-width:0;
  display:flex;
  flex-direction:column;
  padding:18px;
  border:1px solid #d6e1ec !important;
  border-left:4px solid var(--pe-primary) !important;
  border-radius:16px !important;
  background:#fff !important;
  box-shadow:0 7px 22px rgba(7,20,39,.055) !important;
}
.pe-v22-session[hidden] { display:none !important; }
.pe-v22-session--past { border-left-color:#8b9aaa !important; }
.pe-v22-session--planned { border-left-color:#8758c7 !important; }
.pe-v22-session--exam { border-left-color:#ad6500 !important; }
.pe-v22-session__top {
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
  margin-bottom:14px;
}
.pe-v22-family {
  color:#536a82;
  font:850 .67rem/1.25 var(--pe-font);
  letter-spacing:.08em;
  text-transform:uppercase;
}
.pe-v22-status {
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  padding:6px 9px;
  border-radius:999px;
  font:800 .72rem/1 var(--pe-font);
  white-space:nowrap;
}
.pe-v22-status--open { background:#e1f7ee;color:#08724f; }
.pe-v22-status--past { background:#edf1f5;color:#596878; }
.pe-v22-status--planned { background:#efe9fb;color:#6840a1; }
.pe-v22-status--exam { background:#fff0d7;color:#7a4700; }
.pe-v22-session__date {
  margin:0 0 7px !important;
  color:#075db8 !important;
  font:850 .95rem/1.25 var(--pe-font) !important;
}
.pe-v22-session h3 {
  margin:0 0 8px !important;
  color:var(--pe-text) !important;
  font:820 1.06rem/1.25 var(--pe-font) !important;
  letter-spacing:-.02em !important;
}
.pe-v22-session__location {
  margin:0 0 8px !important;
  color:#60758b !important;
  font:650 .82rem/1.35 var(--pe-font) !important;
}
.pe-v22-session__desc {
  margin:0 0 14px !important;
  color:var(--pe-text-muted) !important;
  font:500 .82rem/1.5 var(--pe-font) !important;
}
.pe-v22-session__cta {
  align-self:flex-start;
  margin-top:auto;
  min-height:42px !important;
  padding:9px 14px !important;
  font-size:.82rem !important;
}
.pe-v22-session__history {
  margin-top:auto;
  color:#6a7887;
  font-size:.78rem;
  font-weight:650;
}
.pe-v22-empty {
  padding:26px;
  border:1px dashed #bfd0e1;
  border-radius:16px;
  background:#fff;
  color:var(--pe-text-muted);
  text-align:center;
  font-weight:700;
}

@media (max-width:1100px) {
  .pe-v22-hero__inner { grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr); gap:34px; }
  .pe-v22-month__grid { grid-template-columns:1fr; }
  .pe-v22-filters { grid-template-columns:1fr 1fr; }
  .pe-v22-filter-group--status { grid-column:1/-1; }
}
@media (max-width:820px) {
  .pe-v22-hero { padding:48px 18px; }
  .pe-v22-hero__inner { grid-template-columns:1fr; }
  .pe-v22-next { justify-self:stretch;max-width:none; }
  .pe-v22-agenda { padding:44px 16px; }
  .pe-v22-agenda__head { grid-template-columns:1fr; }
  .pe-v22-summary { width:max-content; min-width:140px; }
  .pe-v22-filters { grid-template-columns:1fr; padding:16px; }
  .pe-v22-filter-group--status { grid-column:auto; }
  .pe-v22-month { grid-template-columns:1fr; gap:12px; }
  .pe-v22-month__head {
    position:static;
    flex-direction:row;
    align-items:center;
    gap:12px;
    padding:11px 12px;
  }
  .pe-v22-month__name { margin:0 !important; }
  .pe-v22-month__count { margin-left:auto !important; }
}
@media (max-width:520px) {
  .pe-v22-hero h1 { font-size:clamp(2.25rem,12vw,3.4rem) !important; }
  .pe-v22-hero__actions { display:grid; grid-template-columns:1fr; }
  .pe-v22-hero__actions .pe-v22-btn { width:100%; }
  .pe-v22-session__top { flex-direction:column; }
  .pe-v22-status { white-space:normal; }
  .pe-v22-results { align-items:flex-start; }
  .pe-v22-chips { gap:7px; }
  .pe-v22-chips button { flex:1 1 auto; }
}
