/*
 * Visual refresh 1.13
 * Closer to the current etiolles.com language: bold sans-serif typography,
 * immersive photography, wide compositions and restrained corner radii.
 */
body[class*="ecc-template-"] {
  --radius: 4px;
  --shadow: 0 10px 35px rgba(0, 48, 71, .10);
  --modern-max: 1440px;
}

/* Page Contact : formulaire principal et alternatives de contact visibles. */
body.page-id-20 .contact-hub {
  padding-block: clamp(72px, 8vw, 128px);
  background: #fff;
}

body.page-id-20 .contact-hub__head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .65fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(42px, 5vw, 72px);
}

body.page-id-20 .contact-hub__head > .wp-block-group__inner-container {
  display: contents;
}

body.page-id-20 .contact-hub__head .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -20px;
}

body.page-id-20 .contact-hub__head h2 {
  max-width: 820px;
}

body.page-id-20 .contact-hub__head .lead {
  max-width: 520px;
  padding-bottom: 8px;
}

body.page-id-20 .contact-hub__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}

body.page-id-20 .contact-hub__layout > .wp-block-group__inner-container {
  display: contents;
}

body.page-id-20 .contact-hub__form {
  padding: clamp(30px, 4.5vw, 64px);
  border-top: 4px solid var(--gold, #967d48);
  background: var(--ivory, #f6f2e8);
}

body.page-id-20 .contact-hub__form > .wp-block-group__inner-container > h3 {
  margin-bottom: 12px;
  color: var(--forest-2, #004d6d);
  font-size: clamp(2.25rem, 4vw, 4.1rem);
}

body.page-id-20 .contact-hub__form > .wp-block-group__inner-container > p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 34px;
  color: var(--muted, #73748c);
}

body.page-id-20 .contact-hub__form .ecc-lead-block {
  padding: 0;
  border: 0;
  background: transparent;
}

body.page-id-20 .contact-hub__form .ecc-lead-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body.page-id-20 .contact-hub__form .ecc-lead-grid .field {
  display: grid;
  gap: 8px;
  margin: 0;
  color: var(--forest-2, #004d6d);
  font-size: .76rem;
  font-weight: 750;
}

body.page-id-20 .contact-hub__form .ecc-lead-grid .field.is-wide {
  grid-column: 1 / -1;
}

body.page-id-20 .contact-hub__form :is(input, select, textarea) {
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 67, 97, .22);
  border-radius: 2px;
  background: #fff;
  color: var(--ink, #252525);
  font: inherit;
}

body.page-id-20 .contact-hub__form textarea {
  min-height: 126px;
  resize: vertical;
}

body.page-id-20 .contact-hub__form :is(input, select, textarea):focus {
  border-color: var(--gold, #967d48);
  outline: 3px solid rgba(150, 125, 72, .16);
  outline-offset: 0;
}

body.page-id-20 .contact-hub__form .ecc-lead-privacy {
  margin: 18px 0;
  color: var(--muted, #73748c);
  font-size: .72rem;
}

body.page-id-20 .contact-hub__form .ecc-lead-privacy a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.page-id-20 .contact-hub__form button[type="submit"] {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 2px;
  background: var(--forest-2, #004d6d);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

body.page-id-20 .contact-hub__alternatives {
  display: grid;
  gap: 18px;
}

body.page-id-20 .contact-hub__alternatives > .wp-block-group__inner-container {
  display: contents;
}

body.page-id-20 .contact-option {
  min-height: 270px;
  padding: clamp(28px, 3vw, 42px);
  border: 1px solid rgba(0, 67, 97, .18);
  background: #fff;
}

body.page-id-20 .contact-option > .wp-block-group__inner-container {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: flex-start;
}

body.page-id-20 .contact-option__number {
  margin: 0 0 38px;
  color: var(--gold, #967d48);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
}

body.page-id-20 .contact-option h3 {
  margin-bottom: 14px;
  color: var(--forest-2, #004d6d);
  font-size: clamp(1.65rem, 2.4vw, 2.55rem);
}

body.page-id-20 .contact-option h3 + p {
  margin-bottom: 28px;
  color: var(--muted, #73748c);
}

body.page-id-20 .contact-option p:has(.btn),
body.page-id-20 .contact-option p:has(.contact-option__email) {
  margin-top: auto;
}

body.page-id-20 .contact-option .btn {
  min-height: 50px;
  border-radius: 2px;
  background: var(--forest-2, #004d6d);
  color: #fff;
}

body.page-id-20 .contact-option__email {
  color: var(--forest-2, #004d6d);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 5px;
}

body.page-id-20 .contact-option--visit {
  border-color: var(--forest-2, #004d6d);
  background: var(--forest-2, #004d6d);
  color: #fff;
}

body.page-id-20 .contact-option--visit :is(h3, .eyebrow) {
  color: #fff;
}

body.page-id-20 .contact-option--visit h3 + p,
body.page-id-20 .contact-option--visit .contact-option__note {
  color: rgba(255, 255, 255, .74);
}

body.page-id-20 .contact-option--visit .btn {
  background: var(--gold, #967d48);
  color: #fff;
}

body.page-id-20 .contact-option__note {
  margin: 12px 0 0;
  font-size: .72rem;
}

@media (max-width: 960px) {
  body.page-id-20 .contact-hub__head,
  body.page-id-20 .contact-hub__layout {
    grid-template-columns: 1fr;
  }

  body.page-id-20 .contact-hub__head .eyebrow {
    margin-bottom: -8px;
  }

  body.page-id-20 .contact-hub__alternatives {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-row: 1;
  }

  body.page-id-20 .contact-option {
    min-height: 310px;
  }
}

@media (max-width: 720px) {
  body.page-id-20 .contact-hub {
    padding-block: 64px;
  }

  body.page-id-20 .contact-hub__alternatives,
  body.page-id-20 .contact-hub__form .ecc-lead-grid {
    grid-template-columns: 1fr;
  }

  body.page-id-20 .contact-option {
    min-height: 0;
  }

  body.page-id-20 .contact-hub__form {
    padding: 30px 20px;
  }

  body.page-id-20 .contact-hub__form .ecc-lead-grid .field.is-wide {
    grid-column: auto;
  }
}

/*
 * CTA global : reprend la carte de contact compacte des pages activités.
 * Le contenu et les liens restent propres à chaque page ; seule la
 * présentation de l'ancien grand aplat doré est uniformisée.
 */
body[class*="ecc-template-"] .cta {
  padding-block: clamp(48px, 4vw, 64px);
  background: #fff;
}

body[class*="ecc-template-"] .cta .cta-inner {
  display: block;
  padding: clamp(42px, 5vw, 76px);
  border: 1px solid var(--gold, #967d48);
  border-radius: 4px;
  background: #fff;
}

body[class*="ecc-template-"] .cta .cta-inner > .wp-block-group__inner-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  text-align: center;
}

body[class*="ecc-template-"] .cta .cta-inner > .wp-block-group__inner-container > div:first-child {
  width: min(100%, 1120px);
  margin-inline: auto;
}

body[class*="ecc-template-"] .cta .cta-inner h2 {
  color: var(--forest-2, #004d6d);
}

body[class*="ecc-template-"] .cta .cta-inner p {
  margin-right: auto;
  margin-left: auto;
}

body[class*="ecc-template-"] .cta .cta-action {
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-items: center;
  text-align: center;
}

body[class*="ecc-template-"] .cta .cta-action > .wp-block-group__inner-container {
  display: contents;
}

body[class*="ecc-template-"] .cta .cta-action p {
  margin: 0;
}

body[class*="ecc-template-"] .cta .cta-action .btn {
  min-height: 54px;
  border: 0;
  background: var(--forest-2, #004d6d);
  color: #fff;
  white-space: nowrap;
}

body[class*="ecc-template-"] .cta .cta-action .btn:hover {
  background: #003047;
  color: #fff;
}

@media (max-width: 680px) {
  body[class*="ecc-template-"] .cta {
    padding-block: 48px;
  }

  body[class*="ecc-template-"] .cta .cta-inner {
    padding: 34px 24px;
  }

  body[class*="ecc-template-"] .cta .cta-action,
  body[class*="ecc-template-"] .cta .cta-action .btn {
    width: 100%;
  }
}

/* Landing seminaire: client logo grid and its mobile-only companions. */
body.ecc-template-home #difference .client-logo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 54px 42px;
  align-items: center;
  padding: 58px 0 20px;
}

body.ecc-template-home #difference .client-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 82px;
}

body.ecc-template-home #difference .client-logo-item img,
body.ecc-template-home #difference .client-logo-item svg {
  display: block;
  width: auto;
  height: auto;
  max-width: 180px;
  max-height: 72px;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: grayscale(100%);
  opacity: 0.72;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

body.ecc-template-home #difference .client-logo-item:hover img,
body.ecc-template-home #difference .client-logo-item:hover svg {
  filter: grayscale(0%);
  opacity: 1;
}

body.ecc-template-home #difference .client-logo-item.is-symbol img {
  max-width: 86px;
  max-height: 86px;
}

body.ecc-template-home #difference .client-logo-item.is-wide img,
body.ecc-template-home #difference .client-logo-item.is-wide svg {
  max-width: 195px;
}

@media (max-width: 900px) {
  body.ecc-template-home #difference .client-logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 42px 28px;
  }
}

@media (max-width: 700px) {
  body.ecc-template-home #team .team-hero {
    background: #004361;
    gap: 0;
    padding: 16px;
    border-radius: 4px;
    overflow: hidden;
  }

  body.ecc-template-home #team .team-photo {
    border-radius: 3px;
  }

  body.ecc-template-home #team .team-panel {
    background: transparent;
    border-radius: 0;
    padding: 34px 18px 28px;
  }

  body.ecc-template-home #acces .access-visual .wp-block-image {
    display: none;
  }
}

@media (max-width: 600px) {
  body.ecc-template-home #difference .client-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 24px;
    padding-top: 38px;
  }

  body.ecc-template-home #difference .client-logo-item img,
  body.ecc-template-home #difference .client-logo-item svg {
    max-width: 140px;
    max-height: 62px;
  }

  body.ecc-template-home #difference .client-logo-item.is-symbol img {
    max-width: 70px;
    max-height: 70px;
  }
}

/* Page Espaces — salles, grands formats, convivialité et extérieurs. */
body[class*="ecc-template-"] .spaces-hero .hero-content {
  max-width: 1220px;
}

body[class*="ecc-template-"] .spaces-hero .hero-content h1 {
  max-width: 1120px;
}

body[class*="ecc-template-"] .spaces-hero .sub {
  max-width: 900px;
}

body[class*="ecc-template-"] .spaces-intro {
  background:
    linear-gradient(90deg, #fff 0 64%, var(--ivory) 64% 100%);
}

body[class*="ecc-template-"] .spaces-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: center;
}

body[class*="ecc-template-"] .spaces-intro-grid > figure {
  overflow: hidden;
  margin: 0;
  border-radius: 4px;
  background: var(--forest-2);
}

body[class*="ecc-template-"] .spaces-intro-grid > figure img {
  width: 100%;
  min-height: 590px;
  object-fit: cover;
}

body[class*="ecc-template-"] .spaces-intro-grid h2 {
  margin: 0 0 26px;
}

body[class*="ecc-template-"] .spaces-check-list {
  display: grid;
  gap: 0;
  margin: 34px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

body[class*="ecc-template-"] .spaces-check-list li {
  position: relative;
  padding: 17px 0 17px 32px;
  border-bottom: 1px solid var(--line);
  color: var(--forest-2);
  font-size: .82rem;
  font-weight: 700;
}

body[class*="ecc-template-"] .spaces-check-list li::before {
  position: absolute;
  top: 19px;
  left: 3px;
  color: var(--gold);
  content: "✓";
  font-weight: 900;
}

body[class*="ecc-template-"] .spaces-uses {
  background: var(--ivory);
}

body[class*="ecc-template-"] .spaces-use-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body[class*="ecc-template-"] .spaces-use-card {
  display: grid;
  min-height: 440px;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  border: 1px solid rgba(0, 67, 97, .12);
  border-radius: 4px;
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}

body[class*="ecc-template-"] .spaces-use-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(0, 48, 71, .1);
}

body[class*="ecc-template-"] .spaces-use-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

body[class*="ecc-template-"] .spaces-use-card:hover > img {
  transform: scale(1.025);
}

body[class*="ecc-template-"] .spaces-use-card > div {
  display: flex;
  padding: 34px;
  flex-direction: column;
}

body[class*="ecc-template-"] .spaces-use-card > div > span {
  display: block;
  margin-bottom: auto;
  color: var(--gold);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .12em;
}

body[class*="ecc-template-"] .spaces-use-card h3 {
  margin: 34px 0 14px;
  font-size: clamp(2rem, 2.7vw, 3rem);
}

body[class*="ecc-template-"] .spaces-use-card p {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: .82rem;
}

body[class*="ecc-template-"] .spaces-use-card a {
  color: var(--forest-2);
  font-size: .72rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

body[class*="ecc-template-"] .spaces-work {
  background: #fff;
}

body[class*="ecc-template-"] .spaces-work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

body[class*="ecc-template-"] .spaces-work-grid > figure {
  overflow: hidden;
  min-height: 610px;
  margin: 0;
  border-radius: 4px;
  background: var(--forest-2);
}

body[class*="ecc-template-"] .spaces-work-grid > figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[class*="ecc-template-"] .spaces-work-copy {
  display: flex;
  padding: 38px 32px;
  flex-direction: column;
  background: var(--forest-2);
  color: #fff;
}

body[class*="ecc-template-"] .spaces-work-copy .eyebrow {
  color: var(--gold);
}

body[class*="ecc-template-"] .spaces-work-copy h3 {
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(2.2rem, 3vw, 3.4rem);
}

body[class*="ecc-template-"] .spaces-work-copy > p:not(.eyebrow) {
  color: rgba(255, 255, 255, .76);
  font-size: .8rem;
}

body[class*="ecc-template-"] .spaces-work-points {
  margin-top: auto;
  padding-top: 34px;
}

body[class*="ecc-template-"] .spaces-work-points p {
  display: grid;
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
  grid-template-columns: 100px 1fr;
  gap: 16px;
  font-size: .72rem;
}

body[class*="ecc-template-"] .spaces-work-points strong {
  color: var(--gold);
}

body[class*="ecc-template-"] .spaces-work-points span {
  color: rgba(255, 255, 255, .74);
}

body[class*="ecc-template-"] .spaces-large {
  overflow: hidden;
  background: #004361;
  color: #fff;
}

body[class*="ecc-template-"] .spaces-large :is(h2, h3, .lead) {
  color: #fff;
}

body[class*="ecc-template-"] .spaces-large .eyebrow {
  color: var(--gold);
}

body[class*="ecc-template-"] .spaces-large-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body[class*="ecc-template-"] .spaces-large-grid article {
  display: grid;
  overflow: hidden;
  min-height: 520px;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 4px;
  background: var(--forest-2);
}

body[class*="ecc-template-"] .spaces-large-grid article > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[class*="ecc-template-"] .spaces-large-grid article > div {
  display: flex;
  padding: 40px 34px;
  flex-direction: column;
  justify-content: flex-end;
}

body[class*="ecc-template-"] .spaces-large-grid article span {
  margin-bottom: auto;
  color: var(--gold);
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: .08em;
}

body[class*="ecc-template-"] .spaces-large-grid h3 {
  margin: 40px 0 16px;
  font-size: clamp(2.2rem, 3vw, 3.7rem);
}

body[class*="ecc-template-"] .spaces-large-grid p {
  margin: 0;
  color: rgba(255, 255, 255, .76);
  font-size: .82rem;
}

body[class*="ecc-template-"] .spaces-large-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

body[class*="ecc-template-"] .spaces-large-gallery figure {
  overflow: hidden;
  height: clamp(280px, 30vw, 460px);
  margin: 0;
  border-radius: 4px;
}

body[class*="ecc-template-"] .spaces-large-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[class*="ecc-template-"] .spaces-gallery {
  background: #fff;
}

body[class*="ecc-template-"] .spaces-gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

body[class*="ecc-template-"] .spaces-gallery-item {
  position: relative;
  grid-column: span 2;
  overflow: hidden;
  height: 360px;
  margin: 0;
  border-radius: 4px;
  background: var(--forest-2);
}

body[class*="ecc-template-"] .spaces-gallery-item:nth-child(1),
body[class*="ecc-template-"] .spaces-gallery-item:nth-child(2) {
  grid-column: span 3;
  height: 470px;
}

body[class*="ecc-template-"] .spaces-gallery-item a {
  display: block;
  width: 100%;
  height: 100%;
}

body[class*="ecc-template-"] .spaces-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

body[class*="ecc-template-"] .spaces-gallery-item:hover img {
  transform: scale(1.03);
}

body[class*="ecc-template-"] .spaces-gallery-item figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  padding: 44px 24px 22px;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(0deg, rgba(0, 48, 71, .88), transparent);
  color: #fff;
  pointer-events: none;
}

body[class*="ecc-template-"] .spaces-gallery-item figcaption strong {
  font-size: 1.1rem;
}

body[class*="ecc-template-"] .spaces-gallery-item figcaption span {
  color: rgba(255, 255, 255, .78);
  font-size: .7rem;
  text-align: right;
}

body[class*="ecc-template-"] .spaces-capacities {
  background: var(--ivory);
}

body[class*="ecc-template-"] .spaces-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(0, 67, 97, .13);
  background: #fff;
}

body[class*="ecc-template-"] .spaces-table-wrap table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

body[class*="ecc-template-"] .spaces-table-wrap th,
body[class*="ecc-template-"] .spaces-table-wrap td {
  padding: 24px 26px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

body[class*="ecc-template-"] .spaces-table-wrap th {
  background: var(--forest-2);
  color: #fff;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body[class*="ecc-template-"] .spaces-table-wrap td {
  color: var(--muted);
  font-size: .8rem;
}

body[class*="ecc-template-"] .spaces-table-wrap td:first-child {
  color: var(--forest-2);
  font-size: 1rem;
  font-weight: 800;
}

body[class*="ecc-template-"] .spaces-capacity-note {
  max-width: 900px;
  margin: 28px 0 0;
  padding-left: 18px;
  border-left: 3px solid var(--gold);
  color: var(--muted);
  font-size: .8rem;
}

body[class*="ecc-template-"] .spaces-share {
  background: var(--gold);
}

body[class*="ecc-template-"] .spaces-share > .wp-block-group__inner-container > .container,
body[class*="ecc-template-"] .spaces-share > .container {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(56px, 8vw, 130px);
  align-items: center;
}

body[class*="ecc-template-"] .spaces-share h2 {
  margin: 0 0 24px;
}

body[class*="ecc-template-"] .spaces-share-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(0, 67, 97, .22);
}

body[class*="ecc-template-"] .spaces-share-grid article {
  min-height: 240px;
  padding: 30px;
  background: var(--gold);
}

body[class*="ecc-template-"] .spaces-share-grid span {
  display: block;
  margin-bottom: 42px;
  color: var(--forest-2);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .12em;
}

body[class*="ecc-template-"] .spaces-share-grid h3 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 2.1vw, 2.25rem);
}

body[class*="ecc-template-"] .spaces-share-grid p {
  margin: 0;
  color: rgba(0, 48, 71, .8);
  font-size: .76rem;
}

body[class*="ecc-template-"] .spaces-faq {
  background: #fff;
}

body[class*="ecc-template-"] .spaces-cta {
  padding-bottom: 72px;
  background: #fff;
}

body[class*="ecc-template-"] .spaces-cta .activity-back-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
}

body[class*="ecc-template-"] .spaces-cta .activity-back-inner > p {
  margin: 0;
  text-align: center;
}

@media (max-width: 1180px) {
  body[class*="ecc-template-"] .spaces-use-card,
  body[class*="ecc-template-"] .spaces-large-grid article {
    grid-template-columns: 1fr;
  }

  body[class*="ecc-template-"] .spaces-use-card > img,
  body[class*="ecc-template-"] .spaces-large-grid article > img {
    height: 320px;
  }

  body[class*="ecc-template-"] .spaces-use-card > div {
    min-height: 300px;
  }
}

@media (max-width: 980px) {
  body[class*="ecc-template-"] .spaces-intro {
    background: #fff;
  }

  body[class*="ecc-template-"] .spaces-intro-grid,
  body[class*="ecc-template-"] .spaces-work-grid,
  body[class*="ecc-template-"] .spaces-share > .wp-block-group__inner-container > .container,
  body[class*="ecc-template-"] .spaces-share > .container {
    grid-template-columns: 1fr;
  }

  body[class*="ecc-template-"] .spaces-use-grid,
  body[class*="ecc-template-"] .spaces-large-grid {
    grid-template-columns: 1fr;
  }

  body[class*="ecc-template-"] .spaces-work-grid > figure {
    min-height: 420px;
  }

  body[class*="ecc-template-"] .spaces-work-copy {
    min-height: 500px;
  }

  body[class*="ecc-template-"] .spaces-cta .activity-back-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body[class*="ecc-template-"] .spaces-intro-grid > figure img {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  body[class*="ecc-template-"] .spaces-use-card {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  body[class*="ecc-template-"] .spaces-use-card > img {
    height: clamp(260px, 72vw, 380px);
  }

  body[class*="ecc-template-"] .spaces-use-card > div {
    min-height: 280px;
    padding: 28px 24px;
  }

  body[class*="ecc-template-"] .spaces-work-grid > figure {
    min-height: 0;
    height: clamp(270px, 76vw, 410px);
  }

  body[class*="ecc-template-"] .spaces-work-copy {
    min-height: 0;
    padding: 32px 24px;
  }

  body[class*="ecc-template-"] .spaces-work-points {
    margin-top: 34px;
  }

  body[class*="ecc-template-"] .spaces-large-grid article {
    min-height: 0;
  }

  body[class*="ecc-template-"] .spaces-large-grid article > img {
    height: clamp(270px, 72vw, 400px);
  }

  body[class*="ecc-template-"] .spaces-large-grid article > div {
    min-height: 300px;
    padding: 30px 24px;
  }

  body[class*="ecc-template-"] .spaces-large-gallery,
  body[class*="ecc-template-"] .spaces-gallery-grid,
  body[class*="ecc-template-"] .spaces-share-grid {
    grid-template-columns: 1fr;
  }

  body[class*="ecc-template-"] .spaces-large-gallery figure {
    height: clamp(250px, 70vw, 380px);
  }

  body[class*="ecc-template-"] .spaces-gallery-item,
  body[class*="ecc-template-"] .spaces-gallery-item:nth-child(1),
  body[class*="ecc-template-"] .spaces-gallery-item:nth-child(2) {
    grid-column: 1;
    height: clamp(260px, 72vw, 390px);
  }

  body[class*="ecc-template-"] .spaces-share-grid article {
    min-height: 0;
  }

  body[class*="ecc-template-"] .spaces-share-grid span {
    margin-bottom: 28px;
  }

  body[class*="ecc-template-"] .spaces-cta .activity-back-inner > p {
    text-align: left;
  }
}

/* Consentement mobile : carte flottante inspirée de la maquette de référence. */
@media (max-width: 680px) {
  .ecc-consent {
    right: clamp(14px, 5vw, 28px);
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    left: clamp(14px, 5vw, 28px);
    display: block;
    width: auto;
    max-width: 520px;
    margin-inline: auto;
    padding: 28px 22px 22px;
    border: 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 35, 51, .28);
    color: var(--ecc-ink);
  }

  .ecc-consent__copy {
    padding-right: 0;
  }

  .ecc-consent__eyebrow,
  .ecc-consent .ecc-consent__close-accept {
    display: none;
  }

  .ecc-consent h2 {
    color: var(--ecc-ink);
    font-family: Inter, Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
  }

  .ecc-consent__copy > p:last-child {
    max-width: none;
    margin: 12px 0 24px;
    color: var(--ecc-muted);
    font-size: .86rem;
    line-height: 1.55;
  }

  .ecc-consent__copy > p:last-child a {
    color: var(--ecc-deep);
    font-weight: 650;
  }

  .ecc-consent__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .ecc-consent .ecc-consent__button,
  .ecc-consent button[data-ecc-consent="accept"] {
    min-width: 0;
    min-height: 52px;
    padding: 0 10px;
    border: 0;
    border-radius: 2px;
    color: #fff;
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .045em;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
  }

  .ecc-consent .ecc-consent__button {
    background: var(--ecc-ink);
  }

  .ecc-consent button[data-ecc-consent="accept"] {
    background: var(--ecc-gold);
  }

  .ecc-consent .ecc-consent__button:hover,
  .ecc-consent .ecc-consent__button:focus-visible {
    background: #000;
    color: #fff;
  }

  .ecc-consent button[data-ecc-consent="accept"]:hover,
  .ecc-consent button[data-ecc-consent="accept"]:focus-visible {
    background: #806a3d;
    color: #fff;
  }
}

/* Consentement compact identique sur mobile et ordinateur. */
  body[class*="ecc-template-"] section.ecc-consent {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    display: block;
    width: auto;
    max-width: 380px;
    margin-inline: auto;
    padding: 16px 15px 14px !important;
    border: 1px solid rgba(0, 67, 97, .12);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(0, 35, 51, .24);
    color: var(--ecc-ink);
  }

  body[class*="ecc-template-"] .ecc-consent__copy {
    padding-right: 32px;
  }

  body[class*="ecc-template-"] .ecc-consent__eyebrow {
    display: none;
  }

  body[class*="ecc-template-"] .ecc-consent h2 {
    margin: 0;
    color: var(--ecc-deep);
    font-family: Inter, Arial, sans-serif !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    letter-spacing: -.02em !important;
    line-height: 1.18 !important;
  }

  body[class*="ecc-template-"] .ecc-consent__copy > p:last-child {
    max-width: none;
    margin: 7px 0 12px !important;
    color: var(--ecc-muted);
    font-size: .68rem !important;
    line-height: 1.38 !important;
  }

  body[class*="ecc-template-"] .ecc-consent__copy > p:last-child a {
    color: var(--ecc-deep);
    font-weight: 700;
  }

  body[class*="ecc-template-"] .ecc-consent__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body[class*="ecc-template-"] .ecc-consent .ecc-consent__button,
  body[class*="ecc-template-"] .ecc-consent button[data-ecc-consent="accept"] {
    min-width: 0;
    min-height: 38px !important;
    padding: 0 10px;
    border: 0;
    border-radius: 2px;
    color: #fff;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .045em;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
  }

  body[class*="ecc-template-"] .ecc-consent .ecc-consent__button {
    background: var(--ecc-ink);
  }

  body[class*="ecc-template-"] .ecc-consent button[data-ecc-consent="accept"] {
    background: var(--ecc-gold);
  }

  body[class*="ecc-template-"] .ecc-consent .ecc-consent__close-accept {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-grid !important;
    width: 28px;
    height: 28px;
    min-height: 28px !important;
    padding: 0 !important;
    border: 1px solid rgba(0, 67, 97, .16);
    border-radius: 50%;
    background: var(--ecc-ivory) !important;
    color: var(--ecc-deep) !important;
    font-size: 1rem;
    line-height: 1;
    place-items: center;
  }

body[class*="ecc-template-"] .container {
  width: min(var(--modern-max), calc(100% - 64px));
}

body[class*="ecc-template-"] main h1,
body[class*="ecc-template-"] main h2,
body[class*="ecc-template-"] main h3,
body[class*="ecc-template-"] main blockquote {
  font-family: Inter, Arial, sans-serif;
  font-style: normal;
}

body[class*="ecc-template-"] main h1 {
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: .94;
}

body[class*="ecc-template-"] main h2 {
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: .98;
}

body[class*="ecc-template-"] main h3 {
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.04;
}

body[class*="ecc-template-"] main section {
  padding-block: 112px;
}

body[class*="ecc-template-"] .eyebrow {
  margin-bottom: 18px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .2em;
}

body[class*="ecc-template-"] .lead {
  line-height: 1.55;
}

body[class*="ecc-template-"] .header,
body[class*="ecc-template-"] .topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #004361;
  box-shadow: none;
}

body.admin-bar[class*="ecc-template-"] .header,
body.admin-bar[class*="ecc-template-"] .topbar {
  top: 32px;
}

body[class*="ecc-template-"] .nav,
body[class*="ecc-template-"] .topbar-inner {
  min-height: 88px;
  border-bottom: 0;
}

body[class*="ecc-template-"] .logo {
  width: 158px;
}

body[class*="ecc-template-"] .menu {
  gap: 32px;
  font-size: .82rem;
  font-weight: 700;
}

/* Navigation à deux niveaux : les formats restent rattachés à Séminaires. */
@media (min-width: 981px) {
  body[class*="ecc-template-"] .header .menu-list {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.35vw, 22px);
  }

  body[class*="ecc-template-"] .header .menu-list > li {
    position: relative;
    display: block;
  }

  body[class*="ecc-template-"] .header .menu-list > li > a {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
  }

  body[class*="ecc-template-"] .header .menu-item-has-children > a::after {
    content: "⌄";
    color: #c5ad74;
    font-size: .78rem;
    line-height: 1;
    transform: translateY(-2px);
  }

  body[class*="ecc-template-"] .header .sub-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: -22px;
    display: grid;
    width: max-content;
    min-width: 280px;
    margin: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 4px;
    background: #004d6d;
    box-shadow: 0 18px 45px rgba(0, 35, 51, .3);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }

  body[class*="ecc-template-"] .header .sub-menu::before {
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    height: 12px;
    content: "";
  }

  body[class*="ecc-template-"] .header .menu-item-has-children:hover > .sub-menu,
  body[class*="ecc-template-"] .header .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  body[class*="ecc-template-"] .header .sub-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 2px;
    font-size: .76rem;
    font-weight: 650;
    line-height: 1.25;
    white-space: nowrap;
  }

  body[class*="ecc-template-"] .header .sub-menu a:hover,
  body[class*="ecc-template-"] .header .sub-menu a:focus-visible {
    background: rgba(255, 255, 255, .08);
  }
}

