:root {
  --ink: #14201c;
  --ink-soft: #2c3d36;
  --paper: #f3efe6;
  --paper-2: #e7e1d4;
  --sage: #3d6b5a;
  --sage-deep: #1f4a3c;
  --copper: #a35c2f;
  --line: rgba(20, 32, 28, 0.12);
  --max: 1120px;
  --header-h: 3.25rem;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(61, 107, 90, 0.18), transparent 55%),
    radial-gradient(900px 400px at 100% 0%, rgba(163, 92, 47, 0.12), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-deep); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--copper); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(243, 239, 230, 0.88);
  border-bottom: 1px solid var(--line);
  overflow: visible;
}

.header-inner {
  --header-h: 3.25rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  overflow: visible;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--ink);
  height: 100%;
  min-width: 0;
}
.brand-logo {
  position: relative;
  top: 0.15rem;
  width: clamp(56px, 7vw, 78px);
  height: auto;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 14px rgba(20, 32, 28, 0.12));
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1.1;
  min-width: 0;
}
.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.brand-sub {
  font-size: 0.62rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 420px) {
  .brand-sub { display: none; }
}

.nav-toggle {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle[aria-expanded="true"] { background: var(--sage-deep); color: #fff; }

.primary-nav {
  display: none;
  width: 100%;
  position: absolute;
  left: 0;
  top: 100%;
  background: rgba(247, 243, 235, 0.98);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 1.25rem 1rem;
}
.primary-nav.is-open { display: block; }

.primary-nav .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.primary-nav .menu > .menu-item > a {
  display: block;
  padding: 0.7rem 0.4rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  border-radius: 6px;
}
.primary-nav .menu > .menu-item > a:hover,
.primary-nav .menu > .menu-item.current-menu-item > a {
  background: rgba(61, 107, 90, 0.12);
  color: var(--sage-deep);
}
.primary-nav .sub-menu {
  list-style: none;
  margin: 0 0 0.4rem 0.75rem;
  padding: 0;
  border-left: 2px solid rgba(61, 107, 90, 0.35);
}
.primary-nav .sub-menu a {
  display: block;
  padding: 0.45rem 0.6rem;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.primary-nav .sub-menu a:hover { color: var(--copper); }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .header-inner { position: relative; }
  .primary-nav {
    display: block;
    position: static;
    width: auto;
    background: transparent;
    border: 0;
    padding: 0;
  }
  .primary-nav .menu {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem;
  }
  .primary-nav .menu > .menu-item {
    position: relative;
  }
  .primary-nav .menu > .menu-item > a {
    padding: 0.55rem 0.7rem;
  }
  .primary-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    margin: 0;
    padding: 0.4rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(20, 32, 28, 0.1);
    z-index: 20;
  }
  .primary-nav .menu > .menu-item:hover > .sub-menu,
  .primary-nav .menu > .menu-item:focus-within > .sub-menu {
    display: block;
  }
  .primary-nav .sub-menu a { border-radius: 6px; }
  .primary-nav .sub-menu a:hover { background: rgba(61, 107, 90, 0.1); }
}

.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid;
  align-items: end;
  color: #f7f3eb;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(20, 32, 28, 0.25) 0%, rgba(20, 32, 28, 0.78) 70%),
    linear-gradient(120deg, #1f4a3c 0%, #2a3d4a 45%, #5a3a28 100%);
}
.hero-slideshow {
  background: #14201c;
  align-items: center;
}
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
  background-size: cover;
  background-position: center 28%;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  opacity: 0;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 32, 28, 0.2) 0%, rgba(20, 32, 28, 0.78) 72%),
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08), transparent 40%);
  z-index: 1;
  pointer-events: none;
}
.hero-slideshow .hero-scrim {
  background:
    radial-gradient(ellipse 70% 55% at 50% 48%, rgba(20, 32, 28, 0.45) 0%, rgba(20, 32, 28, 0.12) 55%, transparent 75%),
    linear-gradient(180deg, rgba(20, 32, 28, 0.18) 0%, rgba(20, 32, 28, 0.55) 55%, rgba(20, 32, 28, 0.82) 100%);
}
.hero::before { display: none; }
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--paper));
  z-index: 2;
}
.hero-inner {
  position: relative;
  z-index: 3;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.25rem 3.5rem;
}
.hero-slideshow .hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 5.5rem 1.25rem 4rem;
  width: 100%;
}
.hero-dots {
  display: flex;
  gap: 0.45rem;
  margin-top: 1.25rem;
}
.hero-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(247, 243, 235, 0.35);
  cursor: pointer;
}
.hero-dot.is-active { background: #f7f3eb; }

.intro-amhv-body {
  max-width: none;
  display: grid;
  gap: 0.9rem;
}
.intro-amhv-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.intro-amhv .section-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.commune-logos {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0.9rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem 1.1rem;
  align-items: center;
  justify-items: center;
}
.commune-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 9.5rem;
  min-height: 3.25rem;
  opacity: 0.78;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.commune-logo-link:hover,
.commune-logo-link:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
}
.commune-logo {
  width: 100%;
  height: auto;
  max-height: 3.4rem;
  object-fit: contain;
  filter: grayscale(1) contrast(1.05);
}
@media (max-width: 700px) {
  .commune-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
  .commune-logo {
    max-height: 3rem;
  }
}
.hero-brand {
  width: min(440px, 78vw);
  height: auto;
  margin: 0 0 1.1rem;
  display: block;
  filter:
    drop-shadow(0 2px 0 rgba(247, 243, 235, 0.18))
    drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
}
.hero-slideshow .hero-lead {
  margin-left: auto;
  margin-right: auto;
}
.hero-slideshow .hero-actions {
  justify-content: center;
}
.hero-slideshow .hero-dots {
  justify-content: center;
}
.hero-lead {
  max-width: 34rem;
  margin: 0 0 1.4rem;
  font-size: 1.15rem;
  color: rgba(247, 243, 235, 0.9);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: #f7f3eb;
  color: var(--sage-deep);
}
.btn-ghost {
  background: transparent;
  color: #f7f3eb;
  border-color: rgba(247, 243, 235, 0.45);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}
