/*
Theme Name: UDSP31
Theme URI: https://example.com/udsp31
Author: Codex
Author URI: https://openai.com
Description: Theme WordPress institutionnel pour l'Union Departementale des Sapeurs-Pompiers de Haute-Garonne.
Version: 0.1.0
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: udsp31
Tags: blog, custom-logo, custom-menu, featured-images, full-width-template, one-column, two-columns, translation-ready
*/

:root {
  --udsp-navy: #1f426d;
  --udsp-navy-deep: #17355a;
  --udsp-red: #ef233c;
  --udsp-red-deep: #d81d33;
  --udsp-surface: #ffffff;
  --udsp-surface-soft: #f5f7fb;
  --udsp-surface-blush: #fff3f4;
  --udsp-text: #17365c;
  --udsp-muted: #667892;
  --udsp-line: #dfe5ee;
  --udsp-shadow: 0 24px 64px rgba(23, 54, 92, 0.12);
  --udsp-radius-lg: 28px;
  --udsp-radius-md: 18px;
  --udsp-radius-sm: 12px;
  --udsp-container: 1180px;
  --udsp-font-body: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --udsp-font-display: "Avenir Next", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --udsp-mobile-nav-offset: 0px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--udsp-text);
  background: var(--udsp-surface-soft);
  font-family: var(--udsp-font-body);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

