/* ========================================================================== */
/* Mur de la mémoire — monument numérique, exploration et parcours privé      */
/* ========================================================================== */

.page-mur-de-la-memoire {
  --memory-base: #f2eee6;
  --memory-paper: #faf7f1;
  --memory-paper-deep: #e6ded1;
  --memory-ink: #171512;
  --memory-ink-soft: #27231e;
  --memory-muted: #6d655d;
  --memory-rule: #c9c0b2;
  --memory-accent: var(--accent-on-light, #76571f);
  --memory-accent-hover: var(--accent-on-light-hover, #5e4419);
  --memory-on-dark: #f8f3e9;
  overflow: clip;
  background: var(--memory-base);
  color: var(--memory-ink);
}

.page-mur-de-la-memoire :is(h1, h2, h3, p, li, dt, dd, label, legend) {
  color: inherit;
}

.page-mur-de-la-memoire :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--memory-accent);
  outline-offset: 4px;
}

.page-mur-de-la-memoire h2 {
  margin: 0;
  font-family: var(--font-editorial);
  font-size: 52px;
  font-weight: 500;
  line-height: 58px;
  letter-spacing: -1px;
}

.page-mur-de-la-memoire h3 {
  font-family: var(--font-editorial);
  font-size: 27px;
  font-weight: 500;
  line-height: 33px;
}

.page-mur-de-la-memoire p,
.page-mur-de-la-memoire li,
.page-mur-de-la-memoire dd {
  font-size: 17px;
  line-height: 29px;
}

.page-mur-de-la-memoire .button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid var(--memory-accent);
  border-radius: 0;
  background: var(--memory-accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  text-decoration: none;
  transition: border-color 220ms ease, background-color 220ms ease, color 220ms ease, transform 220ms ease;
}

.page-mur-de-la-memoire .button:hover {
  border-color: var(--memory-accent-hover);
  background: var(--memory-accent-hover);
  color: #ffffff;
}

.page-mur-de-la-memoire .button--outline {
  background: transparent;
  color: var(--memory-accent);
}