/* Les quatre chiffres occupent et centrent uniformément toute la barre bleue. */
body[class*="ecc-template-"] .hero .proofbar {
  width: 100%;
}

body[class*="ecc-template-"] .hero .proofs {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  justify-items: center;
}

body[class*="ecc-template-"] .hero .proof {
  width: 100%;
  text-align: center;
}

@media (max-width: 980px) {
  body[class*="ecc-template-"] .header .menu.open {
    max-height: calc(100svh - 100px);
    overflow-y: auto;
  }

  body[class*="ecc-template-"] .header .menu-list,
  body[class*="ecc-template-"] .header .menu-list > li {
    display: block;
  }

  body[class*="ecc-template-"] .header .menu-list {
    margin: 0;
    padding: 0;
  }

  body[class*="ecc-template-"] .header .menu-list > li > a {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
  }

  body[class*="ecc-template-"] .header .menu-item-has-children > a::after {
    content: none;
  }

  body[class*="ecc-template-"] .header .sub-menu {
    display: grid;
    gap: 2px;
    margin: 0 0 12px 10px;
    padding: 4px 0 4px 14px;
    border-left: 1px solid rgba(197, 173, 116, .5);
    list-style: none;
  }

  body[class*="ecc-template-"] .header .sub-menu a {
    display: block;
    padding: 7px 0;
    color: rgba(255, 255, 255, .82) !important;
    font-size: .72rem;
    line-height: 1.25;
  }
}