p,
blockquote,
figcaption {
  text-wrap: pretty;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

iframe,
video,
canvas,
svg {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

.screen-reader-text:focus {
  top: 0.5rem;
  left: 0.5rem;
  z-index: 99999;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto;
  background: #000;
  color: #fff;
}

.container {
  width: min(calc(100% - 2rem), var(--udsp-container));
  margin: 0 auto;
}

.container > *,
.header-shell__inner > *,
.topbar__inner > *,
.section-heading--split > *,
.engagement-grid > *,
.footer-grid > *,
.footer-bottom__inner > *,
.primary-menu > li,
.sub-menu > li,
.quick-link > span:last-child,
.info-card,
.stat-card,
.partner-card,
.news-card__content {
  min-width: 0;
}

.site-main {
  min-height: 55vh;
}

.site-main--page {
  background: var(--udsp-surface-soft);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

body.admin-bar .site-header {
  top: 32px;
}

.topbar {
  background: var(--udsp-navy);
  color: #fff;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 2.5rem;
}

.topbar__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

.topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.83rem;
  transition: opacity 180ms ease;
}

.topbar__link:hover {
  opacity: 0.85;
}

.topbar__title {
  margin: 0;
  font-size: 0.75rem;
  text-align: right;
  color: rgba(255, 255, 255, 0.86);
  text-wrap: balance;
}

.icon-wrap,
.button__icon,
.info-card__icon,
.quick-link__icon,
.value-list__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-wrap svg,
.button__icon svg,
.info-card__icon svg,
.quick-link__icon svg,
.value-list__icon svg {
  width: 1rem;
  height: 1rem;
}

.header-shell {
  position: relative;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(23, 54, 92, 0.08);
}

.header-shell__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 6.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

.brand__logo .custom-logo-link,
.brand__logo img,
.brand__logo--fallback {
  display: block;
}

.brand__logo img {
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.brand__badge {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
}

.brand__badge {
  display: grid;
  place-items: center;
  background: var(--udsp-red);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-family: var(--udsp-font-display);
}

.brand__identity {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__identity strong {
  font-family: var(--udsp-font-display);
  font-size: 1.15rem;
  font-weight: 800;
}

.brand__identity span {
  color: var(--udsp-muted);
  font-size: 0.76rem;
}

.brand--footer {
  align-items: flex-start;
}

.brand--logo-wide .brand__logo img {
  max-height: 3.25rem;
  max-width: 14rem;
}

.brand--logo-standard .brand__logo img {
  max-height: 4.1rem;
  max-width: 8.5rem;
}

.brand--logo-stacked .brand__logo img {
  max-height: 6.2rem;
  max-width: 6.8rem;
}

.brand--footer .brand__logo img {
  max-height: 5rem;
  max-width: 100%;
}

.brand--footer.brand--logo-stacked .brand__logo img {
  max-height: 7rem;
  max-width: 7.4rem;
}

.brand--footer.brand--logo-wide .brand__logo img {
  max-height: 4.5rem;
  max-width: 15rem;
}

.site-navigation {
  margin-left: auto;
  position: relative;
  z-index: 20;
}

.primary-menu,
.primary-menu ul,
.footer-links,
.footer-contact-list,
.legal-links,
.social-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.6rem;
  font-family: var(--udsp-font-display);
  font-size: 0.96rem;
  font-weight: 600;
}

.primary-menu li {
  position: relative;
}

.primary-menu a,
.primary-menu .menu-parent-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0;
  white-space: nowrap;
  transition: color 180ms ease;
}

.primary-menu .menu-parent-label {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.primary-menu a:hover,
.primary-menu .menu-parent-label:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-item > .menu-parent-label,
.primary-menu .current-menu-ancestor > a,
.primary-menu .current-menu-ancestor > .menu-parent-label,
.primary-menu .current_page_item > a {
  color: var(--udsp-red);
}

.primary-menu > li > a::after,
.primary-menu > li > .menu-parent-label::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.15rem;
  height: 2px;
  background: var(--udsp-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.primary-menu > li > a:hover::after,
.primary-menu > li > .menu-parent-label:hover::after,
.primary-menu > .current-menu-item > a::after,
.primary-menu > .current-menu-item > .menu-parent-label::after,
.primary-menu > .current_page_item > a::after,
.primary-menu > .current-menu-ancestor > a::after,
.primary-menu > .current-menu-ancestor > .menu-parent-label::after {
  transform: scaleX(1);
}

.primary-menu .menu-item-has-children > a::before,
.primary-menu .menu-item-has-children > .menu-parent-label::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-top: -0.12rem;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  order: 2;
}

.sub-menu {
  position: absolute;
  top: calc(100% + 0.8rem);
  left: -1rem;
  min-width: 21rem;
  width: max-content;
  max-width: min(26rem, calc(100vw - 2rem));
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--udsp-line);
  border-radius: var(--udsp-radius-md);
  box-shadow: var(--udsp-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.4rem);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.sub-menu a {
  display: block;
  width: 100%;
  padding: 0.7rem 0.75rem;
  border-radius: 0.8rem;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.sub-menu a:hover {
  background: var(--udsp-surface-soft);
}

.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  padding: 0.7rem;
  border: 1px solid var(--udsp-line);
  border-radius: 1rem;
  background: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  cursor: pointer;
}

.nav-toggle span:not(.screen-reader-text) {
  display: block;
  width: 1.45rem;
  height: 2px;
  margin: 0;
  border-radius: 999px;
  background: var(--udsp-navy-deep);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1):not(.screen-reader-text) {
  transform: translateY(0.56rem) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2):not(.screen-reader-text) {
  opacity: 0;
  transform: scaleX(0.3);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3):not(.screen-reader-text) {
  transform: translateY(-0.56rem) rotate(-45deg);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--udsp-font-display);
  font-size: 0.94rem;
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.header-cta,
.button--primary {
  background: var(--udsp-red);
  color: #fff;
}

.header-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.header-cta:hover,
.button--primary:hover {
  background: var(--udsp-red-deep);
}

.button--secondary {
  background: rgba(255, 255, 255, 0.96);
  color: var(--udsp-navy);
  border-color: rgba(255, 255, 255, 0.28);
}

.button--secondary:hover {
  border-color: rgba(255, 255, 255, 0.62);
  background: #fff;
}

.button--ghost {
  background: transparent;
  border-color: var(--udsp-line);
  color: var(--udsp-navy);
}

.button--ghost:hover {
  border-color: var(--udsp-red);
  color: var(--udsp-red);
}

.home-hero {
  position: relative;
  min-height: clamp(37rem, 74vh, 48rem);
  overflow: hidden;
  background: linear-gradient(180deg, #21456e 0%, #18355a 100%);
  color: #fff;
}

.home-hero__media,
.home-hero__overlay,
.home-hero__slide {
  position: absolute;
  inset: 0;
}

.home-hero__media {
  z-index: 0;
}

.home-hero__slide {
  background-repeat: no-repeat;
  background-position: 72% center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.02);
  transform-origin: center;
  will-change: opacity, transform;
  transition: opacity 1200ms ease;
}

.home-hero__slide.is-active {
  opacity: 1;
  animation: heroSlideDrift 6.5s ease-in-out both;
}

.home-hero__slide.is-leaving {
  opacity: 0;
  animation: none;
  transform: scale(1.055) translate3d(1.2%, -0.6%, 0);
}

.home-hero__overlay {
  background:
    linear-gradient(96deg, rgba(15, 31, 64, 0.86) 0%, rgba(18, 36, 71, 0.82) 18%, rgba(20, 40, 77, 0.72) 34%, rgba(22, 44, 82, 0.5) 52%, rgba(25, 48, 88, 0.22) 72%, rgba(25, 48, 88, 0.08) 100%),
    linear-gradient(180deg, rgba(12, 24, 47, 0.02) 0%, rgba(13, 27, 53, 0.06) 42%, rgba(14, 28, 56, 0.24) 70%, rgba(12, 24, 47, 0.54) 100%),
    radial-gradient(circle at 79% 18%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.06) 14%, rgba(255, 255, 255, 0) 29%);
  pointer-events: none;
}

.home-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: clamp(37rem, 74vh, 48rem);
  padding: 6.2rem 0 5.25rem;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 1.6rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--udsp-red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  text-wrap: balance;
}

.home-hero .section-kicker {
  max-width: min(100%, 38rem);
  min-height: 0;
  margin-bottom: 1.15rem;
  padding: 0.7rem 1.2rem 0.72rem;
  border-radius: 1.2rem;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-wrap: pretty;
}

.home-hero h1,
.page-hero h1 {
  max-width: 14ch;
  margin: 0;
  font-family: var(--udsp-font-display);
  font-size: clamp(2.85rem, 5.2vw, 4.15rem);
  line-height: 0.97;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.home-hero__text,
.page-hero p {
  max-width: 40rem;
  margin: 1.35rem 0 0;
  font-size: 1.08rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.home-hero__text {
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.85rem;
}

.home-hero__nav-wrap {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.home-hero__nav {
  appearance: none;
  position: absolute;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.2rem;
  height: 4.2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--udsp-red);
  cursor: pointer;
  pointer-events: auto;
  transform: translateY(-50%);
  transition: transform 180ms ease, color 180ms ease, opacity 180ms ease;
}

.home-hero__nav:hover,
.home-hero__nav:focus-visible {
  color: #ff5134;
}

.home-hero__nav--prev {
  left: 1rem;
}

.home-hero__nav--next {
  right: 1rem;
}

.home-hero__nav-icon {
  width: 1.4rem;
  height: 1.4rem;
  border-top: 5px solid currentColor;
  border-right: 5px solid currentColor;
}

.home-hero__nav--prev .home-hero__nav-icon {
  transform: rotate(-135deg);
}

.home-hero__nav--next .home-hero__nav-icon {
  transform: rotate(45deg);
}

.home-hero__dots {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.45rem;
}

@keyframes heroSlideDrift {
  0% {
    transform: scale(1.02) translate3d(0, 0, 0);
  }

  100% {
    transform: scale(1.055) translate3d(1.2%, -0.6%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__slide {
    transition: opacity 220ms ease;
    transform: none;
  }

  .home-hero__slide.is-active {
    animation: none;
    transform: none;
  }
}

.home-hero__dot {
  appearance: none;
  width: 0.9rem;
  height: 0.9rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, width 180ms ease;
}

.home-hero__dot:hover,
.home-hero__dot:focus-visible {
  transform: scale(1.06);
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.28);
}

.home-hero__dot.is-active {
  width: 2.1rem;
  border-color: rgba(255, 255, 255, 0.95);
  background: #fff;
}

.section {
  padding: 5.5rem 0;
}

.section--missions,
.section--news,
.section--engagement {
  background: #fff;
}

.section--stats {
  background: var(--udsp-surface-blush);
}

.section--quick-links,
.section--partners {
  background: var(--udsp-surface-soft);
}

.section-heading {
  margin-bottom: 2.7rem;
  text-align: center;
}

.section-heading h2,
.engagement-copy h2,
.site-footer h2,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin: 0;
  font-family: var(--udsp-font-display);
  color: var(--udsp-navy);
  letter-spacing: -0.03em;
}

.section-heading h2,
.engagement-copy h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.section-heading p {
  max-width: 42rem;
  margin: 0.75rem auto 0;
  color: var(--udsp-muted);
  text-wrap: pretty;
}

.section-heading--split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: left;
}

.section-heading--split p {
  margin-left: 0;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.info-card,
.quick-link,
.partner-card {
  border: 1px solid var(--udsp-line);
  border-radius: var(--udsp-radius-md);
  background: #fff;
}

.info-card {
  padding: 1.35rem;
  box-shadow: 0 12px 34px rgba(23, 54, 92, 0.05);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.info-card:hover,
.info-card:focus-within {
  border-color: var(--udsp-red);
  box-shadow: 0 18px 42px rgba(23, 54, 92, 0.1);
  transform: translateY(-2px);
}

.info-card__icon {
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1.2rem;
  border-radius: 0.9rem;
  background: rgba(239, 35, 60, 0.08);
  color: var(--udsp-red);
}

.info-card h3,
.news-card h2,
.news-card h3,
.value-list strong,
.stat-card__label {
  margin: 0;
  font-family: var(--udsp-font-display);
  color: var(--udsp-navy);
}

.info-card h3 {
  font-size: 1.1rem;
}

.info-card p {
  margin: 0.7rem 0 0;
  color: var(--udsp-muted);
}

.section--missions .info-card {
  display: grid;
  justify-items: center;
  align-content: start;
  padding: 1.6rem 1.35rem 1.5rem;
  text-align: center;
}

.section--missions .info-card__icon {
  width: 3.35rem;
  height: 3.35rem;
  margin: 0 auto 1.1rem;
  border-radius: 1.05rem;
  background: linear-gradient(180deg, rgba(239, 35, 60, 0.12), rgba(239, 35, 60, 0.06));
  box-shadow: 0 12px 28px rgba(239, 35, 60, 0.1);
}

.section--missions .info-card__icon svg {
  width: 1.28rem;
  height: 1.28rem;
}

.section--missions .info-card h3 {
  max-width: 15ch;
}

.section--missions .info-card p {
  max-width: 19ch;
  margin-top: 0.85rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  text-align: center;
}

.stat-card__value {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--udsp-red);
  font-family: var(--udsp-font-display);
  font-size: clamp(2.2rem, 4vw, 3.35rem);
  font-weight: 800;
  line-height: 1;
}

.stat-card__label {
  display: block;
  font-size: 1rem;
  text-wrap: balance;
}

.stat-card__label:empty {
  display: none;
}

.stat-card__text {
  display: block;
  color: var(--udsp-muted);
  font-size: 0.88rem;
  text-wrap: pretty;
}

.news-grid,
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.news-card {
  overflow: hidden;
  border: 1px solid var(--udsp-line);
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 18px 44px rgba(23, 54, 92, 0.08);
}

.news-card__image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.news-card:hover .news-card__image img {
  transform: scale(1.04);
}

.news-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--udsp-red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.news-card__content {
  padding: 1.2rem 1.2rem 1.35rem;
}

.news-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--udsp-muted);
  font-size: 0.82rem;
  text-wrap: pretty;
}

.news-card h2,
.news-card h3 {
  margin-top: 0.8rem;
  font-size: 1.28rem;
  line-height: 1.2;
}

.news-card p {
  margin: 0.7rem 0 0;
  color: var(--udsp-muted);
}

.news-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  color: var(--udsp-red);
  font-weight: 700;
}

