/* Custom styles if needed, otherwise Tailwind handles it */
body {
  font-family: "Poppins", sans-serif;
}

@media (min-width: 1536px) {
  .container {
    max-width: 1400px !important;
  }
}

.hero-pattern {
  background-color: #bc1728;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.1) 1px,
    transparent 1px
  );
  background-size: 20px 20px;
}

.custom-scrollbar::-webkit-scrollbar {
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #bc1728;
  border-radius: 10px;
}

/* Base Content Styles (Prose) */
.prose {
  color: #4a5568; /* gray-700 */
  line-height: 1.75;
}

.prose p {
  margin-bottom: 1.5rem;
}

.prose h2 {
  color: #bc1728; /* primary */
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h3 {
  color: #bc1728;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose ul,
.prose ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.prose ul {
  list-style-type: disc;
}

.prose ol {
  list-style-type: decimal;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose blockquote {
  border-left: 4px solid #e53e3e; /* accent/red */
  padding: 0.5rem 1rem;
  font-style: italic;
  background-color: #f7fafc; /* gray-50 */
  margin: 2rem 0;
  color: #2d3748;
}

.prose blockquote p {
  margin-bottom: 0 !important;
}

.prose img {
  border-radius: 0.75rem;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  margin-top: 2rem;
  margin-bottom: 2rem;
  max-width: 100%;
  height: auto;
}

.prose figure {
  margin: 2rem 0;
}

.prose figcaption {
  font-size: 0.875rem;
  color: #718096;
  text-align: center;
  margin-top: 0.5rem;
}

.prose strong {
  color: #1a202c;
  font-weight: 600;
}

.prose a {
  color: #bc1728;
  text-decoration: underline;
  font-weight: 600;
}

.prose a:hover {
  color: #e53e3e;
}

.prose .lead {
  font-size: 1.25rem;
  color: #1a202c;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

/* Hide Google Translate Toolbar */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
}

body {
  top: 0 !important;
}

/* Fix for Google Translate injecting space at the top */
.goog-te-spinner-pos {
  display: none !important;
}

/* Hide the attribution/tooltip if needed */
.goog-tooltip {
  display: none !important;
}
.goog-tooltip:hover {
  display: none !important;
}
.goog-text-highlight {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.skiptranslate {
  margin-top: -40px !important;
}

/* Historical journey: geometry follows the supplied 1916 × 787 reference. */
@font-face {
  font-family: "Japsso Storyline";
  src: url("../fonts/lato-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.history-scroll {
  --history-accent: #f45a00;
  --history-muted: #777;
  --history-gutter: 4.385vw;
  --history-step: 22.23vw;
  --history-axis: 58.5%;
  --history-stem: 35.6%;
  position: relative;
  margin: 0 0 48px;
  background: white;
  color: #101010;
  font-family: "Japsso Storyline", Arial, sans-serif;
  font-weight: 400;
  font-kerning: normal;
}
.history-scroll:focus {
  outline: none;
}
.history-scroll:focus-visible {
  outline: 1px solid #f45a00;
  outline-offset: -1px;
}
.history-scroll__stage {
  position: relative;
  height: var(--history-height, 100svh);
  background: #fff;
}
.history-scroll.is-scroll-driven .history-scroll__stage {
  position: sticky;
  top: var(--history-top, 0px);
}
.history-scroll__viewport {
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #f45a00 white;
}
.history-scroll.is-scroll-driven .history-scroll__viewport {
  overflow: hidden;
}
.history-scroll__track {
  display: flex;
  width: max-content;
  height: 100%;
  padding-left: var(--history-gutter);
  padding-right: calc((100vw - var(--history-step)) / 2);
}
.history-scroll.is-scroll-driven .history-scroll__track {
  will-change: transform;
}
.history-scroll__photo {
  position: relative;
  top: var(--history-axis);
  transform: translateY(-50%);
  flex: 0 0 26.096vw;
  height: 73.45%;
  margin: 0 5.063vw 0 0;
}
.history-scroll__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% center;
  border-radius: 1.044vw;
}
.history-scroll__intro {
  position: relative;
  flex: 0 0 33.716vw;
}
.history-scroll__intro::after,
.history-scroll__events::before {
  content: "";
  position: absolute;
  top: var(--history-axis);
  left: 0;
  right: 0;
  height: 1px;
  background: var(--history-accent);
}
.history-scroll__intro h2 {
  position: absolute;
  top: calc(var(--history-axis) - var(--history-stem) + 4.7vh);
  left: 0;
  max-width: 8ch;
  margin: 0;
  color: #101010;
  font-size: 3.027vw;
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0;
}
.history-scroll__range {
  position: absolute;
  top: calc(var(--history-axis) + 4.3vh);
  margin: 0;
  color: var(--history-muted);
  font-size: 1.67vw;
  line-height: 1.25;
  font-variant-numeric: lining-nums;
}
.history-scroll__origin {
  position: absolute;
  top: calc(var(--history-axis) - 0.418vw);
  left: 0;
  width: 0.835vw;
  height: 0.835vw;
  border-radius: 50%;
  background: var(--history-accent);
  z-index: 1;
}
.history-scroll__events {
  position: relative;
  display: flex;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.history-scroll__event {
  position: relative;
  flex: 0 0 var(--history-step);
  width: var(--history-step);
}
.history-scroll__stem {
  position: absolute;
  left: 0;
  top: calc(var(--history-axis) - var(--history-stem));
  width: 1px;
  height: var(--history-stem);
  background: #ccc;
}
.history-scroll__stem::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--history-accent);
  transform: scaleY(var(--milestone-progress, 1));
  transform-origin: bottom;
}
.history-scroll__stem span {
  position: absolute;
  left: -0.47vw;
  top: -0.47vw;
  width: 0.94vw;
  height: 0.94vw;
  background: var(--history-accent);
  border-radius: 50%;
}
.history-scroll__copy {
  position: absolute;
  left: 2.975vw;
  width: 22vw;
  top: calc(var(--history-axis) - var(--history-stem) - 2.4vh);
  overflow-wrap: anywhere;
}
.history-scroll__year {
  margin: 0 0 1.7vh;
  color: #101010;
  font-size: 2.505vw;
  font-weight: 400;
  line-height: 1.15;
}
.history-scroll__copy h3 {
  margin: 0 0 0.5vh;
  color: var(--history-muted);
  font-size: 1.566vw;
  line-height: 1.16;
  font-weight: 400;
}
.history-scroll__description {
  margin: 0;
  color: var(--history-muted);
  font-size: 1.566vw;
  line-height: 1.16;
}
.history-scroll__event:nth-child(even) .history-scroll__stem {
  top: var(--history-axis);
}
.history-scroll__event:nth-child(even) .history-scroll__stem::before {
  transform-origin: top;
}
.history-scroll__event:nth-child(even) .history-scroll__stem span {
  top: auto;
  bottom: -0.47vw;
}
.history-scroll__event:nth-child(even) .history-scroll__copy {
  top: calc(var(--history-axis) + 15.3vh);
}
.history-scroll__toolbar {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.history-scroll__toolbar:focus-within {
  z-index: 2;
  clip-path: none;
  width: auto;
  height: auto;
  margin: 0;
  top: 12px;
  right: 24px;
  padding: 8px 12px;
  background: white;
  font-size: 14px;
}
.history-scroll__toolbar p,
.history-scroll__progress {
  display: none;
}
.history-scroll__end {
  scroll-margin-top: 120px;
}
@media (max-width: 767px) {
  .history-scroll {
    --history-gutter: 24px;
    --history-step: 68vw;
    --history-axis: 50%;
    --history-stem: 30%;
  }
  .history-scroll__photo {
    flex-basis: 65vw;
    height: 72%;
    margin-right: 28px;
  }
  .history-scroll__photo img {
    border-radius: 12px;
  }
  .history-scroll__intro {
    flex-basis: 74vw;
  }
  .history-scroll__intro h2 {
    top: calc(var(--history-axis) - var(--history-stem) + 24px);
    font-size: 34px;
    line-height: 1.05;
  }
  .history-scroll__range {
    top: calc(var(--history-axis) + 20px);
    font-size: 18px;
  }
  .history-scroll__origin {
    width: 8px;
    height: 8px;
    top: calc(var(--history-axis) - 4px);
  }
  .history-scroll__copy {
    left: 24px;
    width: 57vw;
    top: calc(var(--history-axis) - var(--history-stem) - 10px);
  }
  .history-scroll__year {
    font-size: 28px;
    margin-bottom: 12px;
  }
  .history-scroll__copy h3,
  .history-scroll__description {
    font-size: 16px;
    line-height: 1.25;
  }
  .history-scroll__stem span {
    width: 9px;
    height: 9px;
    top: -4px;
    left: -4px;
  }
  .history-scroll__event:nth-child(even) .history-scroll__stem span {
    bottom: -4px;
  }
  .history-scroll__event:nth-child(even) .history-scroll__copy {
    top: calc(var(--history-axis) + 44px);
  }
}
@media print {
  .history-scroll__stage {
    height: auto;
  }
  .history-scroll__viewport {
    overflow: visible;
  }
  .history-scroll__track {
    display: block;
    width: auto;
    padding: 24px;
    transform: none !important;
  }
  .history-scroll__photo {
    top: auto;
    transform: none;
    width: 300px;
    height: 300px;
    margin-bottom: 24px;
  }
  .history-scroll__intro h2,
  .history-scroll__range,
  .history-scroll__copy,
  .history-scroll__event:nth-child(even) .history-scroll__copy {
    position: static;
  }
  .history-scroll__intro h2 {
    font-size: 32px;
  }
  .history-scroll__events {
    display: block;
  }
  .history-scroll__event {
    width: auto;
    margin-top: 24px;
  }
  .history-scroll__copy {
    width: auto;
  }
  .history-scroll__year {
    font-size: 24px;
  }
  .history-scroll__copy h3,
  .history-scroll__description {
    font-size: 16px;
  }
  .history-scroll__intro::after,
  .history-scroll__events::before,
  .history-scroll__stem,
  .history-scroll__origin {
    display: none;
  }
}
@font-face {
  font-family: "Japsso Hero";
  src: url("../fonts/montserrat-extra-bold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Japsso Hero";
  src: url("../fonts/montserrat-semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
.home-hero {
  --hero-accent: #bc1728;
  position: relative;
  height: clamp(760px, 54.6vw, 1000px);
  color: #fff;
  background: #292929;
  overflow: hidden;
}
.home-hero__slides,
.home-hero__slide,
.home-hero__image,
.home-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.home-hero__slide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.8s ease,
    visibility 0.8s;
}
.home-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.home-hero__image {
  object-fit: cover;
  object-position: center;
}
.home-hero__shade {
  background: rgb(0 0 0 / 60%);
}
.home-hero__content {
  position: relative;
  z-index: 1;
  padding: clamp(100px, 14.3vw, 262px) 5.84vw 200px;
}
.home-hero__title {
  max-width: 1040px;
  margin: 0 0 36px;
  color: #fff;
  font-family: "Japsso Hero", sans-serif;
  font-size: clamp(48px, 4.37vw, 80px);
  font-weight: 800;
  line-height: 1.17;
  letter-spacing: 0;
}
.home-hero__title mark {
  color: inherit;
  background: var(--hero-accent);
  padding: 0 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.home-hero__description {
  max-width: 1050px;
  margin: 0 0 52px;
  color: #fff;
  font-family: "Japsso Hero", sans-serif;
  font-size: clamp(16px, 1.2vw, 22px);
  font-weight: 600;
  line-height: 1.5;
}

.home-hero__cta:focus-visible,
.home-hero__number:focus-visible,
.home-hero__pause:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 6px;
}
.home-hero__navigation {
  position: absolute;
  bottom: 62px;
  left: 5.84vw;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 24px;
}
.home-hero__number {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  padding: 0;
  color: #ccc;
  background: none;
  border: 0;
  font-family: "Japsso Hero", sans-serif;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}
.home-hero__number.is-active {
  color: var(--hero-accent);
}
.home-hero__number span {
  display: block;
  width: 0;
  height: 2px;
  background: var(--hero-accent);
}
.home-hero__number.is-active span {
  width: 140px;
}
.home-hero__pause {
  display: grid;
  place-items: center;
  width: 32px;
  height: 44px;
  padding: 8px;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
}
.home-hero__pause svg {
  width: 16px;
  height: 16px;
}
.home-hero__play-icon {
  display: none;
}
.home-hero__pause[aria-pressed="true"] .home-hero__pause-icon {
  display: none;
}
.home-hero__pause[aria-pressed="true"] .home-hero__play-icon {
  display: block;
}
.home-hero__stats {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(var(--hero-stat-count), minmax(0, 1fr));
  width: 51.3%;
  min-height: 132px;
  margin: 0;
  padding: 0 28px;
  color: #111;
  background: #fff;
}
.home-hero__stats--many {
  width: 66%;
}
.home-hero__stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  border-right: 1px solid #e3e1dc;
}
.home-hero__stat:last-child {
  border-right: none;
}
.home-hero__value {
  order: 0;
  position: relative;
  flex-shrink: 0;
  margin: 0;
  font-family: "Japsso Storyline", Arial, sans-serif;
  font-size: clamp(30px, 2.62vw, 48px);
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}
.home-hero__value--circled::after {
  content: "";
  position: absolute;
  inset: -8px -12px;
  border: 1px solid var(--hero-accent);
  border-radius: 50%;
  transform: rotate(-8deg);
}
.home-hero__label {
  order: 1;
  max-width: 175px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}
@media (min-width: 1100px) and (max-width: 1500px) {
  .home-hero__stats--many .home-hero__stat {
    gap: 10px;
    padding: 24px 14px;
  }
  .home-hero__stats--many .home-hero__value {
    font-size: 32px;
  }
  .home-hero__stats--many .home-hero__label {
    font-size: 11px;
  }
  .home-hero__navigation {
    gap: 16px;
  }
  .home-hero__number.is-active span {
    width: 84px;
  }
}
@media (max-width: 1099px) {
  .home-hero {
    height: auto;
    min-height: 880px;
    padding-bottom: 172px;
  }
  .home-hero__slides {
    position: relative;
    height: 700px;
  }
  .home-hero__content {
    padding: 90px 6vw 100px;
  }
  .home-hero__title {
    font-size: clamp(38px, 6.3vw, 64px);
    margin-bottom: 28px;
  }
  .home-hero__description {
    max-width: 680px;
    font-size: 16px;
    margin-bottom: 32px;
  }

  .home-hero__navigation {
    left: 6vw;
    bottom: 184px;
    gap: 20px;
  }
  .home-hero__number {
    font-size: 15px;
  }
  .home-hero__number.is-active span {
    width: 80px;
  }
  .home-hero__stats,
  .home-hero__stats--many {
    width: 100%;
    min-height: 148px;
    padding: 0 20px;
  }
  .home-hero__stat {
    padding: 24px 14px;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .home-hero__value {
    font-size: 34px;
  }
  .home-hero__label {
    font-size: 12px;
  }
}
@media (max-width: 600px) {
  .home-hero {
    min-height: 900px;
    padding-bottom: 240px;
  }
  .home-hero__slides {
    height: 650px;
  }
  .home-hero__content {
    padding: 80px 24px 120px;
  }
  .home-hero__title {
    font-size: clamp(32px, 7.9vw, 46px);
    line-height: 1.22;
  }
  .home-hero__description {
    font-size: 14px;
    line-height: 1.5;
  }
  .home-hero__image {
    object-position: 55% center;
  }
  .home-hero__navigation {
    bottom: 256px;
    left: 24px;
    gap: 16px;
  }
  .home-hero__number.is-active span {
    width: 64px;
  }
  .home-hero__stats,
  .home-hero__stats--many {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 224px;
    padding: 8px 16px;
  }
  .home-hero__stat {
    padding: 18px 12px;
  }
  .home-hero__stat:nth-child(2n) {
    border-right: none;
  }
  .home-hero__value {
    font-size: 32px;
  }
  .home-hero__label {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero__slide,
  .home-hero__number span {
    transition: none;
  }
}

/* Homepage domains: photographic cards from the supplied Services reference. */
.interventions-showcase {
  --domain-red: #bc1728;
  padding: 88px 0 80px;
  overflow: hidden;
  background: #f6f5f8;
}
.interventions-showcase__heading {
  max-width: 900px;
  margin: 0 auto 60px;
  padding: 0 24px;
  text-align: center;
}
.interventions-showcase__heading h2 {
  margin: 0 0 20px;
  color: #10102b;
  font-size: clamp(28px, 2.4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
}
.interventions-showcase__heading p {
  margin: 0;
  color: #526174;
  font-size: 17px;
  line-height: 1.6;
}
.interventions-showcase__viewport {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-padding-inline: 2vw;
}
.interventions-showcase__viewport::-webkit-scrollbar {
  display: none;
}
.interventions-showcase__viewport:focus-visible {
  outline: 2px solid var(--domain-red);
  outline-offset: -3px;
}
.interventions-showcase__track {
  display: flex;
  gap: 1.64vw;
  width: max-content;
  padding: 0 2vw;
}
.intervention-photo {
  position: relative;
  display: block;
  flex: 0 0 22.5vw;
  width: 22.5vw;
  height: 26vw;
  overflow: hidden;
  border-radius: 20px;
  color: #fff;
  background: #350a10;
  isolation: isolate;
  user-select: none;
  -webkit-user-drag: none;
}
.intervention-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.intervention-photo::before,
.intervention-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.intervention-photo::before {
  background: linear-gradient(
    0deg,
    #36070d 0%,
    rgb(54 7 13 / 65%) 32%,
    rgb(54 7 13 / 6%) 100%
  );
}
.intervention-photo::after {
  background: linear-gradient(
    0deg,
    #5dac32 0%,
    rgb(65 255 53 / 76%) 35%,
    rgb(53 65 255 / 0%) 100%
  );
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.intervention-photo__content {
  position: absolute;
  z-index: 2;
  bottom: 40px;
  left: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.intervention-photo__icon {
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 16px;
  color: #fff;
  background: var(--domain-red);
}
.intervention-photo__icon svg {
  width: 48px;
  height: 48px;
}
.intervention-photo h3 {
  margin: 0;
  max-width: 100%;
  color: #fff;
  font-size: clamp(18px, 1.53vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.intervention-photo:hover::after,
.intervention-photo:focus-visible::after {
  opacity: 1;
}
.intervention-photo:hover .intervention-photo__content,
.intervention-photo:focus-visible .intervention-photo__content {
  transform: translateY(-35px);
}
.intervention-photo:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -7px;
}
.intervention-photo__visit {
  position: absolute;
  z-index: 3;
  left: var(--pointer-x, 50%);
  top: var(--pointer-y, 42%);
  transform: translate(-50%, -50%);
  display: grid;
  align-content: center;
  width: 104px;
  height: 104px;
  padding: 20px;
  border: 1px solid rgb(255 255 255 / 80%);
  border-radius: 50%;
  color: #fff;
  background: #700e19;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .intervention-photo:hover {
    cursor: none;
  }
  .intervention-photo:hover .intervention-photo__visit {
    opacity: 1;
  }
}
.interventions-showcase__all {
  display: flex;
  justify-content: center;
  margin: 64px auto 0;
}

.interventions-showcase__empty {
  padding: 40px;
  color: #526174;
}
@media (max-width: 1100px) {
  .interventions-showcase__track {
    gap: 24px;
    padding-inline: 24px;
  }
  .intervention-photo {
    flex-basis: 31vw;
    width: 31vw;
    height: 40vw;
  }
  .intervention-photo__icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
  }
  .intervention-photo__icon svg {
    width: 36px;
    height: 36px;
  }
  .intervention-photo__content {
    bottom: 28px;
    gap: 18px;
  }
}
@media (max-width: 640px) {
  .interventions-showcase {
    padding: 56px 0;
  }
  .interventions-showcase__heading {
    margin-bottom: 32px;
  }
  .interventions-showcase__heading p {
    font-size: 15px;
  }
  .intervention-photo {
    flex-basis: 76vw;
    width: 76vw;
    height: 98vw;
    border-radius: 16px;
  }
  .intervention-photo h3 {
    font-size: 22px;
  }
  .intervention-photo__content {
    bottom: 32px;
  }
  .interventions-showcase__all {
    margin-top: 36px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .intervention-photo::after {
    transition-duration: 0.25s;
  }
  .intervention-photo__content,
  .intervention-photo__visit {
    transition-duration: 0.3s;
  }
}
/* Available to keyboard readers without adding chrome to the reference layout. */
.interventions-showcase__pause {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
}
.interventions-showcase__pause:focus-visible {
  position: static;
  display: block;
  clip-path: none;
  width: auto;
  height: auto;
  padding: 10px 16px;
  margin: 16px auto 0;
  color: #10102b;
  border: 1px solid #bc1728;
  border-radius: 6px;
}
/* Executive director introduction, following the About timeline. */
.about-director {
  background: #f4f6f3;
  padding: 64px 0 0;
  overflow: hidden;
}
.about-director__inner {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "portrait presentation";
  gap: 64px;
  align-items: center;
}
.about-director__presentation {
  grid-area: presentation;
  padding: 24px 0 64px;
}
.about-director__presentation h2 {
  color: #121612;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  text-wrap: balance;
}
.about-director__role {
  color: #a50017;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 24px;
}
.about-director__description {
  color: #4c554d;
  font-size: 16px;
  line-height: 1.75;
  max-width: 60ch;
  margin-bottom: 30px;
}

.about-director__portrait {
  grid-area: portrait;
  align-self: end;
}
.about-director__portrait img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 0 auto;
}
.about-director ::selection {
  background: #cef1c3;
  color: #142610;
}
@media (max-width: 800px) {
  .about-director {
    padding-top: 40px;
  }
  .about-director__inner {
    gap: 32px;
  }
  .about-director__presentation {
    padding-bottom: 40px;
  }
  .about-director__description {
    font-size: 15px;
  }
}
@media (max-width: 640px) {
  .about-director {
    padding-top: 36px;
  }
  .about-director__inner {
    width: calc(100% - 40px);
    grid-template-columns: 1fr;
    grid-template-areas: "presentation" "portrait";
    gap: 28px;
  }
  .about-director__presentation {
    padding: 0;
  }
  .about-director__presentation h2 {
    font-size: 30px;
  }
  .about-director__role {
    font-size: 17px;
    margin-bottom: 18px;
  }
  .about-director__description {
    margin-bottom: 24px;
  }
  .about-director__portrait img {
    max-width: 440px;
  }
}
/* Shared header utility bar. */
.header-topbar {
  background: #bc1728;
  color: #fff;
}
.header-topbar a,
.header-topbar span,
.header-topbar .text-primary {
  color: #fff;
}
.header-topbar a:hover {
  color: #fff;
  opacity: 0.8;
}
.header-topbar a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 2px;
}
/* Red page titles: photography fades into the brand color on desktop only. */
.page-image-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #bc1728;
}
.page-image-banner > .container {
  position: relative;
  z-index: 1;
}
@media (min-width: 1024px) {
  .page-image-banner:before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 46%;
    background-image:
      linear-gradient(
        90deg,
        #bc1728 0%,
        rgba(188, 23, 40, 0.92) 12%,
        rgba(188, 23, 40, 0.45) 48%,
        rgba(188, 23, 40, 0.08) 100%
      ),
      url("../images/img5.jpg");
    background-size: cover;
    background-position:
      center,
      62% 45%;
    pointer-events: none;
  }
  .page-image-banner > .container > h1 {
    max-width: 68%;
  }
  .page-image-banner .banner-donation-content {
    text-align: left;
  }
  .page-image-banner .banner-donation-content > p {
    max-width: 60%;
    margin-left: 0;
    margin-right: 0;
  }
}

/* === Home hero: viewport fit + animated slider (overrides above) === */
.home-hero {
  --hero-offset: 149px;
  --hero-stats-h: clamp(96px, 15svh, 132px);
  --hero-duration: 6000ms;
  height: calc(100svh - var(--hero-offset));
  min-height: 520px;
  padding-bottom: 0;
}
.home-hero__slides {
  position: absolute;
  height: 100%;
}
.home-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
  padding: 24px 5.84vw calc(var(--hero-stats-h) + 64px);
}
.home-hero__title {
  font-size: clamp(34px, min(4.37vw, 9svh), 80px);
  margin-bottom: clamp(14px, 3svh, 36px);
}
.home-hero__description {
  font-size: clamp(14px, min(1.2vw, 2.4svh), 22px);
  margin-bottom: clamp(18px, 4svh, 52px);
}

.home-hero__navigation {
  bottom: calc((var(--hero-stats-h) - 44px) / 2);
}
.home-hero__stats,
.home-hero__stats--many {
  min-height: 0;
  height: var(--hero-stats-h);
}
.home-hero__stat {
  padding-block: 12px;
}
/* progress line */
.home-hero__number span {
  position: relative;
  width: 0;
  overflow: hidden;
  background: rgb(255 255 255 / 30%);
  transition: width 0.4s ease;
}
.home-hero__number.is-active span {
  width: 140px;
}
.home-hero__number span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-accent);
  transform: scaleX(0);
  transform-origin: left;
}
.home-hero__number.is-active span::after {
  animation: heroProgress var(--hero-duration) linear forwards;
}
.home-hero.is-paused .home-hero__number.is-active span::after {
  animation-play-state: paused;
}
.home-hero.is-static .home-hero__number.is-active span::after {
  animation: none;
  transform: scaleX(1);
}
@keyframes heroProgress {
  to {
    transform: scaleX(1);
  }
}
/* entrance sequence */
.home-hero__slide {
  transition:
    opacity 1s ease,
    visibility 1s;
}
.home-hero__image {
  transform: scale(1);
  will-change: transform;
}
.home-hero__slide.is-active .home-hero__image {
  animation: heroKenBurns 9s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}
.home-hero__line {
  display: block;
}
.home-hero__line,
.home-hero__description,
.home-hero__cta {
  opacity: 0;
  transform: translateY(28px);
}
.home-hero__slide.is-active .home-hero__line,
.home-hero__slide.is-active .home-hero__description,
.home-hero__slide.is-active .home-hero__cta {
  animation: heroRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.home-hero__slide.is-active .home-hero__line:nth-child(1) {
  animation-delay: 0.35s;
}
.home-hero__slide.is-active .home-hero__line:nth-child(2) {
  animation-delay: 0.5s;
}
.home-hero__slide.is-active .home-hero__line:nth-child(3) {
  animation-delay: 0.65s;
}
.home-hero__slide.is-active .home-hero__description {
  animation-delay: 0.9s;
}
.home-hero__slide.is-active .home-hero__cta {
  animation-delay: 1.1s;
}
@keyframes heroKenBurns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.12);
  }
}
@keyframes heroRise {
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 1099px) {
  .home-hero {
    --hero-stats-h: 120px;
  }
  .home-hero__slides {
    height: calc(100% - var(--hero-stats-h));
  }
  .home-hero__content {
    padding: 24px 6vw 84px;
  }
  .home-hero__navigation {
    bottom: calc(var(--hero-stats-h) + 16px);
  }
  .home-hero__number.is-active span {
    width: 80px;
  }
}
@media (max-width: 600px) {
  .home-hero {
    --hero-stats-h: 168px;
    min-height: 600px;
  }
  .home-hero__content {
    padding: 16px 24px 76px;
  }
  .home-hero__title {
    font-size: clamp(28px, min(8vw, 6.5svh), 46px);
  }

  .home-hero__stat {
    padding: 8px;
  }
  .home-hero__value {
    font-size: 26px;
  }
  .home-hero__number.is-active span {
    width: 56px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero__slide.is-active .home-hero__image {
    animation: none;
  }
  .home-hero__line,
  .home-hero__description,
  .home-hero__cta {
    transform: none;
  }
  .home-hero__slide.is-active .home-hero__line,
  .home-hero__slide.is-active .home-hero__description,
  .home-hero__slide.is-active .home-hero__cta {
    animation: heroFade 0.6s ease forwards;
    animation-delay: 0s;
  }
  @keyframes heroFade {
    to {
      opacity: 1;
    }
  }
}

/* === Home hero stats: number above label, centered === */
.home-hero__stats,
.home-hero__stats--many {
  padding: 0;
}
.home-hero__stat,
.home-hero__stats--many .home-hero__stat {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  text-align: center;
}
.home-hero__value,
.home-hero__stats--many .home-hero__value {
  order: 0;
  color: #bc1728;
  font-family: "Japsso Hero", sans-serif;
  font-weight: 800;
  font-size: clamp(26px, min(2.4vw, 5svh), 44px);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.home-hero__value--circled::after {
  content: none;
}
.home-hero__label,
.home-hero__stats--many .home-hero__label {
  order: 1;
  max-width: 180px;
  margin: 0;
  color: #5b5b5b;
  font-size: clamp(11px, 0.85vw, 14px);
  font-weight: 600;
  line-height: 1.3;
}
@media (max-width: 600px) {
  .home-hero__stat:nth-child(-n + 2) {
    border-bottom: 1px solid #e3e1dc;
  }
  .home-hero__value,
  .home-hero__stats--many .home-hero__value {
    font-size: 28px;
  }
}

/* === Home: activités (1 grande + 4) === */
.home-acts {
  padding: clamp(56px, 7vw, 96px) 0;
  background: #fff;
}
.home-acts__inner {
  width: min(1320px, 100% - 32px);
  margin-inline: auto;
}
.home-acts__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.home-acts__title {
  margin: 0;
  color: #111;
  font-family: "Japsso Hero", sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.home-acts__all {
  padding: 10px 26px;
  border-radius: 999px;
  color: #333;
  background: #ececec;
  font-weight: 600;
  transition:
    background 0.2s,
    color 0.2s;
}
.home-acts__all:hover {
  color: #fff;
  background: #bc1728;
}
.home-acts__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 26px;
}
.home-acts__card {
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f4f4f4;
}
.home-acts__card--lead {
  grid-row: 1 / span 2;
}
.home-acts__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}
.home-acts__link:focus-visible {
  outline: 2px solid #bc1728;
  outline-offset: 3px;
  border-radius: 12px;
}
.home-acts__media {
  position: relative;
  aspect-ratio: 16 / 8.6;
  overflow: hidden;
}
.home-acts__card--lead .home-acts__media {
  flex: 1;
  aspect-ratio: auto;
  min-height: 320px;
}
.home-acts__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.home-acts__link:hover .home-acts__media img {
  transform: scale(1.05);
}
.home-acts__time {
  position: absolute;
  right: 14px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  color: #fff;
  background: rgb(40 40 40 / 75%);
  font-size: 13px;
  font-weight: 600;
}
.home-acts__time svg {
  width: 13px;
  height: 13px;
}
.home-acts__body {
  padding: 14px 18px 20px;
}
.home-acts__tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 6px;
  color: #222;
  background: #e4e4e4;
  font-size: 13px;
  font-weight: 600;
}
.home-acts__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  color: #111;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  transition: color 0.2s;
}
.home-acts__card--lead .home-acts__name {
  font-size: clamp(19px, 1.6vw, 23px);
}
.home-acts__link:hover .home-acts__name {
  color: #bc1728;
}
@media (max-width: 1023px) {
  .home-acts__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }
  .home-acts__card--lead {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .home-acts__card--lead .home-acts__media {
    flex: none;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
}
@media (max-width: 600px) {
  .home-acts__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .home-acts__title {
    font-size: 26px;
  }
  .home-acts__all {
    padding: 8px 18px;
    white-space: nowrap;
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-acts__media img {
    transition: none;
  }
}

/* Activités : alignées sur le style des cartes "Nos Projets Phares" */
.home-acts {
  padding: 5rem 0;
}
.home-acts__card {
  background: #fff;
  border-radius: 12px;
  box-shadow:
    0 10px 15px -3px rgb(0 0 0 / 10%),
    0 4px 6px -4px rgb(0 0 0 / 10%);
  transition: box-shadow 0.3s;
}
.home-acts__card:hover {
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 25%);
}
.home-acts__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  color: #fff;
  background: #bc1728;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.home-acts__body {
  padding: 20px 24px 24px;
}
.home-acts__name {
  font-size: 18px;
  color: #111827;
}
.home-acts__card--lead .home-acts__name {
  font-size: clamp(20px, 1.6vw, 24px);
}