.memory-wall-eyebrow {
  margin: 0 0 18px;
  color: var(--memory-accent) !important;
  font-size: 12px !important;
  font-weight: 800;
  line-height: 18px !important;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.memory-wall-section-heading {
  margin-bottom: 64px;
}

.memory-wall-section-heading p:not(.memory-wall-eyebrow) {
  margin: 18px 0 0;
  color: var(--memory-muted);
}

/* Le hero hérite sans surcharge de hauteur du contrat de /reservation. */
.memory-wall-hero {
  background: var(--memory-ink);
}

.memory-wall-hero__picture {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.memory-wall-hero__media {
  object-position: center center;
  transform: scale(1.015);
  will-change: transform;
}

.memory-wall-hero__shade {
  background: linear-gradient(90deg, rgba(9, 8, 7, 0.9) 0%, rgba(9, 8, 7, 0.72) 44%, rgba(9, 8, 7, 0.2) 76%, rgba(9, 8, 7, 0.08) 100%), linear-gradient(0deg, rgba(9, 8, 7, 0.52) 0%, rgba(9, 8, 7, 0) 64%);
}

.memory-wall-hero__light {
  position: absolute;
  top: -140px;
  right: 4%;
  z-index: -1;
  width: 160px;
  height: 820px;
  background: rgba(224, 181, 103, 0.14);
  filter: blur(46px);
  transform: rotate(7deg);
  transform-origin: center;
  pointer-events: none;
}

.memory-wall-hero .reservation-hero__lead {
  max-width: 640px;
}

.memory-wall-hero .reservation-hero__actions {
  gap: 12px;
}

.memory-wall-hero .button {
  border-color: var(--accent-on-dark);
  background: var(--accent-on-dark);
  color: var(--memory-ink);
}

.memory-wall-hero .button:hover {
  border-color: var(--accent-on-dark-hover);
  background: var(--accent-on-dark-hover);
  color: var(--memory-ink);
}

.memory-wall-hero .button--outline {
  border-color: rgba(255, 255, 255, 0.66);
  background: rgba(9, 8, 7, 0.22);
  color: #ffffff;
}

.memory-wall-visual-note {
  position: absolute;
  right: 28px;
  bottom: 18px;
  z-index: 3;
  margin: 0;
  color: rgba(255, 255, 255, 0.74) !important;
  font-size: 11px !important;
  line-height: 16px !important;
}

/* Chapitre 1 : le travail documentaire précède toute présence publique. */
.memory-wall-formation {
  padding: 124px 0;
  background: var(--memory-base);
}

.memory-wall-formation .row {
  --bs-gutter-x: 72px;
}

.memory-wall-chapter-copy h2 {
  max-width: 510px;
}

.memory-wall-chapter-copy > p:not(.memory-wall-eyebrow) {
  max-width: 520px;
  margin: 28px 0 0;
  color: var(--memory-muted);
}

.memory-wall-formation__principle {
  padding-top: 26px;
  border-top: 1px solid var(--memory-rule);
  color: var(--memory-ink) !important;
}

.memory-wall-content-note {
  margin-top: 38px;
  padding: 24px 0 0 24px;
  border-top: 1px solid var(--memory-rule);
  border-left: 3px solid var(--memory-accent);
}

.memory-wall-content-note strong {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.memory-wall-content-note p {
  margin: 8px 0 0;
  color: var(--memory-muted);
  font-size: 14px;
  line-height: 23px;
}

.memory-wall-formation__figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--memory-ink);
}

.memory-wall-formation__figure img {
  display: block;
  width: 100%;
  min-height: 590px;
  object-fit: cover;
  transform: scale(1.03);
  will-change: transform;
}

.memory-wall-formation__figure figcaption {
  position: absolute;
  right: 18px;
  bottom: 16px;
  padding: 7px 10px;
  background: rgba(23, 21, 18, 0.78);
  color: var(--memory-on-dark);
  font-size: 11px;
  line-height: 16px;
}

/* Chapitre 2 : les notices prennent la forme de fragments minéraux. */
.memory-wall-living {
  padding: 124px 0 132px;
  background: var(--memory-ink);
  color: var(--memory-on-dark);
}

.memory-wall-living .memory-wall-eyebrow {
  color: var(--accent-on-dark) !important;
}

.memory-wall-living .memory-wall-section-heading p:not(.memory-wall-eyebrow) {
  color: rgba(248, 243, 233, 0.7);
}

.memory-wall-living__surface {
  position: relative;
}

.memory-wall-living__surface::before {
  position: absolute;
  inset: -22px -40px;
  border: 1px solid rgba(248, 243, 233, 0.08);
  content: "";
  pointer-events: none;
}

.memory-wall-fragments {
  --bs-gutter-x: 20px;
  --bs-gutter-y: 20px;
  align-items: stretch;
}

.memory-wall-fragment-wrap {
  display: flex;
}

.memory-wall-fragment {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 380px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(93, 84, 73, 0.42);
  background: #e8e0d4;
  color: var(--memory-ink);
  transition: border-color 300ms ease, transform 300ms ease;
}

.memory-wall-fragment:hover,
.memory-wall-fragment:focus-within {
  border-color: var(--memory-accent);
  transform: translateY(-5px);
}

.memory-wall-fragment--collective,
.memory-wall-fragment--event {
  background: #25221d;
  color: var(--memory-on-dark);
}

.memory-wall-fragment--place {
  background: #d7ccbc;
}

.memory-wall-fragment__texture {
  position: relative;
  display: flex;
  min-height: 142px;
  align-items: flex-end;
  gap: 7px;
  padding: 28px;
  border-bottom: 1px solid rgba(23, 21, 18, 0.16);
  background-image: linear-gradient(112deg, transparent 0%, rgba(118, 87, 31, 0.08) 42%, transparent 68%);
}

.memory-wall-fragment--collective .memory-wall-fragment__texture,
.memory-wall-fragment--event .memory-wall-fragment__texture {
  border-color: rgba(248, 243, 233, 0.12);
}

.memory-wall-fragment__texture i {
  display: block;
  width: 7px;
  height: 56px;
  background: currentColor;
  opacity: 0.16;
}

.memory-wall-fragment__texture i:nth-child(2) {
  height: 78px;
}

.memory-wall-fragment__texture i:nth-child(3) {
  height: 42px;
}

.memory-wall-fragment__media {
  position: relative;
  min-height: 188px;
  margin: 0;
  overflow: hidden;
}

.memory-wall-fragment__media img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.04);
  transition: transform 700ms ease;
}

.memory-wall-fragment:hover .memory-wall-fragment__media img {
  transform: scale(1.025);
}

.memory-wall-fragment__media figcaption {
  position: absolute;
  right: 10px;
  bottom: 8px;
  padding: 4px 7px;
  background: rgba(23, 21, 18, 0.8);
  color: #ffffff;
  font-size: 10px;
  line-height: 15px;
}

.memory-wall-fragment__body {
  display: flex;
  min-height: 240px;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 28px;
}