.section-head {
  margin-bottom: 1.25rem;
}
.section-head h1,
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}
.section-head p {
  margin: 0;
  color: var(--ink-soft);
  max-width: none;
}

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}
.card-link {
  display: block;
  padding: 1.15rem 1.2rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(20, 32, 28, 0.08);
}
.card-link h3 {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}
.card-link p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

.agenda-tabs {
  display: none; /* remplacé par .page-subnav */
}
.page-subnav-list a.is-active {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  color: #fff;
}
.agenda-block {
  margin-top: 1.75rem;
  padding: 1.25rem 1.35rem 1.4rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
}
.agenda-block .ecole-block-title { margin-bottom: 0.85rem; }
.agenda-empty { margin: 0; color: var(--ink-soft); }
.agenda-retro-link {
  margin: 1rem 0 0;
  font-weight: 600;
}
.agenda-retro-link a { text-decoration: none; }

.event-list,
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.event-list li,
.post-list li {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
}
.event-list a,
.post-list a {
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}
.post-list-excerpt {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  text-align: justify;
  text-justify: inter-word;
}
.meta {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.retro-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 1.25rem;
}
@media (min-width: 700px) {
  .retro-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .retro-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.retro-card {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
}
.retro-card-link {
  display: grid;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.retro-card-media {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(31, 74, 60, 0.12);
}
.retro-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.retro-card-media--empty {
  background: linear-gradient(135deg, rgba(61, 107, 90, 0.25), rgba(163, 92, 47, 0.18));
}
.retro-card-body { padding: 0.9rem 1rem 1.1rem; }
.retro-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
  color: var(--sage-deep);
}
.retro-card-badge {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--copper);
}
.agenda-event-detail .agenda-back { margin: 0 0 0.75rem; }
.agenda-event-detail .agenda-published { color: var(--ink-soft); font-size: 0.92rem; }
.agenda-event-media {
  margin: 0 0 1rem;
  border-radius: 10px;
  overflow: hidden;
}
.agenda-event-media img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.gallery-grid {
  /* legacy — rétrospective = cartes agenda ; conservé vide pour contenus importés */
  display: none;
}