.quick-links-grid {
  display: grid;
  gap: 1rem;
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 5.3rem;
  padding: 1rem 1.2rem;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.quick-link:hover {
  transform: translateY(-2px);
  border-color: rgba(239, 35, 60, 0.35);
  box-shadow: 0 16px 40px rgba(23, 54, 92, 0.08);
}

.quick-link__icon {
  width: 2.8rem;
  height: 2.8rem;
  flex-shrink: 0;
  border-radius: 0.9rem;
  background: rgba(239, 35, 60, 0.08);
  color: var(--udsp-navy);
}

.quick-link__label {
  font-weight: 700;
  text-wrap: pretty;
}

.quick-link__external {
  width: 1.15rem;
  height: 1.15rem;
  margin-left: auto;
  flex-shrink: 0;
  color: var(--udsp-red);
}

.engagement-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 2rem;
  align-items: center;
}

.engagement-copy > p {
  margin: 1rem 0 0;
  color: var(--udsp-muted);
}

.value-list {
  display: grid;
  gap: 1rem;
  margin: 1.8rem 0 2rem;
  padding: 0;
  list-style: none;
}

.value-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}

.value-list__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--udsp-red);
  color: #fff;
}

.value-list strong {
  display: block;
  margin-bottom: 0.2rem;
}