.memory-wall-fragment__meta {
  gap: 12px;
  color: var(--memory-accent);
  font-size: 11px;
  font-weight: 800;
  line-height: 17px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.memory-wall-fragment--collective .memory-wall-fragment__meta,
.memory-wall-fragment--event .memory-wall-fragment__meta {
  color: var(--accent-on-dark);
}

.memory-wall-fragment h3 {
  margin: 24px 0 0;
}

.memory-wall-fragment__body > p {
  margin: 15px 0 0;
  opacity: 0.76;
  font-size: 15px;
  line-height: 24px;
}

.memory-wall-fragment dl {
  margin: 22px 0 0;
}

.memory-wall-fragment dl div {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid currentColor;
  opacity: 0.64;
}

.memory-wall-fragment dt,
.memory-wall-fragment dd {
  margin: 0;
  font-size: 11px;
  line-height: 17px;
}

.memory-wall-fragment dt {
  min-width: 62px;
  text-transform: uppercase;
}

.memory-wall-fragment__actions {
  gap: 18px;
  margin-top: auto;
  padding-top: 24px;
}

.memory-wall-fragment__actions button,
.memory-wall-fragment__actions a {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 22px;
  text-decoration: none;
}

/* Chapitre 3 : recherche et filtres restent une même surface de lecture. */
.memory-wall-explorer {
  padding: 124px 0 132px;
  background: var(--memory-paper);
}

.memory-wall-search {
  margin-bottom: 32px;
}

.memory-wall-search__bar {
  min-height: 68px;
  border: 1px solid var(--memory-ink);
  background: #ffffff;
}

.memory-wall-search__bar > span {
  display: flex;
  width: 64px;
  align-items: center;
  justify-content: center;
  color: var(--memory-accent);
  font-size: 30px;
}

.memory-wall-search__bar input {
  min-width: 0;
  flex: 1 1 auto;
  padding: 0 18px 0 0;
  border: 0;
  background: transparent;
  color: var(--memory-ink);
  font-size: 17px;
}

.memory-wall-search__bar input:focus {
  outline: 0;
}

.memory-wall-search__bar .button {
  min-width: 150px;
  border: 0;
}

.memory-wall-search__filter-sheet {
  margin-top: 18px;
  border-top: 1px solid var(--memory-rule);
  border-bottom: 1px solid var(--memory-rule);
}

.memory-wall-search__filter-sheet summary {
  display: none;
  cursor: pointer;
}

.memory-wall-search__filters {
  padding: 26px 0 8px;
}

.memory-wall-search__filters .row {
  --bs-gutter-x: 14px;
  --bs-gutter-y: 18px;
}

.memory-wall-search__filters label {
  display: block;
  margin-bottom: 7px;
  color: var(--memory-muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 17px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.memory-wall-search__filters select {
  width: 100%;
  min-height: 46px;
  padding: 10px 34px 10px 12px;
  border: 1px solid var(--memory-rule);
  border-radius: 0;
  background-color: #ffffff;
  color: var(--memory-ink);
  font-size: 14px;
}

.memory-wall-search__filter-actions {
  gap: 24px;
  margin-top: 22px;
}

.memory-wall-search__filter-actions .memory-wall-filter-check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--memory-ink);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

.memory-wall-search__filter-actions a {
  color: var(--memory-accent);
  font-size: 13px;
  font-weight: 700;
}

.memory-wall-view-switch {
  gap: 0;
  margin: 36px 0 32px;
  border-bottom: 1px solid var(--memory-rule);
}

.memory-wall-view-switch :is(button, a) {
  min-width: 132px;
  padding: 15px 20px;
  border: 1px solid var(--memory-rule);
  border-bottom: 0;
  background: transparent;
  color: var(--memory-ink);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.memory-wall-view-switch button.is-active {
  border-color: var(--memory-ink);
  background: var(--memory-ink);
  color: var(--memory-on-dark);
}

.memory-wall-results-head {
  gap: 18px;
  margin-bottom: 28px;
}

.memory-wall-directory__status {
  margin: 0;
  font-family: var(--font-editorial);
  font-size: 24px !important;
  line-height: 31px !important;
}

.memory-wall-results-head > p:last-child {
  margin: 0;
  color: var(--memory-muted);
  font-size: 12px;
  line-height: 18px;
  text-transform: uppercase;
}

.memory-wall-explorer .memory-wall-fragment-wrap {
  margin-bottom: 20px;
}

.memory-wall-explorer__results[data-memory-wall-view-mode="list"] .memory-wall-fragment-wrap {
  width: 100%;
}

.memory-wall-explorer__results[data-memory-wall-view-mode="list"] .memory-wall-fragment {
  min-height: 0;
  flex-direction: row;
}

.memory-wall-explorer__results[data-memory-wall-view-mode="list"] .memory-wall-fragment__texture,
.memory-wall-explorer__results[data-memory-wall-view-mode="list"] .memory-wall-fragment__media {
  width: 220px;
  min-height: 100%;
  flex: 0 0 220px;
}

.memory-wall-explorer__results[data-memory-wall-view-mode="timeline"] .memory-wall-fragments {
  position: relative;
  padding-left: 48px;
}

.memory-wall-explorer__results[data-memory-wall-view-mode="timeline"] .memory-wall-fragments::before {
  position: absolute;
  top: 0;
  bottom: 20px;
  left: 20px;
  width: 1px;
  background: var(--memory-accent);
  content: "";
}

.memory-wall-explorer__results[data-memory-wall-view-mode="timeline"] .memory-wall-fragment-wrap {
  width: 100%;
}

.memory-wall-explorer__results[data-memory-wall-view-mode="timeline"] .memory-wall-fragment {
  min-height: 0;
}

.memory-wall-empty {
  min-height: 330px;
  padding: 72px 24px;
  border-top: 1px solid var(--memory-rule);
  border-bottom: 1px solid var(--memory-rule);
  text-align: center;
}

.memory-wall-living .memory-wall-empty {
  border-color: rgba(248, 243, 233, 0.2);
}

.memory-wall-empty > span {
  display: block;
  width: 48px;
  height: 70px;
  margin: 0 auto 28px;
  border-left: 1px solid var(--memory-accent);
  border-right: 1px solid var(--memory-accent);
  opacity: 0.72;
}

.memory-wall-empty h3 {
  margin: 0;
}

.memory-wall-empty p {
  max-width: 620px;
  margin: 18px auto 0;
  color: var(--memory-muted);
}

.memory-wall-living .memory-wall-empty p {
  color: rgba(248, 243, 233, 0.7);
}

.memory-wall-empty a {
  display: inline-block;
  margin-top: 22px;
  color: var(--memory-accent);
  font-weight: 700;
}

.memory-wall-pagination {
  margin-top: 42px;
}

/* Chapitre 4 : la carte réemploie le corpus territorial déjà validé. */
.memory-wall-territories {
  min-height: 720px;
  background: var(--memory-paper-deep);
}

.memory-wall-territories > .container-fluid > .row {
  min-height: 720px;
}

.memory-wall-territories__intro {
  position: relative;
  z-index: 2;
  padding: 92px 48px 64px max(48px, calc((100vw - 1320px) / 2));
  background: var(--memory-ink);
  color: var(--memory-on-dark);
}

.memory-wall-territories__intro .memory-wall-eyebrow {
  color: var(--accent-on-dark) !important;
}

.memory-wall-territories__intro h2 {
  font-size: 42px;
  line-height: 48px;
}

.memory-wall-territories__intro > p:not(.memory-wall-eyebrow) {
  margin: 24px 0 0;
  color: rgba(248, 243, 233, 0.7);
  font-size: 15px;
  line-height: 25px;
}

.memory-wall-territories__stops {
  margin: 46px 0 0;
  padding: 0;
  list-style: none;
}

.memory-wall-territories__stops li {
  border-top: 1px solid rgba(248, 243, 233, 0.16);
}

.memory-wall-territories__stops button {
  display: flex;
  width: 100%;
  gap: 14px;
  padding: 15px 0;
  border: 0;
  background: transparent;
  color: var(--memory-on-dark);
  font-size: 13px;
  text-align: left;
}

.memory-wall-territories__stops button span {
  color: var(--accent-on-dark);
}

.memory-wall-territories__stops .is-active button {
  padding-left: 12px;
  color: var(--accent-on-dark);
}

.memory-wall-territories__map {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #e6ded1;
}

.memory-wall-territories__map svg,
.memory-wall-territories__map > img {
  display: block;
  width: 100%;
  height: 720px;
  padding: 54px;
  object-fit: contain;
  transition: transform 800ms ease;
}

.memory-wall-territories__map.is-focused svg,
.memory-wall-territories__map[data-context-map-state="ready"].is-focused svg {
  transform: scale(1.08);
}

.memory-wall-map-markers circle {
  fill: var(--memory-accent);
  stroke: #ffffff;
  stroke-width: 4px;
  cursor: pointer;
  transition: r 220ms ease, fill 220ms ease;
}

.memory-wall-map-markers circle:hover,
.memory-wall-map-markers circle:focus,
.memory-wall-map-markers circle.is-active {
  r: 20px;
  fill: var(--memory-ink);
}

.memory-wall-territories__detail {
  position: relative;
  padding: 92px max(48px, calc((100vw - 1320px) / 2)) 64px 48px;
  background: var(--memory-ink-soft);
  color: var(--memory-on-dark);
}

.memory-wall-territories__close {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(248, 243, 233, 0.36);
  background: transparent;
  color: var(--memory-on-dark);
  font-size: 28px;
  line-height: 40px;
}

.memory-wall-territories__location {
  margin: 0;
  color: var(--accent-on-dark) !important;
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.memory-wall-territories__detail h3 {
  margin: 18px 0 0;
  font-size: 32px;
  line-height: 39px;
}

.memory-wall-territories__detail > p:not(.memory-wall-territories__location) {
  margin: 24px 0 0;
  color: rgba(248, 243, 233, 0.72);
  font-size: 15px;
  line-height: 25px;
}

.memory-wall-territories__detail dl {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 30px 0 0;
  padding: 22px 0;
  border-top: 1px solid rgba(248, 243, 233, 0.16);
  border-bottom: 1px solid rgba(248, 243, 233, 0.16);
}

.memory-wall-territories__detail dt,
.memory-wall-territories__detail dd {
  margin: 0;
  font-size: 11px;
  line-height: 18px;
}

.memory-wall-territories__detail dt {
  color: rgba(248, 243, 233, 0.56);
  text-transform: uppercase;
}

.memory-wall-territories__source {
  margin-top: 30px;
}

.memory-wall-territories__source p {
  margin: 0;
  font-size: 13px;
  line-height: 21px;
}

.memory-wall-territories__source a {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent-on-dark);
  font-size: 13px;
}

.memory-wall-territories__detail .button {
  margin-top: 34px;
  border-color: var(--accent-on-dark);
  color: var(--accent-on-dark);
}

/* Chapitre 5 : trois verbes, une seule continuité documentaire. */
.memory-wall-documented {
  padding: 124px 0;
  background: var(--memory-base);
}

.memory-wall-documented .row {
  --bs-gutter-x: 0;
}

.memory-wall-documented__copy {
  padding: 72px 72px 72px 0;
}

.memory-wall-documented__steps {
  gap: 0;
  margin: 64px 0 0;
  padding: 0;
  list-style: none;
}

.memory-wall-documented__steps li {
  position: relative;
  flex: 1 1 0;
  padding: 28px 30px 0 0;
  border-top: 1px solid var(--memory-ink);
}

.memory-wall-documented__steps li + li {
  padding-left: 28px;
}

.memory-wall-documented__steps span {
  color: var(--memory-accent);
  font-size: 12px;
  font-weight: 800;
}

.memory-wall-documented__steps h3 {
  margin: 18px 0 0;
}

.memory-wall-documented__steps p {
  margin: 14px 0 0;
  color: var(--memory-muted);
  font-size: 14px;
  line-height: 23px;
}

.memory-wall-documented__visual {
  position: relative;
  min-height: 560px;
  padding: 0;
  overflow: hidden;
  background: var(--memory-ink);
}

.memory-wall-documented__visual picture,
.memory-wall-documented__visual img {
  display: block;
  width: 100%;
  height: 100%;
}

.memory-wall-documented__visual img {
  min-height: 560px;
  object-fit: cover;
}

.memory-wall-documented__visual > p {
  position: absolute;
  right: 16px;
  bottom: 14px;
  margin: 0;
  padding: 6px 9px;
  background: rgba(23, 21, 18, 0.78);
  color: var(--memory-on-dark);
  font-size: 11px;
  line-height: 16px;
}

/* Chapitre 6 : la contribution conclut le parcours sans exposer le formulaire. */
.memory-wall-contribute {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: var(--memory-ink);
  color: var(--memory-on-dark);
  isolation: isolate;
}

.memory-wall-contribute__picture,
.memory-wall-contribute__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.memory-wall-contribute__picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.memory-wall-contribute__shade {
  z-index: -1;
  background: linear-gradient(90deg, rgba(9, 8, 7, 0.88) 0%, rgba(9, 8, 7, 0.7) 48%, rgba(9, 8, 7, 0.2) 82%), linear-gradient(0deg, rgba(9, 8, 7, 0.72) 0%, rgba(9, 8, 7, 0) 70%);
}

.memory-wall-contribute__content {
  padding-top: 132px;
  padding-bottom: 56px;
}

.memory-wall-contribute .memory-wall-eyebrow {
  color: var(--accent-on-dark) !important;
}

.memory-wall-contribute h2 {
  max-width: 820px;
  font-size: 58px;
  line-height: 64px;
}

.memory-wall-contribute__content > .row p:not(.memory-wall-eyebrow) {
  max-width: 680px;
  margin: 26px 0 0;
  color: rgba(248, 243, 233, 0.78);
}

.memory-wall-contribute__actions {
  gap: 12px;
  margin-top: 34px;
}

.memory-wall-contribute .button {
  border-color: var(--accent-on-dark);
  background: var(--accent-on-dark);
  color: var(--memory-ink);
}

.memory-wall-contribute .button--outline {
  background: rgba(9, 8, 7, 0.25);
  color: var(--memory-on-dark);
}

.memory-wall-contribute__links {
  gap: 0;
  margin-top: 112px;
  border-top: 1px solid rgba(248, 243, 233, 0.24);
}

.memory-wall-contribute__links a {
  min-width: 180px;
  flex: 1 1 auto;
  padding: 20px 16px;
  border-right: 1px solid rgba(248, 243, 233, 0.2);
  color: var(--memory-on-dark);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

/* La notice réutilise la modale Bootstrap publique, sans largeur parallèle. */
.memory-wall-sheet .modal-content {
  border: 1px solid rgba(248, 243, 233, 0.18);
  background: var(--memory-ink) !important;
  color: var(--memory-on-dark) !important;
}

.memory-wall-sheet__header {
  min-height: 76px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(248, 243, 233, 0.16);
}

.memory-wall-sheet__header p {
  margin: 0;
  color: var(--accent-on-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.memory-wall-sheet .modal-body {
  padding: 42px 42px 64px;
}

.memory-wall-sheet__eyebrow {
  margin: 0;
  color: var(--accent-on-dark) !important;
  font-size: 11px !important;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.memory-wall-sheet__article h2 {
  margin-top: 18px;
  color: var(--memory-on-dark);
  font-size: 46px;
  line-height: 52px;
}

.memory-wall-sheet__summary {
  margin: 24px 0 0;
  color: rgba(248, 243, 233, 0.76) !important;
}

.memory-wall-sheet__article figure {
  margin: 32px 0 0;
}

.memory-wall-sheet__article figure img {
  width: 100%;
  height: auto;
}

.memory-wall-sheet__article figcaption {
  margin-top: 8px;
  color: rgba(248, 243, 233, 0.58);
  font-size: 11px;
}

.memory-wall-sheet__facts {
  margin: 34px 0 0;
  border-top: 1px solid rgba(248, 243, 233, 0.18);
}

.memory-wall-sheet__facts div {
  padding: 14px 0;
  border-bottom: 1px solid rgba(248, 243, 233, 0.18);
}

.memory-wall-sheet__facts dt,
.memory-wall-sheet__facts dd {
  margin: 0;
  font-size: 12px;
  line-height: 20px;
}

.memory-wall-sheet__facts dt {
  color: rgba(248, 243, 233, 0.56);
  text-transform: uppercase;
}

.memory-wall-sheet__sources {
  margin-top: 38px;
}

.memory-wall-sheet__sources h3 {
  font-size: 24px;
  line-height: 31px;
}

.memory-wall-sheet__sources ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.memory-wall-sheet__sources li {
  padding: 15px 0;
  border-top: 1px solid rgba(248, 243, 233, 0.16);
  font-size: 13px;
  line-height: 21px;
}

.memory-wall-sheet__sources li span {
  display: block;
  color: rgba(248, 243, 233, 0.58);
}

.memory-wall-sheet__note {
  margin: 32px 0 0;
  padding-left: 18px;
  border-left: 2px solid var(--accent-on-dark);
  color: rgba(248, 243, 233, 0.7) !important;
  font-size: 13px !important;
  line-height: 22px !important;
}

.memory-wall-sheet__article .button {
  margin-top: 32px;
  border-color: var(--accent-on-dark);
  background: var(--accent-on-dark);
  color: var(--memory-ink);
}

/* Parcours privé : la progression reste lisible avant l'enrichissement JS. */
.memory-wall-form-hero {
  padding: 132px 0 82px;
  background: var(--memory-ink);
  color: var(--memory-on-dark);
}

.memory-wall-form-hero__back {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 54px;
  color: var(--memory-on-dark);
  font-size: 13px;
  text-decoration: none;
}

.memory-wall-form-hero .memory-wall-eyebrow {
  color: var(--accent-on-dark) !important;
}

.memory-wall-form-hero h1 {
  margin: 0;
  font-family: var(--font-editorial);
  font-size: 68px;
  font-weight: 500;
  line-height: 74px;
}

.memory-wall-form-hero p:last-child {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(248, 243, 233, 0.76);
}

.memory-wall-private-form {
  padding: 104px 0 124px;
  background: var(--memory-paper);
}

.memory-wall-private-form .row {
  --bs-gutter-x: 64px;
}

.memory-wall-private-form__guide {
  padding-right: 42px;
}

.memory-wall-private-form__guide h2 {
  font-size: 34px;
  line-height: 41px;
}

.memory-wall-private-form__guide ul {
  margin: 34px 0 0;
  padding: 0;
  border-top: 1px solid var(--memory-rule);
  list-style: none;
}

.memory-wall-private-form__guide li {
  padding: 16px 0;
  border-bottom: 1px solid var(--memory-rule);
  color: var(--memory-muted);
  font-size: 14px;
  line-height: 23px;
}

.memory-wall-private-form__guide > p:last-child {
  margin-top: 26px;
  color: var(--memory-muted);
  font-size: 13px;
  line-height: 22px;
}

.memory-wall-form {
  position: relative;
}

.memory-wall-form__required,
.memory-wall-form-step__intro {
  color: var(--memory-muted) !important;
  font-size: 13px !important;
  line-height: 22px !important;
}

.memory-wall-form-progress {
  position: relative;
  margin-bottom: 56px;
}

.memory-wall-form-progress ol {
  position: relative;
  z-index: 2;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  list-style: none;
}

.memory-wall-form-progress li {
  display: flex;
  width: 20%;
  flex-direction: column;
  gap: 9px;
  color: var(--memory-muted);
  font-size: 11px;
  line-height: 17px;
}

.memory-wall-form-progress li span {
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--memory-rule);
  border-radius: 50%;
  background: var(--memory-paper);
}

.memory-wall-form-progress li.is-current,
.memory-wall-form-progress li.is-complete {
  color: var(--memory-ink);
}

.memory-wall-form-progress li.is-current span,
.memory-wall-form-progress li.is-complete span {
  border-color: var(--memory-accent);
  background: var(--memory-accent);
  color: #ffffff;
}

.memory-wall-form-progress__line {
  position: absolute;
  top: 16px;
  right: 12.5%;
  left: 16px;
  z-index: 1;
  height: 1px;
  background: var(--memory-rule);
}

.memory-wall-form-progress__line i {
  display: block;
  width: 0;
  height: 1px;
  background: var(--memory-accent);
  transition: width 320ms ease;
}

.memory-wall-form fieldset {
  margin: 0 0 42px;
  padding: 0;
  border: 0;
}

.memory-wall-form > fieldset > legend {
  float: none;
  width: 100%;
  margin: 0 0 16px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--memory-ink);
  font-family: var(--font-editorial);
  font-size: 32px;
  font-weight: 500;
  line-height: 39px;
}

.memory-wall-form[data-memory-wall-form-enhanced="true"] [data-memory-wall-form-step][hidden] {
  display: none;
}

.memory-wall-choice-list {
  --bs-gutter-x: 12px;
  --bs-gutter-y: 12px;
  margin-top: 26px;
}

.memory-wall-choice-list label {
  position: relative;
  display: flex;
  min-height: 60px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--memory-rule);
  background: #ffffff;
  cursor: pointer;
}

.memory-wall-choice-list label:has(input:checked) {
  border-color: var(--memory-accent);
  box-shadow: inset 3px 0 0 var(--memory-accent);
}

.memory-wall-choice-list input {
  width: 18px;
  height: 18px;
  accent-color: var(--memory-accent);
}

.memory-wall-field {
  margin-bottom: 22px;
}

.memory-wall-field label,
.memory-wall-nested-fieldset legend {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 21px;
}

.memory-wall-field :is(input, select, textarea) {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--memory-rule);
  border-radius: 0;
  background: #ffffff;
  color: var(--memory-ink);
}

.memory-wall-field textarea {
  min-height: 130px;
  resize: vertical;
}

.memory-wall-field p {
  margin: 7px 0 0;
  color: var(--memory-muted);
  font-size: 12px;
  line-height: 19px;
}

.memory-wall-nested-fieldset {
  margin-top: 22px !important;
  padding: 24px !important;
  border: 1px solid var(--memory-rule) !important;
}

.memory-wall-nested-fieldset legend {
  float: none;
  width: auto;
  padding: 0 6px;
}

.memory-wall-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 14px;
  padding: 18px;
  border: 1px solid var(--memory-rule);
  background: #ffffff;
  font-size: 13px;
  line-height: 21px;
}

.memory-wall-consent input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--memory-accent);
}