@media (max-width: 680px) {
  body[class*="ecc-template-"] .hero .proofs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body[class*="ecc-template-"] .btn,
body[class*="ecc-template-"] .wp-block-button__link,
body[class*="ecc-template-"] main button[type="submit"],
body[class*="ecc-template-"] main input[type="submit"] {
  min-height: 52px;
  padding-inline: 24px;
  border-radius: 3px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}

body[class*="ecc-template-"] .btn:hover,
body[class*="ecc-template-"] .wp-block-button__link:hover {
  transform: none;
  filter: brightness(1.06);
}

body[class*="ecc-template-"] .badge {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .19em;
}

body[class*="ecc-template-"] main .hero-actions {
  display: none !important;
}

body.ecc-template-home .hero .badge {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  padding: 9px 12px;
  border-radius: 2px;
  background: rgba(0, 67, 97, .82);
  color: #fff;
  text-shadow: none;
}

body[class*="ecc-template-"] main :is(
  .pillar,
  .format-card,
  .stay-card,
  .team-panel,
  .team-photo,
  .image-wrap,
  .floating-note,
  .access-card,
  .access-item,
  .goal,
  .activity,
  .category-card,
  .weather-note,
  .large-image,
  .evening-card,
  .difference-card,
  .offer-card,
  .format,
  .visual-main,
  .visual-side,
  .access-image,
  .trust,
  .post-card,
  .aside-card,
  .related-card,
  .privacy-card,
  .ecc-lead-block,
  .ecc-blog-card
) {
  border-radius: var(--radius);
  box-shadow: none;
}

body[class*="ecc-template-"] main :is(
  .image-wrap,
  .team-photo,
  .stay-card,
  .activity,
  .category-card,
  .large-image,
  .evening-card,
  .visual-main,
  .visual-side,
  .access-image,
  .post-card,
  .related-card
) img,
body[class*="ecc-template-"] main .wp-block-image img {
  border-radius: 0;
}

body[class*="ecc-template-"] main :is(.pillar, .goal, .difference-card, .offer-card, .format, .access-item) {
  border-color: rgba(0, 67, 97, .18);
}

body[class*="ecc-template-"] main :is(.pillar, .goal, .difference-card):hover {
  transform: none;
  box-shadow: none;
}

body[class*="ecc-template-"] main :is(.pillar-number, .goal > span, .difference-card > span) {
  display: block;
  width: auto;
  height: auto;
  margin-bottom: 46px;
  border: 0;
  border-radius: 0;
  font-family: Inter, Arial, sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
}

body[class*="ecc-template-"] main :is(.filter, .tag, .format-label) {
  border-radius: 2px;
}

body[class*="ecc-template-"] main :is(.cta-inner, .final-inner, .blog-cta-inner) {
  border-radius: 0;
}

body.ecc-template-home .hero {
  min-height: calc(100svh - 88px);
  padding: 120px 0 58px;
}

body.ecc-template-home .hero::before {
  background-image: url("https://kffny376rb.onrocket.site/wp-content/uploads/2026/07/etiolles-header-avant-video.webp");
}

body.ecc-template-home .hero::after {
  z-index: 2;
  background:
    linear-gradient(0deg, rgba(0, 48, 71, .78) 0%, rgba(0, 48, 71, .2) 58%, rgba(0, 48, 71, .08) 100%),
    linear-gradient(90deg, rgba(0, 48, 71, .48) 0%, rgba(0, 48, 71, .08) 70%);
}

/*
 * WordPress 7 places Cover backgrounds at z-index: 0 with a high-specificity
 * selector. Keep the deferred video and its overlay above that poster.
 */
body.ecc-template-home .hero > .hero-video {
  z-index: 1;
}

body.ecc-template-home .hero.wp-block-cover > .wp-block-cover__inner-container {
  z-index: 3 !important;
}

body.ecc-template-home .hero-content {
  max-width: 1260px;
}

body.ecc-template-home .hero h1 {
  max-width: 1240px;
  font-size: clamp(4.6rem, 7.1vw, 8.5rem);
}

body.ecc-template-home .hero .sub {
  max-width: 760px;
  margin-block: 24px 28px;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
}

body.ecc-template-home .proofbar {
  max-width: 1050px;
  margin-top: 38px;
  padding-top: 20px;
}

body.ecc-template-home .proofs {
  max-width: 1000px;
}

body.ecc-template-home main section .section-head {
  margin-bottom: 25px;
}

body.ecc-template-home .stay .stay-grid,
body.ecc-template-home .program .timeline {
  margin-top: 0;
}

body.ecc-template-home .team-panel .lead,
body.ecc-template-home .access .access-lead {
  margin-top: 25px;
}

@media (min-width: 681px) {
  body.ecc-template-home .hero {
    padding-bottom: 0;
  }

  body.ecc-template-home .hero .proofbar {
    width: 100%;
    max-width: none;
    margin-top: 38px;
    padding: 28px 0;
    border-top: 0;
    background: var(--forest);
    box-shadow: 0 0 0 100vmax var(--forest);
    clip-path: inset(0 -100vmax);
  }

  body.ecc-template-home .hero .proofs {
    max-width: 1050px;
  }
}

body.ecc-template-home .proof strong,
body.ecc-template-detail .proof strong,
body.ecc-template-team .proof strong,
body.ecc-template-offer .proof strong,
body.ecc-template-landing .hero-proof strong {
  font-family: Inter, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -.04em;
}

body.ecc-template-detail .hero,
body.ecc-template-team .hero,
body.ecc-template-offer .hero {
  min-height: 760px;
  padding-block: 120px 62px;
}

body.ecc-template-detail .hero::after,
body.ecc-template-team .hero::after,
body.ecc-template-offer .hero::after,
body.ecc-template-landing .hero::after {
  background:
    linear-gradient(0deg, rgba(0, 48, 71, .8), rgba(0, 48, 71, .12) 70%),
    linear-gradient(90deg, rgba(0, 48, 71, .58), rgba(0, 48, 71, .08) 72%);
}

body.ecc-template-detail .hero h1,
body.ecc-template-team .hero h1,
body.ecc-template-offer .hero h1,
body.ecc-template-landing .hero h1 {
  max-width: 1100px;
  font-size: clamp(3.8rem, 6.2vw, 7.3rem);
}

body.ecc-template-blog .blog-hero h1,
body.ecc-template-article .article-hero h1,
body.ecc-template-privacy .privacy-hero h1 {
  font-size: clamp(3.6rem, 6.5vw, 7rem);
}

body.ecc-template-home .section-head,
body.ecc-template-detail .section-head,
body.ecc-template-team .section-head,
body.ecc-template-offer .section-head {
  gap: 110px;
  margin-bottom: 64px;
}

body.ecc-template-home main h2,
body.ecc-template-detail main h2,
body.ecc-template-team main h2,
body.ecc-template-offer main h2,
body.ecc-template-landing main h2 {
  font-size: clamp(2.7rem, 4.6vw, 5rem);
}

body[class*="ecc-template-"] main :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  border-radius: 2px;
}