/* === Mega menu Ressources === */
.mega-res {
  --doc: #bc1728;
  --gal: #111;
  --vid: #31a44f;
}
.mega-res__panel {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 60;
  width: min(1560px, calc(100vw - 48px));
  transform: translate(-50%, 8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.2s;
}
.mega-res__panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -28px;
  height: 28px;
}
.mega-res:hover .mega-res__panel,
.mega-res:focus-within .mega-res__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.mega-res.is-closed .mega-res__panel {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.mega-res__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  overflow: hidden;
  border-radius: 0 0 12px 12px;
  background: #fff;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 25%);
  border-top: 3px solid var(--doc);
}
.mega-res__title {
  margin: 0 0 12px;
  color: #111827;
  font-size: 18px;
  font-weight: 700;
}
.mega-res__docs {
  grid-row: 1 / span 2;
  padding: 28px 40px 32px;
  background: #f3f4f6;
}
.mega-res__docs .mega-res__title {
  font-size: 22px;
  margin-bottom: 18px;
}
.mega-res__docs-body {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  gap: 32px;
}
.mega-res__cover {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 8px;
  color: var(--doc);
  background: #fff;
  box-shadow: 0 10px 24px -12px rgb(0 0 0 / 35%);
}
.mega-res__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mega-res__cover svg {
  width: 42%;
}
.mega-res__cover--art {
  aspect-ratio: 445 / 556;
  background: transparent;
  box-shadow: none;
  border-radius: 16px;
}
.mega-res__cover--art img {
  object-fit: contain;
  transition: transform 0.3s ease;
}
.mega-res__cover--art:hover img {
  transform: translateY(-3px);
}
@media (prefers-reduced-motion: reduce) {
  .mega-res__cover--art img {
    transition: none;
  }
}
.mega-res__docs-side,
.mega-res__media-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.mega-res__list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.mega-res__list li + li {
  margin-top: 2px;
}
.mega-res__list a {
  display: block;
  padding: 8px 10px;
  margin-inline: -10px;
  border-radius: 6px;
  color: #1f2937;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  transition:
    background 0.15s,
    color 0.15s;
}
.mega-res__list a:hover,
.mega-res__list a:focus-visible {
  color: var(--doc);
  background: #fff;
}
.mega-res__list small {
  display: block;
  margin-top: 2px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
}
.mega-res__list--compact a {
  padding: 5px 10px;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mega-res__empty {
  color: #6b7280;
  font-size: 14px;
}
.mega-res__btn {
  align-self: flex-start;
  margin-top: auto;
}

.mega-res__media {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  padding: 26px 40px;
}
.mega-res__media--gal {
  border-bottom: 1px solid #e5e7eb;
}
.mega-res__media .mega-res__list a:hover {
  color: #111;
  background: #f3f4f6;
}
.mega-res__media--vid .mega-res__list a:hover {
  color: var(--vid);
}
.mega-res__thumb {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: #f3f4f6;
}
.mega-res__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mega-res__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgb(0 0 0 / 20%);
}
.mega-res__play svg {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 50%;
  background: var(--vid);
}
@media (max-width: 1279px) {
  .mega-res__docs {
    padding: 24px 28px;
  }
  .mega-res__media {
    padding: 22px 28px;
    grid-template-columns: 120px 1fr;
  }
  .mega-res__docs-body {
    grid-template-columns: 150px 1fr;
    gap: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mega-res__panel {
    transition: none;
    transform: translate(-50%, 0);
  }
}

/* === Pages Ressources === */
.res-tabs {
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}
.res-tabs__inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-top: 16px;
  padding-bottom: 16px;
}
.res-tabs__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 8px 16px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  color: #4b5563;
  font-weight: 500;
  transition:
    background 0.15s,
    color 0.15s;
}
.res-tabs__tab span {
  min-width: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 12px;
  text-align: center;
}
.res-tabs__tab:hover {
  background: #f9fafb;
}
.res-tabs__tab.is-active {
  color: #fff;
  background: #bc1728;
  border-color: #bc1728;
}
.res-tabs__tab--gal.is-active {
  background: #111;
  border-color: #111;
}
.res-tabs__tab--vid.is-active {
  background: #31a44f;
  border-color: #31a44f;
}
.res-tabs__tab.is-active span {
  color: inherit;
  background: rgb(255 255 255 / 22%);
}
.res-page {
  padding-bottom: 80px;
}
.res-section {
  padding-top: 64px;
}
.res-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}
.res-section__head h2 {
  margin: 0 0 16px;
  color: #111827;
  font-size: clamp(30px, 2.6vw, 36px);
  font-weight: 700;
  line-height: 1.2;
}
.res-section__head h2::after {
  content: "";
  display: block;
  width: 96px;
  height: 4px;
  margin-top: 16px;
  border-radius: 4px;
  background: #e83239;
}
.res-section__head p {
  margin: 0;
  color: #6b7280;
}