.memory-wall-form-navigation {
  gap: 12px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--memory-rule);
}

.memory-wall-form-draft-status {
  min-height: 22px;
  margin-top: 18px;
  color: var(--memory-muted);
  font-size: 12px;
  line-height: 20px;
}

.memory-wall-file-preview {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.memory-wall-file-preview li {
  display: flex;
  min-height: 66px;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--memory-rule);
  color: var(--memory-muted);
  font-size: 13px;
  line-height: 20px;
}

.memory-wall-file-preview img {
  width: 72px;
  height: 54px;
  flex: 0 0 72px;
  object-fit: cover;
}

.memory-wall-upload-progress {
  margin-top: 22px;
}

.memory-wall-upload-progress progress {
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 0;
  accent-color: var(--memory-accent);
}

.memory-wall-upload-progress p {
  margin: 7px 0 0;
  color: var(--memory-muted);
  font-size: 12px;
  line-height: 20px;
}

.memory-wall-form-feedback {
  margin: 0 0 28px;
  padding: 22px;
  border: 1px solid var(--memory-rule);
  background: var(--memory-base);
}

.memory-wall-form-feedback.is-success {
  border-left: 4px solid var(--memory-accent);
}

.memory-wall-form-feedback.is-error {
  border-left: 4px solid #8c283a;
}