@media (max-width: 980px) {
  body[class*="ecc-template-"] .container {
    width: min(100% - 40px, var(--modern-max));
  }

  body.ecc-template-home main section .section-head {
    gap: 25px;
  }

  body[class*="ecc-template-"] .menu {
    gap: 18px;
    border-radius: 3px;
  }

  body.ecc-template-home .hero h1,
  body.ecc-template-detail .hero h1,
  body.ecc-template-team .hero h1,
  body.ecc-template-offer .hero h1,
  body.ecc-template-landing .hero h1 {
    font-size: clamp(3.8rem, 10vw, 6.4rem);
  }
}

@media (max-width: 680px) {
  body[class*="ecc-template-"] .container {
    width: calc(100% - 28px);
  }

  body[class*="ecc-template-"] main section {
    padding-block: 74px;
  }

  body[class*="ecc-template-"] .nav,
  body[class*="ecc-template-"] .topbar-inner {
    min-height: 76px;
  }

  body.admin-bar[class*="ecc-template-"] .header,
  body.admin-bar[class*="ecc-template-"] .topbar {
    top: 46px;
  }

  body[class*="ecc-template-"] .logo {
    width: 132px;
  }

  body.ecc-template-home .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: calc(100svh - 76px) auto auto;
    min-height: 0;
    padding: 0;
    background: var(--ivory);
    color: var(--ink);
    isolation: auto;
  }

  body.admin-bar.ecc-template-home .hero {
    grid-template-rows: calc(100svh - 122px) auto auto;
  }

  body.ecc-template-home .hero::before,
  body.ecc-template-home .hero.wp-block-cover > .wp-block-cover__background {
    display: none;
  }

  body.ecc-template-home .hero::after {
    position: relative;
    z-index: 1;
    inset: auto;
    display: block;
    grid-area: 1 / 1;
    background:
      linear-gradient(0deg, rgba(0, 48, 71, .78), transparent 58%),
      linear-gradient(180deg, rgba(0, 48, 71, .4), transparent 34%);
    content: "";
    pointer-events: none;
  }

  body.ecc-template-home .hero.wp-block-cover > .wp-block-cover__image-background {
    position: relative;
    z-index: 0;
    inset: auto;
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
  }

  /*
   * Keep the deferred hero video inside the first (blue/photo) mobile row.
   * The poster remains visible until .is-ready, then the video fades above it.
   */
  body.ecc-template-home .hero > .hero-video {
    position: relative;
    z-index: 1;
    inset: auto;
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  body.ecc-template-home .hero::after {
    z-index: 2;
  }

  body.ecc-template-home .hero.wp-block-cover > .wp-block-cover__inner-container,
  body.ecc-template-home .hero .wp-block-cover__inner-container > .container,
  body.ecc-template-home .hero .wp-block-cover__inner-container > .container > .wp-block-group__inner-container,
  body.ecc-template-home .hero .hero-content,
  body.ecc-template-home .hero .hero-content > .wp-block-group__inner-container {
    display: contents;
  }

  body.ecc-template-home .hero .badge {
    z-index: 3;
    grid-area: 1 / 1;
    align-self: start;
    justify-self: start;
    box-sizing: border-box;
    max-width: calc(100% - 28px);
    margin: 34px 14px 0;
    padding: 9px 12px;
    color: #fff;
  }

  body.ecc-template-home .hero h1 {
    z-index: 3;
    grid-area: 1 / 1;
    align-self: end;
    max-width: none;
    margin: 0 14px 34px;
    color: #fff;
    text-shadow:
      0 3px 4px rgba(0, 24, 36, .72),
      0 12px 34px rgba(0, 35, 51, .68);
  }

  body.ecc-template-home .hero .sub {
    grid-area: 2 / 1;
    max-width: none;
    margin: 0;
    padding: 36px 14px 38px;
    background: var(--ivory);
    color: var(--muted);
  }

  body.ecc-template-home .hero .proofbar {
    grid-area: 3 / 1;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 30px 14px 34px;
    border-top: 0;
    background: var(--forest);
  }

  body.ecc-template-home .hero .proofs {
    width: min(100% - 28px, 620px);
    margin-inline: auto;
    gap: 26px 18px;
  }

  body.ecc-template-home .hero .proof strong {
    color: #fff;
  }

  body.ecc-template-home .hero .proof span {
    color: rgba(255, 255, 255, .72);
  }

  body.ecc-template-home .hero h1,
  body.ecc-template-detail .hero h1,
  body.ecc-template-team .hero h1,
  body.ecc-template-offer .hero h1,
  body.ecc-template-landing .hero h1,
  body.ecc-template-blog .blog-hero h1,
  body.ecc-template-article .article-hero h1,
  body.ecc-template-privacy .privacy-hero h1 {
    font-size: clamp(3.1rem, 14vw, 4.5rem);
    line-height: .96;
  }

  body.ecc-template-home main h2,
  body.ecc-template-detail main h2,
  body.ecc-template-team main h2,
  body.ecc-template-offer main h2,
  body.ecc-template-landing main h2 {
    font-size: clamp(2.35rem, 11vw, 3.5rem);
  }

  body.ecc-template-detail .hero::after,
  body.ecc-template-team .hero::after,
  body.ecc-template-offer .hero::after,
  body.ecc-template-landing .hero::after {
    background: linear-gradient(0deg, rgba(0, 48, 71, .86), rgba(0, 48, 71, .22) 76%);
  }

  body[class*="ecc-template-"] footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 46px 24px;
  }

  body[class*="ecc-template-"] footer .footer-grid > * {
    min-width: 0;
  }
}