.res-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.res-doc {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  background: #fff;
  color: inherit;
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
  transition: box-shadow 0.2s;
}
.res-doc:hover {
  box-shadow:
    0 4px 6px -1px rgb(0 0 0 / 10%),
    0 2px 4px -2px rgb(0 0 0 / 10%);
}
.res-doc__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 64px;
  overflow: hidden;
  border: 1px solid #f3f4f6;
  border-radius: 6px;
  color: #ef4444;
  background: #f9fafb;
}
.res-doc__icon svg {
  width: 28px;
}
.res-doc__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.res-doc__body {
  min-width: 0;
}
.res-doc__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #111827;
  font-weight: 700;
  line-height: 1.35;
  transition: color 0.15s;
}
.res-doc:hover .res-doc__title {
  color: #bc1728;
}
.res-doc__meta {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-size: 12px;
}
.res-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}
.res-media {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  color: inherit;
  box-shadow:
    0 10px 15px -3px rgb(0 0 0 / 10%),
    0 4px 6px -4px rgb(0 0 0 / 10%);
  transition: box-shadow 0.3s;
}
.res-media:hover {
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 25%);
}
.res-media__img {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f3f4f6;
}
.res-media__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.res-media:hover .res-media__img img {
  transform: scale(1.05);
}
.res-media__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  color: #fff;
  background: #111;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.res-media__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
}
.res-media__play svg {
  width: 58px;
  height: 58px;
  padding: 14px;
  border-radius: 50%;
  background: #31a44f;
  box-shadow: 0 8px 24px rgb(0 0 0 / 30%);
  transition: transform 0.2s;
}
.res-media:hover .res-media__play svg {
  transform: scale(1.08);
}
.res-media__title {
  padding: 20px 24px 0;
  color: #111827;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}
.res-media__date {
  padding: 4px 24px 0;
  color: #6b7280;
  font-size: 14px;
}
.res-media::after {
  content: "";
  padding-bottom: 20px;
}
.res-empty {
  color: #6b7280;
  font-style: italic;
}
.res-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.res-photo {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
}
.res-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.res-photo:hover img {
  transform: scale(1.06);
}
.res-lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(0 0 0 / 92%);
}
.res-lightbox[open] {
  display: grid;
  place-items: center;
}
.res-lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
}
.res-lightbox button {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgb(255 255 255 / 14%);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.res-lightbox__prev {
  left: 16px;
  top: 50%;
}
.res-lightbox__next {
  right: 16px;
  top: 50%;
}
.res-lightbox__close {
  right: 16px;
  top: 16px;
}
.res-player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}
.res-player iframe,
.res-player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.res-video {
  max-width: 1040px;
  margin-inline: auto;
}
@media (prefers-reduced-motion: reduce) {
  .res-media__img img,
  .res-photo img {
    transition: none;
  }
}