.value-list p {
  margin: 0;
  color: var(--udsp-muted);
}

.engagement-media img,
.featured-media img {
  width: 100%;
  border-radius: var(--udsp-radius-lg);
  box-shadow: var(--udsp-shadow);
  object-fit: cover;
}

.engagement-media img {
  min-height: 28rem;
}

.partner-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
  justify-content: center;
}

.partner-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 5.2rem;
  width: min(100%, 10.5rem);
  padding: 1rem;
  text-align: center;
  font-weight: 700;
  color: var(--udsp-navy);
  text-wrap: balance;
}

.site-footer {
  background: var(--udsp-navy);
  color: rgba(255, 255, 255, 0.84);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding: 3rem 0 2.5rem;
}

.footer-column h2 {
  margin-bottom: 1rem;
  color: #fff;
  font-size: 1.1rem;
}

.footer-column--brand .brand__logo,
.footer-column--brand .brand__logo--fallback {
  display: flex;
  justify-content: center;
  width: 100%;
}

.footer-about {
  max-width: 26rem;
  margin: 1rem 0 0;
  text-wrap: pretty;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.2rem;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-links a,
.footer-contact-list a,
.legal-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 180ms ease;
  text-wrap: pretty;
}

.footer-link__external {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
}

.footer-links a:hover,
.footer-contact-list a:hover,
.legal-links a:hover,
.social-links a:hover {
  color: #fff;
}

.footer-contact-list {
  display: grid;
  gap: 0.85rem;
}

.footer-contact-list li {
  display: grid;
  grid-template-columns: 2.9rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
}

.footer-contact-list .icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
}

.footer-contact-list .icon-wrap svg {
  width: 1.1rem;
  height: 1.1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.footer-bottom__inner p {
  margin: 0;
  font-size: 0.85rem;
}

.footer-bottom__inner p a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease, opacity 180ms ease;
}

.footer-bottom__inner p a:hover {
  color: #fff;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
  font-size: 0.85rem;
}

.page-hero {
  background:
    radial-gradient(circle at 75% 18%, rgba(255, 255, 255, 0.07), transparent 22%),
    linear-gradient(180deg, #21456e 0%, #18355a 100%);
  color: #fff;
}

.page-hero .container {
  padding: 4.5rem 0 4rem;
}

.page-content {
  display: grid;
  gap: 1.5rem;
}

.entry-content,
.empty-state {
  padding: 2rem;
  border: 1px solid var(--udsp-line);
  border-radius: var(--udsp-radius-lg);
  background: #fff;
  box-shadow: 0 20px 48px rgba(23, 54, 92, 0.06);
}

.entry-content > *:first-child,
.empty-state > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child,
.empty-state > *:last-child {
  margin-bottom: 0;
}

.entry-content p,
.entry-content li,
.empty-state p {
  color: #334e71;
}

.entry-content a {
  color: var(--udsp-red);
  text-decoration: underline;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.25rem;
}

.site-main--discover {
  background:
    radial-gradient(circle at top, rgba(33, 69, 110, 0.06), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #fff 22%, #f7f9fc 100%);
}

.discover-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.11), transparent 20%),
    linear-gradient(132deg, rgba(16, 33, 67, 0.96) 0%, rgba(24, 52, 95, 0.93) 38%, rgba(33, 69, 110, 0.9) 100%);
}

.discover-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 86% 20%, rgba(255, 255, 255, 0.14), transparent 24%);
  pointer-events: none;
}

.discover-hero .container {
  position: relative;
  z-index: 1;
  padding: 0;
}

.discover-hero__grid,
.discover-story,
.discover-impact,
.discover-closing {
  display: grid;
  gap: 1.5rem;
}

.discover-hero__grid {
  min-height: clamp(37rem, 74vh, 48rem);
  padding: 6.2rem 0 5.25rem;
  align-items: center;
}

.discover-hero__copy,
.discover-story__copy,
.discover-impact__copy,
.discover-closing__copy {
  display: grid;
  gap: 1rem;
}

.discover-story {
  gap: 2rem;
}

.discover-story__copy {
  gap: 1.3rem;
  align-content: start;
}

.discover-story__copy h2 {
  max-width: 12.5ch;
  margin: 0;
  font-size: clamp(2.15rem, 4vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-wrap: balance;
  position: relative;
  padding-bottom: 1rem;
}

.discover-story__copy h2::after {
  content: "";
  display: block;
  width: 4.75rem;
  height: 0.32rem;
  margin-top: 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--udsp-red) 0%, #ff6a7c 100%);
}