.memory-wall-form-feedback h2 {
  font-size: 25px;
  line-height: 32px;
}

.memory-wall-form-feedback p,
.memory-wall-form-feedback li {
  font-size: 14px;
  line-height: 23px;
}

.memory-wall-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* L'enrichissement visuel n'est appliqué qu'après l'initialisation du module. */
.page-mur-de-la-memoire[data-memory-wall-enhanced="true"] [data-memory-wall-reveal] {
  opacity: 0;
  transform: translateY(28px);
}

.page-mur-de-la-memoire[data-memory-wall-enhanced="true"] [data-memory-wall-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 760ms ease, transform 760ms ease;
}

@media (max-width: 1199.98px) {
  .memory-wall-territories__intro {
    padding-right: 32px;
    padding-left: 32px;
  }

  .memory-wall-territories__detail {
    padding-right: 32px;
    padding-left: 32px;
  }

  .memory-wall-documented__copy {
    padding-right: 48px;
  }
}

@media (max-width: 991.98px) {
  .page-mur-de-la-memoire h2 {
    font-size: 44px;
    line-height: 50px;
  }

  .memory-wall-formation,
  .memory-wall-living,
  .memory-wall-explorer,
  .memory-wall-documented {
    padding-top: 88px;
    padding-bottom: 96px;
  }

  .memory-wall-formation .row,
  .memory-wall-private-form .row {
    --bs-gutter-x: 24px;
  }

  .memory-wall-formation__figure {
    margin-top: 48px;
  }

  .memory-wall-formation__figure img {
    min-height: 430px;
  }

  .memory-wall-living__surface::before {
    right: -12px;
    left: -12px;
  }

  .memory-wall-territories,
  .memory-wall-territories > .container-fluid > .row,
  .memory-wall-territories__map {
    min-height: 0;
  }

  .memory-wall-territories__intro,
  .memory-wall-territories__detail {
    padding: 72px 36px;
  }

  .memory-wall-territories__map svg,
  .memory-wall-territories__map > img {
    height: 580px;
    padding: 34px;
  }

  .memory-wall-territories__detail[hidden] {
    display: none;
  }

  .memory-wall-territories__detail.is-open {
    display: block;
  }

  .memory-wall-documented__copy {
    padding: 0 0 56px;
  }

  .memory-wall-documented__visual,
  .memory-wall-documented__visual img {
    min-height: 440px;
  }

  .memory-wall-contribute h2 {
    font-size: 50px;
    line-height: 56px;
  }

  .memory-wall-private-form__guide {
    margin-bottom: 56px;
    padding-right: 0;
  }
}