/* Sur grand écran, centrer le groupe complet dans la largeur visible du bandeau. */
@media (min-width: 681px) {
  body[class*="ecc-template-"] .hero .proofs {
    position: relative;
    left: calc(50vw - 32px);
    width: min(1440px, calc(100vw - 64px));
    max-width: none;
    margin-inline: 0;
    transform: translateX(-50%);
  }
}

/*
 * Header desktop plein écran :
 * la zone photographique occupe toute la hauteur visible sous le menu,
 * puis le bandeau chiffré commence sous la ligne de flottaison.
 */
@media (min-width: 981px) {
  body[class*="ecc-template-"] .hero.wp-block-cover {
    min-height: calc(
      100vh - var(--ecc-desktop-header-height, 88px) + var(--ecc-desktop-proofbar-height, 112.43px)
    ) !important;
    min-height: calc(
      100dvh - var(--ecc-desktop-header-height, 88px) + var(--ecc-desktop-proofbar-height, 112.43px)
    ) !important;
  }

  body.ecc-template-article .article-hero {
    display: grid;
    min-height: calc(100vh - var(--ecc-desktop-header-height, 88px));
    min-height: calc(100dvh - var(--ecc-desktop-header-height, 88px));
    align-items: center;
  }
}

/* Respiration entre le dernier appel à l'action et le pied de page. */
body[class*="ecc-template-"] footer {
  margin-top: 0;
  border-top: clamp(48px, 5vw, 96px) solid #fff;
}

body[class*="ecc-template-"] footer .footer-gallery-link {
  color: inherit;
  font-size: .72rem;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* Aperçu photographique de la page Journée d'étude. */
body[class*="ecc-template-"] .study-gallery-teaser {
  overflow: hidden;
  background: var(--ivory);
}

body[class*="ecc-template-"] .study-gallery-teaser-head {
  display: grid;
  margin-bottom: clamp(32px, 4vw, 58px);
  grid-template-columns: minmax(0, .9fr) minmax(320px, .62fr);
  gap: clamp(42px, 8vw, 130px);
  align-items: end;
}

body[class*="ecc-template-"] .study-gallery-teaser-head h2,
body[class*="ecc-template-"] .study-gallery-teaser-head p {
  margin-top: 0;
}

body[class*="ecc-template-"] .study-gallery-teaser-head .btn {
  margin-top: 18px;
}

body[class*="ecc-template-"] .study-gallery-teaser-grid {
  display: grid;
  min-height: 660px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body[class*="ecc-template-"] .study-gallery-teaser-item {
  position: relative;
  display: block;
  grid-column: span 5;
  overflow: hidden;
  min-height: 0;
  border-radius: 4px;
  background: var(--forest-2);
}

body[class*="ecc-template-"] .study-gallery-teaser-item--large {
  grid-column: span 7;
  grid-row: span 2;
}

body[class*="ecc-template-"] .study-gallery-teaser-item--wide {
  grid-column: 1 / -1;
  min-height: clamp(320px, 28vw, 430px);
}

body[class*="ecc-template-"] .study-gallery-teaser-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease, opacity .3s ease;
}

body[class*="ecc-template-"] .study-gallery-teaser-item::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 48, 71, .78), transparent 58%);
  content: "";
  pointer-events: none;
}

body[class*="ecc-template-"] .study-gallery-teaser-item span {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 22px;
  left: 24px;
  color: #fff;
  font-size: clamp(1.15rem, 1.8vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -.02em;
}

body[class*="ecc-template-"] .study-gallery-teaser-item:hover img {
  opacity: .92;
  transform: scale(1.025);
}

@media (max-width: 980px) {
  body[class*="ecc-template-"] .study-gallery-teaser-head {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  body[class*="ecc-template-"] .study-gallery-teaser-grid {
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  body[class*="ecc-template-"] .study-gallery-teaser-item,
  body[class*="ecc-template-"] .study-gallery-teaser-item--large,
  body[class*="ecc-template-"] .study-gallery-teaser-item--wide {
    grid-column: span 1;
    grid-row: auto;
    height: clamp(280px, 42vw, 430px);
  }
}

@media (max-width: 680px) {
  body[class*="ecc-template-"] .study-gallery-teaser-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body[class*="ecc-template-"] .study-gallery-teaser-item,
  body[class*="ecc-template-"] .study-gallery-teaser-item--large,
  body[class*="ecc-template-"] .study-gallery-teaser-item--wide {
    grid-column: 1;
    height: clamp(250px, 72vw, 360px);
  }
}

/* Éviter une demi-rangée vide lorsque la grille contient un nombre impair de formats. */
@media (min-width: 981px) {
  body.ecc-template-home .format-grid .format-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* Catalogue complet des activites Team. */
body[class*="ecc-template-"] .team-catalog {
  background: var(--ivory);
}

body[class*="ecc-template-"] .team-catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px 0 42px;
}

body[class*="ecc-template-"] .team-catalog-filters span {
  padding: 10px 14px;
  border: 1px solid rgba(0, 67, 97, .2);
  border-radius: 999px;
  background: #fff;
  color: var(--forest-2);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body[class*="ecc-template-"] .team-activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

body[class*="ecc-template-"] .team-activity-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}

body[class*="ecc-template-"] .team-activity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 46px rgba(0, 48, 71, .12);
}

body[class*="ecc-template-"] .team-activity-media {
  display: block;
  overflow: hidden;
  flex: 0 0 auto;
  aspect-ratio: 3 / 2;
  background: var(--forest-2);
}

body[class*="ecc-template-"] .team-activity-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--team-focus, 50% 50%);
  transition: transform .45s ease;
}