/* Mega menu: largeur du conteneur + icône Lucide */
.mega-res__panel {
  width: calc(100% - 32px);
  max-width: calc(1024px - 32px);
}
@media (min-width: 1280px) {
  .mega-res__panel {
    max-width: calc(1280px - 32px);
  }
}
@media (min-width: 1536px) {
  .mega-res__panel {
    max-width: calc(1536px - 32px);
  }
}
.mega-res__arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

/* Document sans aperçu : illustration à la place de l'icône. */
.res-doc__icon:has(.res-doc__illustration) {
  width: 56px;
  height: 68px;
  border: 0;
  background: transparent;
}
.res-doc__icon .res-doc__illustration {
  object-fit: contain;
}

/* Méga menu Ressources : rubrique vide = squelette gris + bouton désactivé. */
.mega-res__skel { display: block; background: #e5e7eb; border-radius: 6px; }
.mega-res__cover.mega-res__skel { border: 0; }
.mega-res__thumb.mega-res__skel { background: #e5e7eb; }
.mega-res__skel .mega-res__play { background: none; }
.mega-res__skel .mega-res__play svg { background: #9ca3af; color: #f3f4f6; }
.mega-res__skel-item { display: grid; gap: 6px; padding: 6px 0; }
.mega-res__skel-line { height: 12px; width: 85%; }
.mega-res__skel-line--short { height: 9px; width: 45%; }
.mega-res .is-empty .mega-res__title { color: #6b7280; }
.mega-res .btn:disabled { opacity: 1; border-color: #d1d5db; background: #d1d5db; color: #6b7280; box-shadow: none; }

/* Hero : fond animé en alternance, zoom avant (slides impairs) puis zoom arrière (slides pairs). */
.home-hero__slide.is-active .home-hero__image {
  animation: heroZoomIn 7.5s ease-out both;
}
.home-hero__slide:nth-child(even).is-active .home-hero__image {
  animation-name: heroZoomOut;
}
@keyframes heroZoomIn {
  from { transform: scale(1); }
  to { transform: scale(1.18); }
}
@keyframes heroZoomOut {
  from { transform: scale(1.18); }
  to { transform: scale(1); }
}
/* « Réduire les animations » (Windows/macOS) : zoom conservé mais très lent et léger, sans mouvement brusque. */
@media (prefers-reduced-motion: reduce) {
  .home-hero__slide.is-active .home-hero__image { animation: heroZoomIn 12s linear both !important; }
  .home-hero__slide:nth-child(even).is-active .home-hero__image { animation-name: heroZoomOut !important; }
}

/* Domaines d'intervention : motif répété au lieu du fond gris. */
.interventions-showcase {
  /* Voile blanc à 45 % par-dessus le motif pour adoucir le vert. */
  background: linear-gradient(rgb(255 255 255 / 45%), rgb(255 255 255 / 45%)), #fff url("../images/motif-japsso-04.png") center top / 420px repeat;
}