@media (max-width: 767.98px) {
  .memory-wall-hero .reservation-hero__content {
    padding-top: 128px;
    padding-bottom: 68px;
  }

  .memory-wall-hero__media {
    object-position: 66% center;
  }

  .memory-wall-visual-note {
    right: 16px;
    bottom: 10px;
    left: 16px;
    text-align: right;
  }

  .memory-wall-section-heading {
    margin-bottom: 46px;
  }

  .memory-wall-search__bar {
    min-height: 60px;
    flex-wrap: wrap;
  }

  .memory-wall-search__bar > span {
    width: 52px;
  }

  .memory-wall-search__bar input {
    width: calc(100% - 52px);
    min-height: 58px;
  }

  .memory-wall-search__bar .button {
    width: 100%;
  }

  .memory-wall-search__filter-sheet {
    border: 0;
  }

  .memory-wall-search__filter-sheet summary {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 1px solid var(--memory-rule);
    background: var(--memory-paper);
    color: var(--memory-ink);
    font-size: 14px;
    font-weight: 700;
    list-style: none;
  }

  .memory-wall-search__filter-sheet[open] .memory-wall-search__filters {
    padding: 18px;
    border: 1px solid var(--memory-rule);
    border-top: 0;
    background: #ffffff;
  }

  .memory-wall-view-switch {
    flex-wrap: nowrap !important;
    overflow-x: auto;
  }

  .memory-wall-view-switch :is(button, a) {
    min-width: 112px;
    padding: 13px 16px;
  }

  .memory-wall-explorer__results[data-memory-wall-view-mode="list"] .memory-wall-fragment {
    flex-direction: column;
  }

  .memory-wall-explorer__results[data-memory-wall-view-mode="list"] .memory-wall-fragment__texture,
  .memory-wall-explorer__results[data-memory-wall-view-mode="list"] .memory-wall-fragment__media {
    width: 100%;
    min-height: 142px;
    flex-basis: auto;
  }

  .memory-wall-territories__intro h2 {
    font-size: 38px;
    line-height: 44px;
  }

  .memory-wall-territories__map svg,
  .memory-wall-territories__map > img {
    height: 460px;
    padding: 20px;
  }

  .memory-wall-documented__steps {
    gap: 30px;
    margin-top: 42px;
  }

  .memory-wall-documented__steps li,
  .memory-wall-documented__steps li + li {
    padding: 22px 0 0;
  }

  .memory-wall-contribute {
    min-height: 760px;
  }

  .memory-wall-contribute__content {
    padding-top: 104px;
  }

  .memory-wall-contribute h2 {
    font-size: 42px;
    line-height: 48px;
  }

  .memory-wall-contribute__links {
    margin-top: 72px;
  }

  .memory-wall-contribute__links a {
    min-width: 50%;
    border-bottom: 1px solid rgba(248, 243, 233, 0.2);
  }

  .memory-wall-sheet .modal-body {
    padding: 34px 22px 54px;
  }

  .memory-wall-sheet__article h2 {
    font-size: 38px;
    line-height: 44px;
  }

  .memory-wall-form-hero {
    padding: 112px 0 64px;
  }

  .memory-wall-form-hero h1 {
    font-size: 48px;
    line-height: 54px;
  }

  .memory-wall-private-form {
    padding: 72px 0 88px;
  }

  .memory-wall-form-progress li strong {
    font-size: 10px;
    line-height: 14px;
  }

  .memory-wall-form > fieldset > legend {
    font-size: 28px;
    line-height: 35px;
  }
}