body[class*="ecc-template-"] .team-activity-card:hover .team-activity-media img {
  transform: scale(1.035);
}

body[class*="ecc-template-"] .team-activity-copy {
  display: flex;
  flex: 1 1 auto;
  padding: 28px;
  flex-direction: column;
}

body[class*="ecc-template-"] .team-activity-category {
  margin: 0 0 10px;
  color: #8f7134;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

body[class*="ecc-template-"] .team-activity-card h3 {
  margin: 0 0 14px;
  font-size: clamp(1.65rem, 2vw, 2.15rem);
  line-height: 1;
}

body[class*="ecc-template-"] .team-activity-card h3 a {
  color: inherit;
  text-decoration: none;
}

body[class*="ecc-template-"] .team-activity-copy > p:not(.team-activity-category) {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: .83rem;
}

body[class*="ecc-template-"] .team-activity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: auto 0 22px;
}

body[class*="ecc-template-"] .team-activity-meta span {
  padding: 7px 9px;
  border-radius: 2px;
  background: var(--ivory);
  color: var(--forest-2);
  font-size: .65rem;
  font-weight: 700;
}

body[class*="ecc-template-"] .team-activity-link,
body[class*="ecc-template-"] .activity-back-link {
  color: var(--forest-2);
  font-size: .76rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Fiches detaillees des activites. */
body[class*="ecc-template-"] .activity-detail-hero .sub {
  max-width: 860px;
}

body[class*="ecc-template-"] .activity-subnav {
  position: sticky;
  z-index: 25;
  top: var(--ecc-desktop-header-height, 88px);
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 8px 24px rgba(0, 48, 71, .05);
  scrollbar-width: none;
}

body.admin-bar[class*="ecc-template-"] .activity-subnav {
  top: calc(var(--ecc-desktop-header-height, 88px) + 32px);
}

body[class*="ecc-template-"] .activity-subnav::-webkit-scrollbar {
  display: none;
}

body[class*="ecc-template-"] .activity-subnav .container {
  display: flex;
  min-width: max-content;
  justify-content: center;
  gap: clamp(28px, 4vw, 68px);
}

body[class*="ecc-template-"] .activity-subnav a {
  position: relative;
  padding: 21px 0 19px;
  color: var(--forest-2);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}

body[class*="ecc-template-"] .activity-subnav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--gold);
  content: "";
  opacity: 0;
  transform: scaleX(.35);
  transition: opacity .2s ease, transform .2s ease;
}

body[class*="ecc-template-"] .activity-subnav a:hover::after,
body[class*="ecc-template-"] .activity-subnav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

body[class*="ecc-template-"] #details,
body[class*="ecc-template-"] #galerie,
body[class*="ecc-template-"] #questions-frequentes,
body[class*="ecc-template-"] #organiser {
  scroll-margin-top: 176px;
}

body.admin-bar[class*="ecc-template-"] #details,
body.admin-bar[class*="ecc-template-"] #galerie,
body.admin-bar[class*="ecc-template-"] #questions-frequentes,
body.admin-bar[class*="ecc-template-"] #organiser {
  scroll-margin-top: 208px;
}

body[class*="ecc-template-"] .activity-detail-section {
  background:
    linear-gradient(90deg, #fff 0 61%, var(--ivory) 61% 100%);
}

body[class*="ecc-template-"] .activity-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(44px, 6vw, 96px);
  align-items: center;
}

body[class*="ecc-template-"] .activity-detail-image {
  overflow: hidden;
  margin: 0;
  border-radius: 4px;
}

body[class*="ecc-template-"] .activity-detail-image img {
  width: 100%;
  min-height: 480px;
  object-fit: cover;
}

body[class*="ecc-template-"] .activity-process {
  position: relative;
  overflow: hidden;
  background: var(--ivory);
}

body[class*="ecc-template-"] .activity-process::after {
  position: absolute;
  top: -120px;
  right: -100px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(166, 137, 76, .2);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

body[class*="ecc-template-"] .activity-process-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 46px;
}

body[class*="ecc-template-"] .activity-process-step {
  position: relative;
  min-height: 310px;
  padding: 36px 32px;
  border: 1px solid rgba(0, 67, 97, .13);
  border-radius: 4px;
  background: #fff;
}

body[class*="ecc-template-"] .activity-process-step:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -30px;
  display: grid;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--gold);
  content: "→";
  place-items: center;
  transform: translateY(-50%);
}

body[class*="ecc-template-"] .activity-process-step > span {
  display: block;
  margin-bottom: 64px;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .12em;
}

body[class*="ecc-template-"] .activity-process-step h3 {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 2.4vw, 2.65rem);
  line-height: 1;
}

body[class*="ecc-template-"] .activity-process-step p {
  margin: 0;
  color: var(--muted);
  font-size: .83rem;
}

body[class*="ecc-template-"] .activity-process-note {
  max-width: 980px;
  margin: 30px 0 0;
  padding-left: 18px;
  border-left: 3px solid var(--gold);
  color: var(--muted);
  font-size: .78rem;
}

body[class*="ecc-template-"] .activity-benefits {
  background: var(--forest-2);
  color: #fff;
}

body[class*="ecc-template-"] .activity-gallery {
  overflow: hidden;
  padding-bottom: 0;
  background: #fff;
}

body[class*="ecc-template-"] .activity-gallery .lead {
  margin-bottom: 38px;
}

body[class*="ecc-template-"] .activity-gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

body[class*="ecc-template-"] .activity-gallery-item {
  overflow: hidden;
  min-width: 0;
  height: 270px;
  margin: 0;
  border-radius: 4px;
  background: var(--forest-2);
}

body[class*="ecc-template-"] .activity-gallery-item:nth-child(-n+2) {
  grid-column: span 3;
  height: 390px;
}

body[class*="ecc-template-"] .activity-gallery-item:nth-child(n+3) {
  grid-column: span 2;
}

body[class*="ecc-template-"] .activity-gallery-item a {
  display: block;
  width: 100%;
  height: 100%;
}

body[class*="ecc-template-"] .activity-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease, opacity .3s ease;
}

body[class*="ecc-template-"] .activity-gallery-item:hover img {
  opacity: .92;
  transform: scale(1.025);
}

body[class*="ecc-template-"] .activity-benefits .eyebrow {
  color: var(--gold);
}

body[class*="ecc-template-"] .activity-benefits h2 {
  color: #fff;
}

body[class*="ecc-template-"] .activity-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 42px;
  background: rgba(255, 255, 255, .2);
}

body[class*="ecc-template-"] .activity-benefit {
  min-height: 210px;
  padding: 32px;
  background: var(--forest-2);
}

body[class*="ecc-template-"] .activity-benefit span {
  display: block;
  margin-bottom: 42px;
  color: var(--gold);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
}

body[class*="ecc-template-"] .activity-benefit p {
  max-width: 30ch;
  margin: 0;
  color: #fff;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.6rem, 2.3vw, 2.35rem);
  font-weight: 650;
  line-height: 1.02;
}

body[class*="ecc-template-"] .activity-etiolles-plus {
  background: #fff;
}

body[class*="ecc-template-"] .activity-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 46px;
}

body[class*="ecc-template-"] .activity-service-card {
  min-height: 300px;
  padding: 30px 26px;
  border-top: 4px solid var(--gold);
  border-radius: 2px;
  background: var(--ivory);
}

body[class*="ecc-template-"] .activity-service-card > span {
  display: block;
  margin-bottom: 58px;
  color: #8b6b2c;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .12em;
}

body[class*="ecc-template-"] .activity-service-card h3 {
  margin: 0 0 14px;
  font-size: clamp(1.55rem, 1.9vw, 2.05rem);
  line-height: 1;
}

body[class*="ecc-template-"] .activity-service-card p {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
}

body[class*="ecc-template-"] .activity-related {
  background: var(--ivory);
}

body[class*="ecc-template-"] .activity-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 46px;
}

body[class*="ecc-template-"] .activity-related-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}

body[class*="ecc-template-"] .activity-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 46px rgba(0, 48, 71, .1);
}

body[class*="ecc-template-"] .activity-related-image {
  display: block;
  overflow: hidden;
  height: auto;
  aspect-ratio: 3 / 2;
  background: var(--forest-2);
}

body[class*="ecc-template-"] .activity-related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--team-focus, 50% 50%);
  transition: transform .4s ease;
}