.home-gallery-grid {
  margin-top: 0.35rem;
  list-style: none;
  padding: 0;
}
@media (min-width: 700px) {
  .home-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.home-gallery-card {
  list-style: none;
}
.home-gallery-trigger {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
  position: relative;
  overflow: hidden;
  border-radius: inherit;
}
.home-gallery-media {
  margin: 0;
}
.home-gallery-card .home-gallery-media img {
  object-position: center 28%;
  transition: transform 0.35s ease;
}
.home-gallery-card:hover .home-gallery-media img,
.home-gallery-trigger:focus-visible .home-gallery-media img {
  transform: scale(1.04);
}
.home-gallery-zoom {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(20, 32, 28, 0.72);
  color: #f7f3eb;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.home-gallery-card:hover .home-gallery-zoom,
.home-gallery-trigger:focus-visible .home-gallery-zoom {
  opacity: 1;
  transform: translateY(0);
}

.home-lightbox-open {
  overflow: hidden;
}
.home-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.home-lightbox[hidden] {
  display: none;
}
.home-lightbox-scrim {
  position: absolute;
  inset: 0;
  background: rgba(14, 22, 19, 0.82);
  border: 0;
  cursor: zoom-out;
}
.home-lightbox-panel {
  position: relative;
  z-index: 1;
  max-width: min(1100px, 100%);
  max-height: min(90vh, 100%);
  display: grid;
  place-items: center;
}
.home-lightbox-figure {
  margin: 0;
  max-width: 100%;
  max-height: min(90vh, 100%);
}
.home-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: min(88vh, 900px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  background: #0e1613;
}
.home-lightbox-close {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(243, 239, 230, 0.95);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.home-lightbox-close:hover,
.home-lightbox-close:focus-visible {
  background: #fff;
}
.home-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(243, 239, 230, 0.92);
  color: var(--ink);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}
.home-lightbox-nav:hover,
.home-lightbox-nav:focus-visible {
  background: #fff;
}
.home-lightbox-prev { left: 0.35rem; }
.home-lightbox-next { right: 0.35rem; }
@media (max-width: 699px) {
  .home-lightbox-prev { left: 0; }
  .home-lightbox-next { right: 0; }
  .home-gallery-zoom { opacity: 1; transform: none; }
}

.page-content,
.entry-content {
  max-width: none;
  width: 100%;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.page-content > *:first-child,
.entry-content > *:first-child { margin-top: 0; }
.page-content p,
.entry-content p,
.page-content li,
.entry-content li,
.ecole-block-body,
.ecole-block-body p,
.ecole-block-body li {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.page-content h1,
.page-content h2,
.page-content h3,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.ecole-block-title {
  text-align: left;
}

/* L'école — sous-menu ancres + blocs */
.page-subnav {
  position: sticky;
  top: var(--header-h, 3.25rem);
  z-index: 40;
  margin: 0 0 1.75rem;
  padding: 0.65rem 0;
  background: rgba(243, 239, 230, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.page-subnav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
}
.page-subnav-list a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.page-subnav-list a:hover,
.page-subnav-list a:focus-visible {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  color: #fff;
}
.hub-content,
.ecole-content {
  display: grid;
  gap: 1.75rem;
  min-width: 0;
  max-width: 100%;
}
.hub-lead {
  text-align: left !important;
  margin: 0 0 0.25rem !important;
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: none;
  width: 100%;
}
.hub-more,
.ecole-more {
  margin-top: 2.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}
.ecole-block {
  scroll-margin-top: calc(var(--header-h, 3.25rem) + 3.5rem);
  padding: 1.35rem 1.4rem 1.5rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  min-width: 0;
  max-width: 100%;
  overflow-x: visible;
}
.ecole-block-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
  color: var(--sage-deep);
}
.ecole-block-body {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.ecole-block-body > *:first-child { margin-top: 0; }
.ecole-block-body > *:last-child { margin-bottom: 0; }
.ecole-block-body p {
  margin: 0 0 0.9rem;
  line-height: 1.65;
  color: var(--ink-soft);
  text-align: justify !important;
  text-justify: inter-word;
  hyphens: auto;
}
.ecole-block-body ul,
.ecole-block-body ol {
  margin: 0 0 0.9rem;
  padding-left: 1.25rem;
}
.ecole-block-body img {
  border-radius: 10px;
  margin: 0.5rem 0.5rem 0.5rem 0;
  display: inline-block;
  vertical-align: middle;
  max-width: min(100%, 460px);
  height: auto;
}
#les-enseignants .enseignants-photo {
  margin: 0 0 1.15rem;
}
#les-enseignants .enseignants-photo img,
#les-enseignants .ecole-block-body > p:first-child img,
#les-enseignants .ecole-block-body img.wp-image-26826 {
  display: block;
  width: 100%;
  max-width: min(100%, 820px);
  height: auto;
  margin: 0;
}
.ecole-block-body,
.ecole-block-body p,
.ecole-block-body li,
.ecole-block-body span,
.hub-content,
.hub-content p,
.hub-content li,
.hub-content span {
  font-family: var(--font-body);
}
.ecole-block-body [style*="font-family"],
.hub-content [style*="font-family"],
.page-content [style*="font-family"] {
  font-family: inherit !important;
}
.ecole-block-body .enseignants-heading,
.ecole-block-body .content-heading,
.hub-content .content-heading {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #008080;
  margin: 1.25rem 0 0.45rem;
}
.ecole-block-body .enseignants-sub,
.ecole-block-body .content-sub,
.hub-content .content-sub {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: #008080;
  margin: 0.95rem 0 0.35rem;
}
/* Sous-titres éditoriaux (ex. Formation Musicale) — teal historique */
.ecole-block-body h2:not(.ecole-block-title),
.ecole-block-body h3,
.hub-content h2:not(.ecole-block-title),
.hub-content h3:not(.ecole-block-title) {
  color: #008080;
}
.ecole-block-body a {
  color: var(--sage-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
.ecole-block-body a:hover,
.ecole-block-body a:focus-visible {
  color: var(--copper);
}
.ecole-block-body .wp-video,
.ecole-block-body video,
.hub-content .wp-video,
.hub-content video,
.page-content .wp-video,
.page-content video {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}
.ecole-block-body .wp-video {
  margin: 0.75rem 0 1rem;
}
.ecole-block-body table {
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  border-collapse: collapse;
  table-layout: fixed;
  display: table;
  margin: 0 0 1rem;
}
.ecole-block-body table td,
.ecole-block-body table th {
  width: auto !important;
  padding: 0.45rem 0.5rem;
  vertical-align: top;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.ecole-block-body table img {
  max-width: 100%;
  height: auto;
}

/* Horaires — readable schedule tables (from former flyer images) */
.horaire-subtitle {
  margin: 1.25rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--sage-deep);
}
.horaire-subtitle:first-child { margin-top: 0; }
.horaire-season {
  margin: 0 0 0.75rem !important;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: left !important;
}
.horaire-lieu-head {
  margin: 1.1rem 0 0.25rem;
  padding: 0.55rem 0.75rem;
  background: var(--sage-deep);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  border-radius: 8px;
}
.horaire-lieu-sub {
  margin: 0 0 0.65rem !important;
  text-align: center !important;
  color: var(--sage-deep);
  font-weight: 600;
}
.horaire-note {
  margin: 0.35rem 0 1rem !important;
  font-size: 0.9rem;
  text-align: left !important;
}
.horaire-table {
  width: 100% !important;
  border: 1px solid var(--line);
  background: #fff;
}
.horaire-table th,
.horaire-table td {
  border: 1px solid var(--line);
  text-align: center;
  vertical-align: middle !important;
  padding: 0.55rem 0.6rem;
}
.horaire-table thead th {
  background: rgba(31, 74, 60, 0.08);
  color: var(--sage-deep);
  font-weight: 700;
}
.horaire-table--fmo .horaire-row--fm1 th,
.horaire-table--fmo .horaire-row--fm1 td { background: #f3e6d8; }
.horaire-table--fmo .horaire-row--fm2 th,
.horaire-table--fmo .horaire-row--fm2 td { background: #dfeaf2; }
.horaire-table--fmo .horaire-row--fm34 th,
.horaire-table--fmo .horaire-row--fm34 td { background: #f0ddd8; }
.horaire-table--fmo .horaire-row--adultes th,
.horaire-table--fmo .horaire-row--adultes td { background: #ececec; }
.horaire-table--fmo th[scope="row"] {
  font-weight: 700;
  text-align: center;
  vertical-align: middle !important;
}
.horaire-level-sub {
  display: block;
  font-weight: 600;
  font-size: 0.85em;
}
.horaire-table--fmo td {
  text-align: center;
}
.horaire-table--eveil th[scope="row"] {
  background: var(--sage-deep);
  color: #fff;
  width: 7rem;
}

/* Tarifs — readable pricing tables (from former flyer images) */
.tarif-table {
  width: 100% !important;
  border-collapse: collapse;
  margin: 0 0 1.35rem;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.92rem;
  line-height: 1.35;
}
.tarif-table th,
.tarif-table td {
  border: 1px solid rgba(20, 32, 28, 0.14);
  padding: 0.55rem 0.65rem;
  vertical-align: middle !important;
  text-align: left;
}
.tarif-th-main {
  background: var(--sage-deep);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.82rem;
}
.tarif-th-sub {
  display: block;
  margin-top: 0.2rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.86rem;
  opacity: 0.92;
}
.tarif-th-price {
  background: #4a5560;
  color: #fff;
  font-weight: 700;
  text-align: center !important;
  white-space: nowrap;
  width: 7.5rem;
}
.tarif-price {
  text-align: center !important;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(31, 74, 60, 0.04);
}
.tarif-table tbody tr:nth-child(even) td {
  background: rgba(20, 32, 28, 0.035);
}
.tarif-table tbody tr:nth-child(even) .tarif-price {
  background: rgba(31, 74, 60, 0.07);
}
.tarif-level {
  background: rgba(31, 74, 60, 0.08);
  color: var(--sage-deep);
  font-weight: 700;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: center !important;
  width: 2.6rem;
  letter-spacing: 0.04em;
}
.tarif-row--highlight th,
.tarif-row--highlight td {
  background: #8f3d4a !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.18);
}
.tarif-row--highlight .tarif-price {
  background: #7d3440 !important;
}
.tarif-table--ensembles .tarif-th-main {
  background: #3f6f8f;
}
.tarif-table--ensembles .tarif-th-price {
  background: #5a6570;
}
@media (max-width: 720px) {
  .tarif-level {
    writing-mode: horizontal-tb;
    transform: none;
    width: auto;
  }
  .tarif-th-price,
  .tarif-price {
    white-space: normal;
    width: auto;
  }
}

.ecole-block-body iframe,
.page-content iframe,
.hub-content iframe {
  max-width: 100%;
  width: 100% !important;
  aspect-ratio: 16 / 10;
  height: auto !important;
  min-height: 220px;
  border: 0;
  border-radius: 10px;
}
.access-maps {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 800px) {
  .access-maps {
    grid-template-columns: 1fr 1fr;
  }
}
.access-map {
  margin: 0;
  padding: 0;
}
.access-map figcaption {
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: var(--sage-deep);
  text-align: left;
}

.site-footer {
  margin-top: 1.75rem;
  border-top: 1px solid var(--line);
  background: #13231d;
  color: rgba(247, 243, 235, 0.88);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.15rem 1.25rem 1.25rem;
}
.footer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.25fr) minmax(0, 0.9fr);
    gap: 1.15rem;
    align-items: start;
  }
}
.site-footer a { color: #f0e8d8; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-logo {
  width: min(156px, 58%);
  height: auto;
  margin: 0 0 0.4rem;
  display: block;
}
.footer-note {
  margin: 0 0 0.5rem;
  opacity: 0.8;
  font-size: 0.86rem;
  line-height: 1.35;
  max-width: 22rem;
}
.footer-contact {
  padding-top: 0.5rem;
  border-top: 1px solid rgba(247, 243, 235, 0.14);
}
.footer-contact .footer-heading {
  margin-bottom: 0.25rem;
}
.footer-contact-line {
  margin: 0;
  display: grid;
  gap: 0.15rem;
  font-size: 0.86rem;
  line-height: 1.3;
}
.footer-contact-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
}
.footer-contact-sep {
  opacity: 0.7;
}
.footer-heading {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(247, 243, 235, 0.7);
  font-weight: 700;
}
.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.38rem;
  font-size: 0.9rem;
  line-height: 1.35;
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.85rem;
}
.footer-social-link {
  display: inline-flex;
  flex: 0 0 auto;
  color: #f0e8d8;
  line-height: 0;
  border-radius: 50%;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.footer-social-link:hover,
.footer-social-link:focus-visible {
  color: #f7f3eb;
  opacity: 0.92;
  text-decoration: none;
  transform: translateY(-1px);
}
.footer-social-icon {
  width: 2.4rem;
  height: 2.4rem;
  display: block;
  border-radius: 50%;
}
.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.2rem;
}
.footer-menu a { font-weight: 600; font-size: 0.92rem; }

.wpcf7 input,
.wpcf7 textarea {
  width: 100%;
  max-width: 32rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  font: inherit;
  background: #fff;
}
.wpcf7 input[type="submit"] {
  width: auto;
  background: var(--sage-deep);
  color: #fff;
  border: 0;
  font-weight: 700;
  cursor: pointer;
  padding: 0.7rem 1.2rem;
}

/* Contact — infos + carte | formulaire */
.contact-split {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 860px) {
  .contact-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 2rem;
  }
}
.contact-split-info {
  display: grid;
  gap: 0.85rem;
}
.contact-split-info .contact-coords p {
  margin: 0 0 0.35rem !important;
  text-align: left !important;
}
.contact-split-info .contact-coords p:last-child {
  margin-bottom: 0 !important;
}
.contact-map-embed {
  margin: 0.25rem 0 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.contact-map-embed iframe {
  display: block;
  width: 100% !important;
  height: 220px !important;
  min-height: 0 !important;
  aspect-ratio: auto;
  border: 0;
}
.contact-split-form .contact-form-wrap,
.contact-split-form .wpcf7 {
  max-width: none;
}
.page-contact .contact-split-form .wpcf7 input,
.page-contact .contact-split-form .wpcf7 textarea {
  max-width: none;
}