.discover-hero h1 {
  max-width: 14ch;
  margin: 0;
  color: #fff;
  text-wrap: balance;
}

.discover-hero__lede {
  max-width: 42rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.04rem;
  line-height: 1.68;
}

.discover-hero__actions,
.discover-closing__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.8rem;
}

.discover-hero__actions .button,
.discover-closing__actions .button {
  width: 100%;
}

.discover-hero__facts {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.45rem;
}

.discover-fact {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 42px rgba(10, 20, 45, 0.16);
  backdrop-filter: blur(12px);
}

.discover-fact__label {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.discover-fact__value {
  display: block;
  margin-top: 0.45rem;
  color: #fff;
  font-family: var(--udsp-font-display);
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.discover-hero__media {
  position: relative;
  display: grid;
  gap: 1rem;
}

.discover-media-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 26px 60px rgba(10, 20, 45, 0.24);
}

.discover-media-card img,
.discover-impact__visual img,
.discover-closing__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.discover-media-card--primary img {
  aspect-ratio: 4 / 5;
}

.discover-hero--devenir-pompier-volontaire .discover-media-card--primary img {
  object-position: 30% 42%;
}

.discover-media-card--secondary img,
.discover-media-card--tertiary img {
  aspect-ratio: 16 / 10;
}

.discover-section {
  position: relative;
}

.discover-story__copy p,
.discover-summary__card p,
.discover-commission-card p,
.discover-impact__copy p,
.discover-flow__card p,
.discover-closing__copy p {
  margin: 0;
  color: #334e71;
}

.discover-story__copy p {
  max-width: 42rem;
  font-size: 1.06rem;
  line-height: 1.78;
}

.discover-section-heading {
  margin-bottom: 2.1rem;
}

.discover-section-heading h2 {
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.discover-summary {
  display: grid;
  gap: 1rem;
  align-self: start;
}

.discover-summary--single {
  max-width: 52rem;
  margin: 0 auto;
}

.discover-summary--single .discover-summary__card h1 {
  margin: 0 0 1rem;
  font-family: var(--udsp-font-display);
  color: var(--udsp-navy);
  letter-spacing: -0.03em;
}

.discover-legal-card h2 {
  margin: 1.5rem 0 0.7rem;
  font-family: var(--udsp-font-display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--udsp-navy);
  letter-spacing: -0.02em;
}

.discover-summary__photo {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--udsp-line);
  border-radius: 1.6rem;
  background: #fff;
  box-shadow: 0 20px 48px rgba(23, 54, 92, 0.1);
}

.discover-summary__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.discover-summary__card,
.discover-commission-card,
.discover-flow__card,
.discover-gallery-card,
.discover-feature-list li {
  padding: 1.35rem;
  border: 1px solid var(--udsp-line);
  border-radius: 1.35rem;
  background: #fff;
  box-shadow: 0 20px 48px rgba(23, 54, 92, 0.08);
}

.discover-summary__card {
  padding: 1.55rem 1.5rem;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), #fff);
}

.discover-gallery-grid {
  display: grid;
  gap: 1rem;
}

.discover-gallery-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.discover-gallery-card__media {
  margin: 0;
  overflow: hidden;
  border-radius: 1.1rem;
  background: #f2f5fa;
}

.discover-gallery-card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.discover-gallery-card__content h3 {
  margin: 0;
  font-family: var(--udsp-font-display);
  color: var(--udsp-navy);
  letter-spacing: -0.03em;
}

.discover-gallery-card__content p {
  margin: 0.45rem 0 0;
  color: var(--udsp-muted);
}

.discover-summary__card h3,
.discover-commission-card h3,
.discover-flow__card h3 {
  margin: 0.9rem 0 0;
  font-family: var(--udsp-font-display);
  color: var(--udsp-navy);
  letter-spacing: -0.03em;
}

.discover-summary__meta,
.discover-feature-list {
  display: grid;
  gap: 0.85rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.discover-summary__meta li {
  display: grid;
  gap: 0.2rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(23, 54, 92, 0.08);
}

.discover-summary__meta li:first-child {
  padding-top: 0;
  border-top: 0;
}

.discover-summary__meta strong {
  font-family: var(--udsp-font-display);
  color: var(--udsp-navy);
}

.discover-summary__meta span {
  color: var(--udsp-muted);
}

.discover-commission-grid,
.discover-flow {
  display: grid;
  gap: 1rem;
}

.discover-commission-card {
  min-height: 100%;
}

.discover-commission-card .info-card__icon {
  display: inline-flex;
}

.discover-commission-card h3 {
  font-size: 1.18rem;
}

.discover-impact__visual {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 28px 62px rgba(23, 54, 92, 0.12);
}

.discover-impact__visual img {
  aspect-ratio: 5 / 6;
}

.discover-impact__badge {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  width: fit-content;
  max-width: calc(100% - 2rem);
  padding: 0.7rem 1rem 0.74rem;
  border-radius: 999px;
  background: rgba(16, 33, 67, 0.86);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  text-wrap: pretty;
}

.discover-impact__copy--full {
  max-width: 68rem;
  margin: 0 auto;
}

.discover-impact__copy--full > p {
  max-width: 58rem;
  margin-left: auto;
  margin-right: auto;
}

.discover-impact__copy--full .discover-feature-list {
  margin-top: 1.65rem;
}

.discover-impact__notes {
  max-width: 58rem;
  margin: 0 auto;
  padding: 1.2rem 1.35rem;
  border: 1px solid var(--udsp-line);
  border-radius: 1.2rem;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96), #fff);
  box-shadow: 0 16px 36px rgba(23, 54, 92, 0.06);
}