body[class*="ecc-template-"] .activity-related-image[href*="/activites-libres/"] { --team-focus: 50% 40%; }
body[class*="ecc-template-"] .activity-related-image[href*="/activites-libres-en-interieur/"] { --team-focus: 48% 48%; }
body[class*="ecc-template-"] .activity-related-image[href*="/archery-bump/"] { --team-focus: 48% 50%; }
body[class*="ecc-template-"] .activity-related-image[href*="/la-balise-express/"] { --team-focus: 48% 45%; }
body[class*="ecc-template-"] .activity-related-image[href*="/bar-shake-school/"] { --team-focus: 62% 52%; }
body[class*="ecc-template-"] .activity-related-image[href*="/challenge-sucre/"] { --team-focus: 52% 52%; }
body[class*="ecc-template-"] .activity-related-image[href*="/cine-quizz-956/"] { --team-focus: 50% 58%; }
body[class*="ecc-template-"] .activity-related-image[href*="/cold-case/"] { --team-focus: 52% 54%; }
body[class*="ecc-template-"] .activity-related-image[href*="/comedy-show-411/"] { --team-focus: 50% 44%; }
body[class*="ecc-template-"] .activity-related-image[href*="/domino-challenge/"] { --team-focus: 42% 50%; }
body[class*="ecc-template-"] .activity-related-image[href*="/eco-builder/"] { --team-focus: 54% 50%; }
body[class*="ecc-template-"] .activity-related-image[href*="/eco-builder-racing/"] { --team-focus: 55% 52%; }
body[class*="ecc-template-"] .activity-related-image[href*="/fabulous-pixel-art/"] { --team-focus: 50% 50%; }
body[class*="ecc-template-"] .activity-related-image[href*="/foot-golf/"] { --team-focus: 52% 50%; }
body[class*="ecc-template-"] .activity-related-image[href*="/fresque-du-climat/"] { --team-focus: 50% 52%; }
body[class*="ecc-template-"] .activity-related-image[href*="/fresque-geante/"] { --team-focus: 50% 48%; }
body[class*="ecc-template-"] .activity-related-image[href*="/golf-en-equipe/"] { --team-focus: 50% 50%; }
body[class*="ecc-template-"] .activity-related-image[href*="/golf-target/"] { --team-focus: 52% 50%; }
body[class*="ecc-template-"] .activity-related-image[href*="/jeux-du-jardin/"] { --team-focus: 50% 50%; }
body[class*="ecc-template-"] .activity-related-image[href*="/karaoke/"] { --team-focus: 50% 44%; }
body[class*="ecc-template-"] .activity-related-image[href*="/lasertag/"] { --team-focus: 48% 50%; }
body[class*="ecc-template-"] .activity-related-image[href*="/le-putting/"] { --team-focus: 50% 50%; }
body[class*="ecc-template-"] .activity-related-image[href*="/les-olympiades-gonflees/"] { --team-focus: 52% 50%; }
body[class*="ecc-template-"] .activity-related-image[href*="/mega-quizz/"] { --team-focus: 52% 48%; }
body[class*="ecc-template-"] .activity-related-image[href*="/mini-golf/"] { --team-focus: 58% 50%; }
body[class*="ecc-template-"] .activity-related-image[href*="/parole-en-tete/"] { --team-focus: 53% 48%; }
body[class*="ecc-template-"] .activity-related-image[href*="/pont-sur-le-golf/"] { --team-focus: 50% 55%; }
body[class*="ecc-template-"] .activity-related-image[href*="/quizz-musical/"] { --team-focus: 52% 48%; }
body[class*="ecc-template-"] .activity-related-image[href*="/soiree-casino/"] { --team-focus: 52% 58%; }
body[class*="ecc-template-"] .activity-related-image[href*="/soiree-dansante-dj/"] { --team-focus: 55% 48%; }
body[class*="ecc-template-"] .activity-related-image[href*="/trombinoscope/"] { --team-focus: 52% 48%; }
body[class*="ecc-template-"] .activity-related-image[href*="/vino-monte-carlo/"] { --team-focus: 60% 60%; }

body[class*="ecc-template-"] .activity-related-card:hover .activity-related-image img {
  transform: scale(1.03);
}

body[class*="ecc-template-"] .activity-related-card > div {
  padding: 28px;
}

body[class*="ecc-template-"] .activity-related-card .eyebrow {
  margin-bottom: 12px;
}

body[class*="ecc-template-"] .activity-related-card h3 {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 2.2vw, 2.35rem);
  line-height: 1;
}

body[class*="ecc-template-"] .activity-related-card h3 a {
  color: inherit;
  text-decoration: none;
}

body[class*="ecc-template-"] .activity-related-card > div > p:not(.eyebrow) {
  min-height: 4.8em;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: .8rem;
}

body[class*="ecc-template-"] .activity-related-link {
  color: var(--forest-2);
  font-size: .73rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

body[class*="ecc-template-"] .activity-related-all {
  margin: 34px 0 0;
  text-align: center;
}

body[class*="ecc-template-"] .activity-back {
  padding-block: clamp(48px, 4vw, 64px);
  background: #fff;
}

body[class*="ecc-template-"] .activity-back-inner {
  display: block;
  padding: clamp(42px, 5vw, 76px);
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: #fff;
}

body[class*="ecc-template-"] .activity-back-inner > .wp-block-group__inner-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  text-align: center;
}

body[class*="ecc-template-"] .activity-back-inner > .wp-block-group__inner-container > div {
  max-width: 1120px;
  margin-inline: auto;
}

body[class*="ecc-template-"] .activity-back-inner > .wp-block-group__inner-container > p {
  margin: 0;
  text-align: center;
}

body[class*="ecc-template-"] .activity-back-inner .btn {
  min-height: 54px;
  border: 0;
  background: var(--forest-2);
  color: #fff;
  white-space: nowrap;
}

body[class*="ecc-template-"] .activity-back-inner .btn:hover {
  background: #003047;
  color: #fff;
}

body[class*="ecc-template-"] .activity-back-link {
  display: inline-block;
  margin-top: 18px;
}

/* Hébergement — une page éditoriale complète, construite avec les 24 photos
 * de la page historique et le langage visuel de la nouvelle page d'accueil. */
body[class*="ecc-template-"] .housing-hero .hero-content {
  max-width: 1180px;
}

body[class*="ecc-template-"] .housing-hero .hero-content h1 {
  max-width: 1050px;
}

body[class*="ecc-template-"] .housing-hero .activity-proofbar {
  margin-top: 42px;
}

body[class*="ecc-template-"] .housing-intro {
  background:
    linear-gradient(90deg, #fff 0 64%, var(--ivory) 64% 100%);
}

body[class*="ecc-template-"] .housing-intro-grid,
body[class*="ecc-template-"] .housing-overflow-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(44px, 7vw, 112px);
  align-items: center;
}

body[class*="ecc-template-"] .housing-intro-grid > figure,
body[class*="ecc-template-"] .housing-overflow-grid > figure {
  overflow: hidden;
  margin: 0;
  border-radius: 4px;
  background: var(--forest-2);
}

body[class*="ecc-template-"] .housing-intro-grid > figure img,
body[class*="ecc-template-"] .housing-overflow-grid > figure img {
  width: 100%;
  min-height: 560px;
  object-fit: cover;
}

body[class*="ecc-template-"] .housing-intro-grid h2,
body[class*="ecc-template-"] .housing-overflow-grid h2 {
  margin: 0 0 26px;
}

body[class*="ecc-template-"] .housing-check-list {
  display: grid;
  gap: 0;
  margin: 34px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

body[class*="ecc-template-"] .housing-check-list li {
  position: relative;
  padding: 17px 0 17px 32px;
  border-bottom: 1px solid var(--line);
  color: var(--forest-2);
  font-size: .82rem;
  font-weight: 700;
}

body[class*="ecc-template-"] .housing-check-list li::before {
  position: absolute;
  top: 19px;
  left: 3px;
  color: var(--gold);
  content: "✓";
  font-weight: 900;
}

body[class*="ecc-template-"] .housing-options {
  background: var(--ivory);
}

body[class*="ecc-template-"] .housing-option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

body[class*="ecc-template-"] .housing-option-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(0, 67, 97, .12);
  border-radius: 4px;
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}

body[class*="ecc-template-"] .housing-option-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 52px rgba(0, 48, 71, .11);
}

body[class*="ecc-template-"] .housing-option-card > img {
  width: 100%;
  height: clamp(270px, 25vw, 390px);
  object-fit: cover;
  transition: transform .45s ease;
}

body[class*="ecc-template-"] .housing-option-card:hover > img {
  transform: scale(1.025);
}

body[class*="ecc-template-"] .housing-option-card > div {
  position: relative;
  min-height: 240px;
  padding: 34px;
}

body[class*="ecc-template-"] .housing-option-card > div > span,
body[class*="ecc-template-"] .housing-service-grid article > span {
  display: block;
  margin-bottom: 36px;
  color: var(--gold);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .12em;
}

body[class*="ecc-template-"] .housing-option-card h3 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 2.6vw, 3rem);
}

body[class*="ecc-template-"] .housing-option-card p {
  margin: 0;
  color: var(--muted);
  font-size: .83rem;
}

body[class*="ecc-template-"] .housing-gallery-section {
  overflow: hidden;
  background: #fff;
}

body[class*="ecc-template-"] .housing-gallery-rooms {
  background: var(--ivory);
}

body[class*="ecc-template-"] .housing-gallery-suites {
  background: var(--forest-2);
  color: #fff;
}

body[class*="ecc-template-"] .housing-gallery-suites :is(h2, .lead) {
  color: #fff;
}

body[class*="ecc-template-"] .housing-gallery-suites .eyebrow {
  color: var(--gold);
}

body[class*="ecc-template-"] .housing-gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

body[class*="ecc-template-"] .housing-gallery-item {
  grid-column: span 2;
  overflow: hidden;
  height: clamp(260px, 24vw, 360px);
  margin: 0;
  border-radius: 4px;
  background: var(--forest-2);
}

body[class*="ecc-template-"] .housing-gallery-item:nth-child(1),
body[class*="ecc-template-"] .housing-gallery-item:nth-child(2) {
  grid-column: span 3;
  height: clamp(330px, 31vw, 470px);
}

body[class*="ecc-template-"] .housing-gallery-item a {
  display: block;
  width: 100%;
  height: 100%;
}