@media (max-width: 575.98px) {
  .page-mur-de-la-memoire h2 {
    font-size: 38px;
    line-height: 44px;
  }

  .memory-wall-formation,
  .memory-wall-living,
  .memory-wall-explorer,
  .memory-wall-documented {
    padding-top: 72px;
    padding-bottom: 78px;
  }

  .memory-wall-fragment__body {
    padding: 22px;
  }

  .memory-wall-territories__intro,
  .memory-wall-territories__detail {
    padding: 62px 22px;
  }

  .memory-wall-territories__map svg,
  .memory-wall-territories__map > img {
    height: 380px;
    padding: 12px;
  }

  .memory-wall-contribute h2 {
    font-size: 37px;
    line-height: 43px;
  }

  .memory-wall-contribute__links a {
    min-width: 100%;
  }

  .memory-wall-form-progress li strong {
    display: none;
  }

  .memory-wall-form-progress__line {
    right: 16px;
  }

  .memory-wall-form-navigation {
    flex-direction: column-reverse;
  }

  .memory-wall-form-navigation .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-mur-de-la-memoire *,
  .page-mur-de-la-memoire *::before,
  .page-mur-de-la-memoire *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .page-mur-de-la-memoire[data-memory-wall-enhanced="true"] [data-memory-wall-reveal] {
    opacity: 1;
    transform: none;
  }

  .memory-wall-hero__media,
  .memory-wall-formation__figure img,
  .memory-wall-contribute__picture img {
    transform: none !important;
  }
}