.discover-impact__notes p {
  margin: 0;
}

.discover-impact__notes p + p {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(23, 54, 92, 0.08);
}

#candidatures-jsp-2026 {
  background:
    linear-gradient(180deg, #f1f6fc 0%, #e6eef8 100%);
}

#candidatures-jsp-2026 .discover-impact__copy--full {
  display: grid;
  gap: 1rem;
  max-width: 62rem;
}

#candidatures-jsp-2026 .discover-impact__copy--full .discover-feature-list {
  margin-top: 0;
  grid-template-columns: 1fr;
}

#candidatures-jsp-2026 .discover-impact__notes {
  max-width: 100%;
}

#candidatures-jsp-2026 .discover-impact__notes p:last-child {
  font-weight: 700;
  color: var(--udsp-navy);
}

.discover-recruitment-links {
  display: grid;
  gap: 1rem;
  margin-top: 0.75rem;
  padding: 1.5rem 1.6rem 1.6rem;
  border: 1px solid var(--udsp-line);
  border-radius: 1.7rem;
  background: #fff;
  box-shadow: 0 20px 44px rgba(23, 54, 92, 0.08);
}

.discover-recruitment-links__header {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  text-align: center;
}

.discover-recruitment-links__header h3 {
  margin: 0;
  font-family: var(--udsp-font-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--udsp-navy);
  letter-spacing: -0.03em;
}

.discover-recruitment-links__header p {
  margin: 0;
  color: var(--udsp-muted);
}

#candidatures-jsp-2026 .discover-recruitment-links {
  width: 100%;
  max-width: none;
  margin: 0.8rem 0 0;
}

#candidatures-jsp-2026 .discover-recruitment-links__header p {
  font-weight: 600;
  color: var(--udsp-muted);
}

#candidatures-jsp-2026 .discover-links-list .button--secondary {
  border-color: var(--udsp-navy);
  background: var(--udsp-navy);
  color: #fff;
  box-shadow: 0 16px 32px rgba(23, 54, 92, 0.18);
}

#candidatures-jsp-2026 .discover-links-list {
  display: grid;
  gap: 0.9rem;
  max-width: 52rem;
  margin: 0 auto;
}

#candidatures-jsp-2026 .discover-links-list .button--secondary {
  justify-content: center;
  min-height: 3.35rem;
  padding-inline: 1.2rem;
}

#candidatures-jsp-2026 .discover-links-list .button--secondary:hover,
#candidatures-jsp-2026 .discover-links-list .button--secondary:focus-visible {
  border-color: var(--udsp-navy-deep);
  background: var(--udsp-navy-deep);
  color: #fff;
  transform: translateY(-2px);
}

@media (min-width: 720px) {
  #candidatures-jsp-2026 .discover-links-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #candidatures-jsp-2026 .discover-links-list > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 24rem);
  }

  .discover-recruitment-links {
    padding: 1.75rem 1.9rem 1.9rem;
  }
}

.discover-feature-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}

.discover-flow__card {
  display: grid;
  gap: 0.85rem;
}

.discover-flow__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--udsp-red);
  color: #fff;
  font-family: var(--udsp-font-display);
  font-size: 0.94rem;
  font-weight: 800;
}

.discover-logo-block {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--udsp-line);
  border-radius: 1.35rem;
  background: #fff;
  box-shadow: 0 20px 48px rgba(23, 54, 92, 0.08);
  text-align: center;
}

.discover-logo-block img {
  display: block;
  width: min(100%, 26rem);
  height: auto;
}

.discover-logo-block__copy {
  display: grid;
  gap: 0.45rem;
  max-width: 34rem;
}

.discover-logo-block__copy h2,
.discover-logo-block__copy p {
  margin: 0;
}

.discover-links-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.discover-closing__gallery {
  display: grid;
  gap: 1rem;
}

.discover-closing__gallery img {
  min-height: 14rem;
  border-radius: 1.35rem;
  box-shadow: 0 20px 48px rgba(23, 54, 92, 0.1);
}

@media (min-width: 720px) {
  .quick-links-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .discover-hero__actions,
  .discover-closing__actions {
    flex-direction: row;
    align-items: center;
  }

  .discover-hero__actions .button,
  .discover-closing__actions .button {
    width: auto;
  }

  .discover-hero__facts,
  .discover-commission-grid,
  .discover-flow,
  .discover-closing__gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .discover-story,
  .discover-impact,
  .discover-closing {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: start;
  }

  .discover-impact__copy--full .discover-feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .discover-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .discover-hero__grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
    gap: 3.5rem;
  }

  .discover-hero__media {
    min-height: 39rem;
    padding: 1rem 0 1.5rem 2rem;
  }

  .discover-media-card--primary {
    width: min(100%, 29rem);
    margin-left: auto;
  }

  .discover-media-card--secondary {
    position: absolute;
    left: 0;
    bottom: 6rem;
    width: min(44%, 16rem);
  }

  .discover-media-card--tertiary {
    position: absolute;
    right: -0.5rem;
    bottom: 0;
    width: min(48%, 18rem);
  }

  .discover-media-card--primary img {
    aspect-ratio: 5 / 6;
  }

  .discover-commission-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .discover-story {
    grid-template-columns: minmax(0, 1.08fr) minmax(24rem, 0.82fr);
    gap: 3.25rem;
  }

  .discover-summary__card,
  .discover-summary__photo {
    position: sticky;
    top: 7.5rem;
  }

  .discover-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quick-links-grid:has(> :nth-child(4):last-child),
  .discover-commission-grid:has(> :nth-child(4):last-child),
  .discover-flow:has(> :nth-child(4):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
  }

  .discover-closing__gallery {
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-rows: repeat(2, minmax(11rem, 1fr));
  }

  .discover-closing__gallery img:first-child {
    grid-row: 1 / span 2;
  }
}