body[class*="ecc-template-"] .housing-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease, opacity .3s ease;
}

body[class*="ecc-template-"] .housing-gallery-item:hover img {
  opacity: .92;
  transform: scale(1.03);
}

body[class*="ecc-template-"] .housing-services {
  background: #004361;
  color: #fff;
}

body[class*="ecc-template-"] .housing-services :is(h2, h3, .lead) {
  color: #fff;
}

body[class*="ecc-template-"] .housing-services .eyebrow {
  color: var(--gold);
}

body[class*="ecc-template-"] .housing-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, .18);
}

body[class*="ecc-template-"] .housing-service-grid article {
  min-height: 290px;
  padding: 34px 30px;
  background: #004361;
}

body[class*="ecc-template-"] .housing-service-grid article > span {
  margin-bottom: 64px;
}

body[class*="ecc-template-"] .housing-service-grid h3 {
  margin: 0 0 16px;
  font-size: clamp(1.65rem, 2vw, 2.2rem);
}

body[class*="ecc-template-"] .housing-service-grid p {
  margin: 0;
  color: rgba(255, 255, 255, .76);
  font-size: .8rem;
}

body[class*="ecc-template-"] .housing-overflow {
  background: var(--ivory);
}

body[class*="ecc-template-"] .housing-overflow-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
}

body[class*="ecc-template-"] .housing-overflow-grid .btn {
  margin-top: 24px;
}

body[class*="ecc-template-"] .housing-faq {
  background: #fff;
}

body[class*="ecc-template-"] .housing-cta {
  padding-bottom: 72px;
  background: #fff;
}

body[class*="ecc-template-"] .housing-cta .activity-back-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
}

body[class*="ecc-template-"] .housing-cta .activity-back-inner > p {
  margin: 0;
  text-align: center;
}

@media (max-width: 980px) {
  body[class*="ecc-template-"] .team-activity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[class*="ecc-template-"] .activity-subnav {
    top: 76px;
  }

  body.admin-bar[class*="ecc-template-"] .activity-subnav {
    top: 122px;
  }

  body[class*="ecc-template-"] #details,
  body[class*="ecc-template-"] #galerie,
  body[class*="ecc-template-"] #questions-frequentes,
  body[class*="ecc-template-"] #organiser {
    scroll-margin-top: 154px;
  }

  body.admin-bar[class*="ecc-template-"] #details,
  body.admin-bar[class*="ecc-template-"] #galerie,
  body.admin-bar[class*="ecc-template-"] #questions-frequentes,
  body.admin-bar[class*="ecc-template-"] #organiser {
    scroll-margin-top: 200px;
  }

  body[class*="ecc-template-"] .activity-detail-grid,
  body[class*="ecc-template-"] .activity-back-inner > .wp-block-group__inner-container {
    grid-template-columns: 1fr;
  }

  body[class*="ecc-template-"] .activity-detail-section {
    background: #fff;
  }

  body[class*="ecc-template-"] .activity-process-grid,
  body[class*="ecc-template-"] .activity-related-grid {
    grid-template-columns: 1fr;
  }

  body[class*="ecc-template-"] .activity-process-step {
    min-height: 0;
  }

  body[class*="ecc-template-"] .activity-process-step > span {
    margin-bottom: 34px;
  }

  body[class*="ecc-template-"] .activity-process-step:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -30px;
    content: "↓";
    transform: translateX(50%);
  }

  body[class*="ecc-template-"] .activity-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[class*="ecc-template-"] .housing-intro {
    background: #fff;
  }

  body[class*="ecc-template-"] .housing-intro-grid,
  body[class*="ecc-template-"] .housing-overflow-grid {
    grid-template-columns: 1fr;
  }

  body[class*="ecc-template-"] .housing-option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[class*="ecc-template-"] .housing-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[class*="ecc-template-"] .housing-cta .activity-back-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body.ecc-template-home .activity-detail-hero {
    grid-template-rows: calc(100svh - 76px) auto auto auto;
  }

  body.admin-bar.ecc-template-home .activity-detail-hero {
    grid-template-rows: calc(100svh - 122px) auto auto auto;
  }

  body.ecc-template-home .activity-detail-hero .badge {
    z-index: 3;
    grid-area: 1 / 1;
    align-self: start;
    justify-self: start;
    margin: 34px 14px 0;
    padding: 9px 12px;
    color: #fff;
  }

  body.ecc-template-home .activity-detail-hero .hero-actions {
    grid-area: 3 / 1;
    margin: 0;
    padding: 0 14px 36px;
    background: var(--ivory);
  }

  body.ecc-template-home .activity-detail-hero .activity-proofbar {
    grid-area: 4 / 1;
  }

  body[class*="ecc-template-"] .activity-subnav .container {
    justify-content: flex-start;
    gap: 28px;
    padding-inline: 16px;
  }

  body[class*="ecc-template-"] .activity-subnav a {
    padding-block: 17px 15px;
    font-size: .64rem;
  }

  body[class*="ecc-template-"] .team-catalog-filters {
    margin: 24px 0 30px;
  }

  body[class*="ecc-template-"] .team-activity-grid,
  body[class*="ecc-template-"] .activity-benefit-grid {
    grid-template-columns: 1fr;
  }

  body[class*="ecc-template-"] .activity-gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body[class*="ecc-template-"] .activity-gallery-item,
  body[class*="ecc-template-"] .activity-gallery-item:nth-child(-n+2),
  body[class*="ecc-template-"] .activity-gallery-item:nth-child(n+3) {
    grid-column: 1;
    height: clamp(250px, 72vw, 380px);
  }

  body[class*="ecc-template-"] .activity-service-grid {
    grid-template-columns: 1fr;
  }

  body[class*="ecc-template-"] .activity-service-card {
    min-height: 0;
  }

  body[class*="ecc-template-"] .activity-service-card > span {
    margin-bottom: 30px;
  }

  body[class*="ecc-template-"] .activity-related-image {
    height: auto;
  }

  body[class*="ecc-template-"] .activity-back-inner {
    padding: 34px 24px;
  }

  body[class*="ecc-template-"] .team-activity-copy {
    padding: 22px;
  }

  body[class*="ecc-template-"] .team-activity-card h3 {
    font-size: 2rem;
  }

  body[class*="ecc-template-"] .activity-detail-image img {
    min-height: 320px;
  }

  body[class*="ecc-template-"] .activity-benefit {
    min-height: 0;
    padding: 28px 24px;
  }

  body[class*="ecc-template-"] .activity-benefit span {
    margin-bottom: 24px;
  }

  body[class*="ecc-template-"] .activity-back-inner > .wp-block-group__inner-container > p {
    text-align: center;
  }

  body[class*="ecc-template-"] .housing-hero .activity-proofbar {
    margin-top: 0;
  }

  body[class*="ecc-template-"] .housing-intro-grid > figure img,
  body[class*="ecc-template-"] .housing-overflow-grid > figure img {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  body[class*="ecc-template-"] .housing-option-grid,
  body[class*="ecc-template-"] .housing-service-grid,
  body[class*="ecc-template-"] .housing-gallery-grid {
    grid-template-columns: 1fr;
  }

  body[class*="ecc-template-"] .housing-option-card > img {
    height: clamp(260px, 72vw, 390px);
  }

  body[class*="ecc-template-"] .housing-option-card > div {
    min-height: 0;
    padding: 28px 24px 32px;
  }

  body[class*="ecc-template-"] .housing-gallery-item,
  body[class*="ecc-template-"] .housing-gallery-item:nth-child(1),
  body[class*="ecc-template-"] .housing-gallery-item:nth-child(2) {
    grid-column: 1;
    height: clamp(255px, 72vw, 390px);
  }

  body[class*="ecc-template-"] .housing-service-grid article {
    min-height: 0;
  }

  body[class*="ecc-template-"] .housing-service-grid article > span {
    margin-bottom: 32px;
  }

  body[class*="ecc-template-"] .housing-cta .activity-back-inner > p {
    text-align: left;
  }
}
/* Page Info — documents publics importés depuis l'ancien site. */
body.page-id-2028 .etiolles-info-downloads {
  padding-block: clamp(72px, 8vw, 128px);
  background: #fff;
}

body.page-id-2028 .etiolles-info-downloads .section-head {
  margin-bottom: clamp(36px, 5vw, 64px);
}

body.page-id-2028 .info-download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
}

body.page-id-2028 .info-download-grid > .wp-block-group__inner-container {
  display: contents;
}

body.page-id-2028 .info-download-card,
body.page-id-2028 .info-download-card > .wp-block-group__inner-container {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

body.page-id-2028 .info-download-card__cover {
  aspect-ratio: 4 / 5;
  margin: 0 0 22px;
  overflow: hidden;
  background: var(--sand, #f4f0e6);
}

body.page-id-2028 .info-download-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.page-id-2028 .info-download-card p {
  display: flex;
  flex: 1;
  margin: 0;
}

body.page-id-2028 .info-download-card__link {
  display: flex;
  width: 100%;
  min-height: 92px;
  padding: 20px 24px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--gold, #967d48);
  color: #fff;
  font-size: clamp(1rem, 1.25vw, 1.22rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}

body.page-id-2028 .info-download-card__link:hover,
body.page-id-2028 .info-download-card__link:focus-visible {
  background: var(--forest-2, #004d6d);
  color: #fff;
  transform: translateY(-2px);
}

body.page-id-2028 .info-download-card__icon {
  flex: 0 0 auto;
  font-size: 1.35em;
  line-height: 1;
}

@media (max-width: 900px) {
  body.page-id-2028 .info-download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body.page-id-2028 .info-download-grid {
    grid-template-columns: 1fr;
  }

  body.page-id-2028 .info-download-card__cover {
    aspect-ratio: 5 / 4;
  }
}