.pagination-wrap {
  grid-column: 1 / -1;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.7rem;
  min-height: 2.7rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--udsp-line);
  border-radius: 999px;
  background: #fff;
}

.nav-links .current {
  border-color: var(--udsp-red);
  background: var(--udsp-red);
  color: #fff;
}

@media (max-width: 1100px) {
  .header-shell__inner {
    gap: 1rem;
    min-height: 6.15rem;
  }

  .primary-menu {
    gap: 1rem;
    font-size: 0.91rem;
  }

  .header-cta {
    padding-inline: 1.1rem;
    font-size: 0.89rem;
  }

  .brand--logo-wide .brand__logo img {
    max-height: 3.05rem;
    max-width: 12.25rem;
  }

  .brand--logo-standard .brand__logo img {
    max-height: 3.85rem;
    max-width: 7.8rem;
  }

  .brand--logo-stacked .brand__logo img {
    max-height: 5.5rem;
    max-width: 6rem;
  }

  .home-hero__inner {
    padding: 5.9rem 0 4.8rem;
  }

  .mission-grid,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-grid,
  .posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  body.has-open-menu {
    overflow: hidden;
  }

  .container {
    width: min(calc(100% - 1.5rem), var(--udsp-container));
  }

  .header-shell__inner {
    gap: 0.85rem;
    min-height: 5.55rem;
  }

  .brand {
    margin-right: auto;
  }

  .brand--logo-wide .brand__logo img {
    max-height: 2.9rem;
    max-width: 11.5rem;
  }

  .brand--logo-standard .brand__logo img {
    max-height: 3.55rem;
    max-width: 7rem;
  }

  .brand--logo-stacked .brand__logo img {
    max-height: 5.1rem;
    max-width: 5.7rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    flex-shrink: 0;
  }

  .header-cta {
    display: none;
  }

  .site-navigation {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0.75rem;
    right: 0.75rem;
    margin-left: 0;
    height: calc(100vh - var(--udsp-mobile-nav-offset) - max(0.75rem, env(safe-area-inset-bottom)));
    height: calc(100dvh - var(--udsp-mobile-nav-offset) - max(0.75rem, env(safe-area-inset-bottom)));
    max-height: calc(100vh - var(--udsp-mobile-nav-offset) - max(0.75rem, env(safe-area-inset-bottom)));
    max-height: calc(100dvh - var(--udsp-mobile-nav-offset) - max(0.75rem, env(safe-area-inset-bottom)));
    min-height: 0;
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    scrollbar-gutter: stable both-edges;
    border: 1px solid var(--udsp-line);
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: var(--udsp-shadow);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .site-navigation.is-open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0);
  }

  .primary-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }

  .primary-menu > li > a::after,
  .primary-menu > li > .menu-parent-label::after,
  .primary-menu .menu-item-has-children > a::before,
  .primary-menu .menu-item-has-children > .menu-parent-label::before {
    display: none;
  }

  .primary-menu li {
    width: 100%;
  }

  .primary-menu a,
  .primary-menu .menu-parent-label {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0.2rem;
    white-space: normal;
    line-height: 1.35;
  }

  .sub-menu {
    display: grid;
    gap: 0.35rem;
    position: static;
    min-width: 0;
    margin-top: 0.35rem;
    padding: 0.5rem 0 0.5rem 1rem;
    border: 0;
    border-left: 2px solid rgba(23, 54, 92, 0.12);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .sub-menu a {
    color: var(--udsp-muted);
    font-size: 0.94rem;
    padding: 0.65rem 0.55rem;
    border-radius: 0.75rem;
  }

  .home-hero__slide {
    background-position: 68% center;
  }

  .home-hero__slide.is-active {
    opacity: 1;
  }

  .home-hero__overlay {
    background:
      linear-gradient(180deg, rgba(13, 26, 52, 0.16) 0%, rgba(14, 29, 57, 0.28) 52%, rgba(12, 24, 47, 0.6) 100%),
      linear-gradient(96deg, rgba(15, 31, 64, 0.86) 0%, rgba(18, 36, 71, 0.78) 28%, rgba(22, 44, 82, 0.54) 58%, rgba(25, 48, 88, 0.2) 100%);
  }

  .home-hero__inner {
    min-height: clamp(31rem, 66vh, 38rem);
    padding: 5.2rem 0 4.3rem;
  }

  .discover-hero__grid {
    min-height: clamp(31rem, 66vh, 38rem);
    padding: 5.2rem 0 4.3rem;
  }

  .home-hero .section-kicker {
    max-width: min(100%, 31rem);
    margin-bottom: 1rem;
    font-size: 0.84rem;
    padding: 0.62rem 1rem 0.66rem;
  }

  .home-hero h1 {
    max-width: 13ch;
    font-size: clamp(2.35rem, 7vw, 3.35rem);
  }

  .home-hero__text {
    max-width: 34rem;
    margin-top: 1.15rem;
    font-size: 0.98rem;
  }

  .hero-actions .button {
    flex: 1 1 14rem;
    min-width: min(100%, 14rem);
  }

  .home-hero__nav {
    width: 3.5rem;
    height: 3.5rem;
  }

  .home-hero__nav--prev {
    left: 0.3rem;
  }

  .home-hero__nav--next {
    right: 0.3rem;
  }

  .section-heading--split {
    align-items: start;
    flex-direction: column;
  }

  .section-heading p {
    max-width: 34rem;
  }

  .quick-links-grid,
  .engagement-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom__inner {
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .topbar__inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 0.55rem 0;
  }

  .topbar__contacts {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    gap: 0.75rem 1rem;
  }

  .topbar__link {
    font-size: 0.78rem;
  }

  .topbar__title {
    text-align: left;
  }

  .container {
    width: min(calc(100% - 1.25rem), var(--udsp-container));
  }

  .header-shell__inner {
    min-height: 5.15rem;
  }

  .nav-toggle {
    width: 2.8rem;
    height: 2.8rem;
    padding: 0.65rem;
    border-radius: 0.9rem;
  }

  .site-navigation {
    left: 0.625rem;
    right: 0.625rem;
    padding: 0.85rem;
  }

  .home-hero__slide {
    background-position: 63% center;
  }

  .home-hero__slide.is-active {
    opacity: 1;
  }

  .brand--logo-standard .brand__logo img {
    max-height: 3.35rem;
  }

  .brand--logo-stacked .brand__logo img {
    max-height: 4.6rem;
    max-width: 5rem;
  }

  .hero-actions,
  .footer-bottom__inner,
  .legal-links {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions {
    align-self: stretch;
    width: 100%;
    max-width: 26rem;
    gap: 0.8rem;
  }

  .hero-actions .button,
  .button--ghost {
    width: 100%;
  }

  .hero-actions .button {
    flex: 0 0 auto;
    min-height: 3.25rem;
    padding: 0.95rem 1.15rem;
    border-radius: 1.45rem;
    justify-content: flex-start;
  }

  .hero-actions .button span:last-child {
    text-align: left;
  }

  .mission-grid,
  .stats-grid,
  .news-grid,
  .posts-grid,
  .quick-links-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .partner-card {
    width: 100%;
  }

  .section {
    padding: 4.2rem 0;
  }

  .home-hero__inner {
    min-height: 30rem;
    padding: 4.4rem 0 3.7rem;
  }

  .discover-hero__grid {
    min-height: 30rem;
    padding: 4.4rem 0 3.7rem;
  }

  .home-hero .section-kicker {
    min-height: 0;
    margin-bottom: 0.9rem;
    padding: 0.58rem 0.85rem 0.62rem;
    font-size: 0.78rem;
  }

  .home-hero__dots {
    margin-top: 1.2rem;
  }

  .home-hero__nav {
    display: none;
  }

  .home-hero h1,
  .page-hero h1 {
    max-width: 12.5ch;
    margin-top: 0;
    font-size: clamp(2rem, 12vw, 2.95rem);
    line-height: 1.04;
  }

  .home-hero__text,
  .page-hero p {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .section-heading h2,
  .engagement-copy h2 {
    font-size: clamp(1.8rem, 8vw, 2.45rem);
  }

  .info-card,
  .quick-link {
    padding: 1.2rem;
  }

  .quick-link {
    min-height: 0;
  }

  .news-card__content {
    padding: 1rem 1rem 1.15rem;
  }

  .partner-grid {
    gap: 0.75rem;
  }

  .partner-card {
    min-height: 4.6rem;
  }

  .footer-grid {
    gap: 1.5rem;
    padding: 2.5rem 0 2rem;
  }

  .footer-column--brand {
    display: grid;
    justify-items: center;
    text-align: center;
  }

  .brand--footer {
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .brand--footer .brand__logo img {
    margin-inline: auto;
  }

  .brand--footer .brand__identity {
    align-items: center;
  }

  .footer-column--brand .brand__logo,
  .footer-column--brand .brand__logo--fallback {
    justify-content: center;
  }

  .footer-about {
    margin-inline: auto;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-contact-list li {
    grid-template-columns: 2.75rem minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
  }

  .footer-contact-list .icon-wrap {
    width: 2.75rem;
    height: 2.75rem;
  }

  .entry-content,
  .empty-state {
    padding: 1.4rem;
  }

  .engagement-media img {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .topbar__link {
    flex: 0 1 auto;
    min-width: 0;
  }

  .topbar__link span:last-child {
    white-space: nowrap;
  }

  .home-hero .section-kicker {
    max-width: 100%;
  }

  .home-hero h1,
  .page-hero h1 {
    max-width: none;
  }

  .home-hero .section-kicker {
    max-width: min(100%, 24rem);
  }

  .section-heading {
    margin-bottom: 2.2rem;
  }

  .stat-card__value {
    font-size: clamp(2rem, 12vw, 2.75rem);
  }

  .news-card h2,
  .news-card h3 {
    font-size: 1.16rem;
  }

  .footer-contact-list li {
    grid-template-columns: 2.65rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
  }

  .footer-contact-list .icon-wrap {
    width: 2.65rem;
    height: 2.65rem;
  }
}
