/* Page d'annonce du site officiel de la Commune de Moanda.
   Charte du PDF : noir #111111, rouge #D82216, gris #E7E7E7 et #3A3A3A, blanc. Titres Archivo Black en capitales, texte Arimo.
   Aucune bibliothèque, aucune requête externe : polices et images sont servies depuis ce dossier. */

@font-face {
  font-family: "Archivo Black";
  src: url("/fonts/archivo-black-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Arimo";
  src: url("/fonts/arimo-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #111111;
  --brand: #d82216;
  --brand-light: #ff6b5f;
  --mist: #e7e7e7;
  --steel: #3a3a3a;
  --ash: #6b6b6b;
  --white: #ffffff;
  --paper: #f4f4f4;
  --radius: 6px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --max: 72rem;
  --title: "Archivo Black", "Arial Black", Impact, sans-serif;
  --body: "Arimo", Arial, Helvetica, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
/* Barre de défilement : fine et carrée, comme sur le site du Pacte RSE. Page : piste noire, curseur rouge.
   Chrome, Edge et Safari utilisent ::-webkit-scrollbar ; Firefox, les propriétés standard. */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #8a8a8a;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand);
}
::-webkit-scrollbar-button {
  display: none;
}
::-webkit-scrollbar-corner {
  background: transparent;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: var(--ink);
}
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: var(--brand);
}
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: #ff3b2e;
}
@supports (-moz-appearance: none) {
  * {
    scrollbar-width: thin;
    scrollbar-color: #8a8a8a transparent;
  }
  html {
    scrollbar-color: var(--brand) var(--ink);
  }
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--title);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.08;
}
p {
  margin: 0 0 1rem;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  border-radius: var(--radius);
  transition: top 0.2s;
}
.skip:focus {
  top: 1rem;
}

/* ---------- En-tête ---------- */
.top {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  color: var(--white);
  /* Barre sombre : le menu reste lisible même sur les parties claires de la photo (l'arche blanche, le ciel). */
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.92) 0%, rgba(17, 17, 17, 0.78) 100%);
  backdrop-filter: blur(10px);
}
/* Le repère rouge de la charte, accroché à la barre : il dépasse un peu dessous. */
.top::after {
  content: "";
  position: absolute;
  top: 0;
  right: clamp(1.25rem, 6vw, 5rem);
  width: clamp(1.8rem, 3.4vw, 3rem);
  height: calc(100% + 2rem);
  background: var(--brand);
}
.hero__mark {
  display: none;
}
.top__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand img {
  width: auto;
  height: 2.5rem;
}
.brand__text {
  display: flex;
  flex-direction: column;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.35;
  text-transform: uppercase;
}
.brand__text {
  color: var(--brand-light);
}
.brand__text strong {
  color: var(--white);
}
.top__nav {
  display: none;
  gap: 1.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.top__nav a {
  text-decoration: none;
  padding-block: 0.4rem;
  color: var(--white);
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.top__nav a:hover {
  border-color: var(--brand);
}
@media (min-width: 52rem) {
  .top__nav {
    display: flex;
  }
}

/* ---------- Accueil ---------- */
.first {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  /* Le premier écran (hero + trois promesses) occupe exactement la hauteur de l'écran : le hero prend la place que les promesses laissent. */
  flex: 1 1 auto;
  min-height: 0;
  padding-block: clamp(4.5rem, 12vh, 7rem) clamp(1.2rem, 3vh, 2.5rem);
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 38% 60% at 74% 50%, rgba(216, 34, 22, 0.28) 0%, rgba(216, 34, 22, 0) 70%),
    linear-gradient(135deg, #1b1b1b 0%, var(--ink) 55%);
}
.hero__body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 4rem);
}
.hero__emblem {
  justify-self: center;
  width: auto;
  height: min(52vh, 32rem);
  aspect-ratio: 117 / 130;
  max-width: 100%;
  overflow: visible;
  animation: em-float 7s ease-in-out 2.4s infinite;
  filter: drop-shadow(0 1.5rem 3rem rgba(0, 0, 0, 0.6));
}
@media (max-width: 70rem) and (min-width: 52.01rem) {
  .hero__body {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr);
  }
  .hero__emblem {
    height: min(40vh, 22rem);
  }
}
@media (max-width: 52rem) {
  /* Téléphone et tablette en hauteur : le blason en haut, bien visible, puis le texte. */
  .hero__body {
    grid-template-columns: 1fr;
    gap: clamp(0.9rem, 2.6svh, 1.6rem);
  }
  .hero__emblem {
    order: -1;
    height: clamp(8rem, 30svh, 18rem);
  }
  .hero__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero__lead {
    margin-inline: auto;
  }
  .hero__actions {
    justify-content: center;
  }
  .hero__glow {
    background:
      radial-gradient(ellipse 70% 36% at 50% 26%, rgba(216, 34, 22, 0.3) 0%, rgba(216, 34, 22, 0) 70%),
      linear-gradient(180deg, #1b1b1b 0%, var(--ink) 60%);
  }
}
.hero__mark {
  position: absolute;
  top: 0;
  right: clamp(1.25rem, 6vw, 5rem);
  z-index: 1;
  width: clamp(2rem, 4vw, 3.5rem);
  height: clamp(4rem, 9vw, 7rem);
  background: var(--brand);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 clamp(1rem, 3.2vh, 2.1rem);
  padding: 0.7rem 1.35rem 0.7rem 1.15rem;
  font-size: clamp(0.8rem, 1.3vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--white);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.chip__dot {
  position: relative;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--brand);
}
.chip__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--brand);
  animation: ping 1.8s ease-out infinite;
}
@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(3.2);
    opacity: 0;
  }
}
.hero__title {
  max-width: 20ch;
  font-size: clamp(1.7rem, min(4.4vw, 6.2vh), 3.7rem);
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.hero__lead {
  max-width: 30rem;
  margin: clamp(1.1rem, 3.2vh, 2.4rem) 0 0;
  font-size: clamp(1rem, min(1.6vw, 2.6vh), 1.3rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}
.countdown-block {
  margin-top: clamp(1rem, 2.6vh, 2rem);
}
.countdown-block[hidden] {
  display: none;
}
.countdown__label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-light);
}
.countdown__label::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  background: var(--brand);
}
.countdown {
  display: flex;
  gap: clamp(0.4rem, 1vw, 0.7rem);
}
.countdown div {
  min-width: clamp(3.8rem, 6.4vw, 5rem);
  padding: clamp(0.5rem, 1.6vh, 0.85rem) 0.5rem clamp(0.4rem, 1.2vh, 0.65rem);
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
}
.countdown span {
  display: block;
  font-family: var(--title);
  font-size: clamp(1.4rem, min(3.2vw, 5vh), 2.3rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown small {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
@media (max-width: 52rem) {
  .countdown-block {
    width: 100%;
    max-width: 24rem;
  }
  .countdown__label {
    justify-content: center;
  }
  .countdown div {
    flex: 1;
    min-width: 0;
  }
}
@media (max-height: 40rem) {
  .countdown small {
    display: none;
  }
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.4rem, 4.2vh, 3rem);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(2.8rem, 6vh, 3.25rem);
  padding: 0.8rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--radius);
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn--primary {
  background: var(--brand);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--white);
  color: var(--ink);
}
.btn--ghost {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}
.btn--ghost:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}
.btn--dark {
  background: var(--ink);
  color: var(--white);
}
.btn--dark:hover {
  background: var(--brand);
  color: var(--white);
}
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  width: 1.7rem;
  height: 2.7rem;
  transform: translateX(-50%);
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
}
.hero__scroll span {
  position: absolute;
  left: 50%;
  top: 0.5rem;
  width: 0.25rem;
  height: 0.55rem;
  margin-left: -0.125rem;
  background: var(--white);
  border-radius: 999px;
  animation: scroll 1.8s ease-in-out infinite;
}
@keyframes scroll {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  80%,
  100% {
    transform: translateY(0.9rem);
    opacity: 0;
  }
}
@media (max-width: 40rem) {
  .hero__scroll {
    display: none;
  }
}

/* Variante sans photo (page introuvable). */
.hero--plain {
  background: var(--ink);
}

/* ---------- Les trois promesses ---------- */
.promises {
  background: var(--ink);
  color: var(--white);
  border-top: 4px solid var(--brand);
}
.promises__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.promises__grid li {
  position: relative;
  padding: clamp(1.1rem, 3.4vh, 2.4rem) 1.75rem clamp(1.2rem, 3.6vh, 2.5rem);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}
.promises__grid li:first-child {
  padding-left: 0;
  border-left: 0;
}
@media (max-width: 40rem) {
  .promises__grid li {
    padding-inline: 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
  .promises__grid li:first-child {
    border-top: 0;
  }
}
.promises__n {
  display: block;
  margin-bottom: clamp(0.25rem, 1vh, 0.7rem);
  font-family: var(--title);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  color: var(--brand-light);
}
.promises__grid h3 {
  margin-bottom: clamp(0.3rem, 1vh, 0.6rem);
  font-size: clamp(1rem, 2.2vh, 1.2rem);
}
.promises__grid p {
  max-width: 21rem;
  margin: 0;
  font-size: clamp(0.85rem, 1.9vh, 0.98rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

@media (max-height: 40rem) {
  .promises__grid p {
    display: none;
  }
}
@media (max-width: 40rem) {
  /* Téléphone : trois lignes compactes (numéro et titre), pour que tout reste dans le premier écran. */
  .promises__grid {
    grid-template-columns: 1fr;
  }
  .promises__grid li {
    display: flex;
    align-items: baseline;
    gap: 0.9rem;
    padding: 0.5rem 0;
  }
  .hero {
    padding-top: 3.9rem;
  }
  .hero__actions {
    gap: 0.5rem;
  }
  .hero__actions .btn {
    min-height: 2.6rem;
    padding-block: 0.5rem;
    font-size: 0.8rem;
  }
  .promises__n {
    margin: 0;
  }
  .promises__grid h3 {
    margin: 0;
    font-size: 1rem;
  }
  .promises__grid p {
    display: none;
  }
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(4rem, 9vw, 7rem);
}
.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow--light {
  color: var(--brand-light);
}
.title {
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  text-wrap: balance;
}
.title--light {
  color: var(--white);
}
.lead {
  max-width: 40rem;
  margin: 1.1rem 0 0;
  font-size: 1.125rem;
  color: var(--steel);
}

/* ---------- Pourquoi ce site ---------- */
.why__grid {
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
@media (min-width: 56rem) {
  .why__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}
.why__text .title {
  margin-bottom: 1.4rem;
}
.why__lead {
  max-width: 36rem;
  font-size: 1.0625rem;
  color: var(--steel);
}
.why__list {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}
.why__list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.why__n {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  font-family: var(--title);
  font-size: 1rem;
  color: var(--white);
  background: var(--brand);
  border-radius: var(--radius);
}
.why__list h4 {
  margin: 0.1rem 0 0.3rem;
  font-size: 1.05rem;
}
.why__list p {
  margin: 0;
  max-width: 30rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--steel);
}
.why__photo {
  position: relative;
  margin: 0;
}
.why__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.why__photo figcaption {
  position: absolute;
  left: 0;
  bottom: 1.25rem;
  padding: 0.55rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--brand);
}

/* ---------- Bandeau ---------- */
.band {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(16rem, 38vw, 26rem);
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
}
.band__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}
.band__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(17, 17, 17, 0.88) 0%, rgba(17, 17, 17, 0.55) 60%, rgba(17, 17, 17, 0.3) 100%);
}
.band__text {
  margin: 0;
  max-width: 18ch;
  padding-left: 1.4rem;
  font-family: var(--title);
  font-size: clamp(1.9rem, 5.2vw, 3.6rem);
  line-height: 1.08;
  text-transform: uppercase;
  border-left: 6px solid var(--brand);
}

/* ---------- Ce qui va changer ---------- */
.changes {
  background: var(--paper);
}
.changes__grid {
  display: grid;
  gap: 1.1rem;
  margin-top: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}
.changes__grid li {
  padding: 1.75rem 1.6rem 1.9rem;
  background: var(--white);
  border: 1px solid var(--mist);
  border-top: 4px solid var(--ink);
  border-radius: 0 0 var(--radius) var(--radius);
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}
.changes__grid li:hover {
  border-top-color: var(--brand);
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.08);
  transform: translateY(-3px);
}
.changes__grid svg {
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1.1rem;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.changes__grid h4 {
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
  line-height: 1.2;
}
.changes__grid p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.55;
  color: var(--steel);
}
.changes__note {
  max-width: 44rem;
  margin: 2.25rem 0 0;
  padding-left: 1rem;
  font-size: 0.95rem;
  color: var(--ash);
  border-left: 3px solid var(--brand);
}

/* ---------- Pour qui ---------- */
.audience .title {
  margin-bottom: 2.75rem;
}
.audience__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.audience__grid li {
  padding: 1.6rem 1.5rem 1.75rem;
  border-left: 4px solid var(--brand);
  background: var(--paper);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.audience__grid h4 {
  margin-bottom: 0.55rem;
  font-size: 1.05rem;
  line-height: 1.2;
}
.audience__grid p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.55;
  color: var(--steel);
}

/* ---------- Contact ---------- */
.contact {
  padding-top: 0;
}
.contact__box {
  display: grid;
  gap: 2rem;
  padding-block: clamp(2.5rem, 6vw, 4rem);
  background: var(--brand);
  color: var(--white);
  border-radius: var(--radius);
  max-width: calc(var(--max) - 2 * var(--gutter));
}
@media (min-width: 52rem) {
  .contact__box {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
  }
}
.contact .eyebrow--light {
  color: var(--white);
  opacity: 0.85;
}
.contact__text .title {
  margin-bottom: 1rem;
}
.contact__text > p:not(.eyebrow) {
  margin: 0 0 1.75rem;
  max-width: 30rem;
}
.contact__list {
  display: grid;
  gap: 1.1rem;
}
.contact__list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
.contact__list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.contact__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}
.contact__list a {
  width: fit-content;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 2px;
  overflow-wrap: anywhere;
}
.contact__list a:hover {
  text-decoration-color: var(--ink);
}
.contact .wrap {
  margin-inline: auto;
}
.contact__box.wrap {
  padding-inline: clamp(1.5rem, 5vw, 3.5rem);
}

/* ---------- Déjà en ligne ---------- */
.already {
  padding-block: clamp(2.5rem, 6vw, 4rem);
  background: var(--paper);
  border-top: 1px solid var(--mist);
}
.already__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
}
.already__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
}
.already__title {
  margin-bottom: 0.6rem;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
}
.already__row p:last-child {
  max-width: 36rem;
  margin: 0;
  color: var(--steel);
}

/* ---------- Pied de page ---------- */
.foot {
  color: rgba(255, 255, 255, 0.85);
  background: var(--ink);
}
.foot__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: 2.25rem;
}
.foot__brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.foot__brand img {
  width: auto;
  height: 2.2rem;
}
.foot__brand p {
  margin: 0;
  color: var(--brand-light);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}
.foot__brand strong {
  color: var(--white);
}
.foot__note {
  margin: 0;
  font-family: var(--title);
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-light);
}

/* ---------- Apparition douce (jamais indispensable : sans JavaScript tout reste visible) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Deuxième section : les rubriques, chacune s'ouvre et se ferme sous son titre ---------- */
.explore {
  background: var(--ink);
  color: var(--white);
}
.explore__body {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.explore__item {
  position: relative;
}
.explore__h {
  line-height: 1;
}
.explore__tab {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.5rem);
  width: 100%;
  padding: clamp(1rem, 2.4vw, 1.6rem) 0;
  font: inherit;
  text-align: left;
  color: rgba(255, 255, 255, 0.55);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.2s;
}
.explore__tab:hover,
.explore__tab[aria-expanded="true"] {
  color: var(--white);
}
.explore__tab:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 2px;
}
.explore__n {
  flex: none;
  min-width: 1.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
}
.explore__label {
  flex: 1;
  font-family: var(--title);
  font-size: clamp(1.45rem, 4vw, 3.2rem);
  line-height: 1.1;
  text-transform: uppercase;
  text-wrap: balance;
}
.explore__icon {
  position: relative;
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  transition:
    background-color 0.2s,
    border-color 0.2s;
}
.explore__icon::before,
.explore__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.9rem;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.25s;
}
.explore__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.explore__tab[aria-expanded="true"] .explore__icon {
  color: var(--white);
  background: var(--brand);
  border-color: var(--brand);
}
.explore__tab[aria-expanded="true"] .explore__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}
.explore__panel {
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  padding: clamp(1.5rem, 3.2vw, 2.75rem);
  color: var(--ink);
  background: var(--white);
  border-radius: var(--radius);
  animation: panel-in 0.35s ease both;
}
.explore__panel[hidden] {
  display: none;
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
}
.explore .eyebrow {
  display: none;
}
.explore__panel .title {
  margin-bottom: 1.2rem;
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
}
.explore__panel .changes__grid {
  margin-top: 1.75rem;
}
.explore__panel .changes__grid li {
  background: var(--paper);
}
.explore__panel:has(.contact__box) {
  padding: 0;
  background: none;
}
.explore__panel .contact__box {
  max-width: none;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
}
.explore__panel .already__row {
  display: grid;
  grid-template-columns: clamp(5rem, 12vw, 8rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.25rem, 3.5vw, 2.75rem);
  padding: 0;
}
.already__logo {
  width: 100%;
  height: auto;
}
.already__text {
  max-width: 36rem;
  margin: 0;
  color: var(--steel);
}
/* Le bouton se place sous le texte, aligné à droite. */
.explore__panel .already__row > .btn {
  grid-column: 2;
  justify-self: end;
}
@media (max-width: 36rem) {
  .explore__panel .already__row {
    grid-template-columns: 1fr;
  }
  .explore__panel .already__row > .btn {
    grid-column: 1;
  }
  .already__logo {
    width: 4.5rem;
  }
}
.explore__panel .already__title {
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
}
.explore__panel .lead {
  margin-top: 0;
}

/* ---------- Apparition douce (jamais indispensable : sans JavaScript tout reste visible) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Animation du hero : apparition échelonnée, puis un léger mouvement du blason ---------- */
/* Chaque animation ne définit que son point de départ : sans animation (option « moins d'animations »), tout est affiché dans son état final. */
.hero__text > * {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero__text > .chip {
  animation-delay: 0.1s;
}
.hero__text > .hero__title {
  animation-delay: 0.25s;
}
.hero__text > .hero__lead {
  animation-delay: 0.45s;
}
.hero__text > .countdown-block {
  animation-delay: 0.55s;
}
.hero__text > .hero__actions {
  animation-delay: 0.65s;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.4rem);
  }
}
.em-shield {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: em-in 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both;
}
@keyframes em-in {
  from {
    opacity: 0;
    transform: translateY(2rem) scale(0.92);
  }
}
.em-chief {
  transform-box: fill-box;
  transform-origin: 50% 0;
  animation: em-chief 0.7s cubic-bezier(0.7, 0, 0.2, 1) 0.5s both;
}
@keyframes em-chief {
  from {
    transform: scaleY(0);
  }
}
.em-loz {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: em-loz 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) both;
}
.em-loz:nth-child(1) { animation-delay: 1s; }
.em-loz:nth-child(2) { animation-delay: 1.08s; }
.em-loz:nth-child(3) { animation-delay: 1.16s; }
.em-loz:nth-child(4) { animation-delay: 1.24s; }
.em-loz:nth-child(5) { animation-delay: 1.32s; }
.em-loz:nth-child(6) { animation-delay: 1.4s; }
.em-loz:nth-child(7) { animation-delay: 1.48s; }
.em-loz:nth-child(8) { animation-delay: 1.56s; }
@keyframes em-loz {
  from {
    opacity: 0;
    transform: scale(0);
  }
}
/* Un reflet traverse le blason de temps en temps. */
.em-sheen {
  animation: em-sheen 7s ease-in-out 2.4s infinite;
}
@keyframes em-sheen {
  0% {
    transform: translateX(0);
  }
  30%,
  100% {
    transform: translateX(240px);
  }
}
@keyframes em-float {
  50% {
    transform: translateY(-0.6rem);
  }
}
.hero__glow {
  animation: glow 6s ease-in-out infinite alternate;
}
@keyframes glow {
  from {
    opacity: 0.65;
  }
}

/* ---------- Arrivée dans la deuxième section : même animation que le menu du site du Pacte ---------- */
.explore__body {
  position: relative;
  overflow: hidden;
}
.explore__list {
  position: relative;
  z-index: 1;
}
.explore__layers {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.explore__layers i {
  position: absolute;
  inset: 0;
  transition: transform 0.575s cubic-bezier(0.65, 0.01, 0.05, 0.99);
}
.explore__layers i:nth-child(1) {
  background: var(--brand);
}
.explore__layers i:nth-child(2) {
  background: var(--steel);
  transition-delay: 0.12s;
}
.explore__layers i:nth-child(3) {
  background: var(--ink);
  transition-delay: 0.24s;
}
.explore__h {
  overflow: hidden;
}
.explore__tab {
  outline-offset: -3px;
}
.explore__tab .explore__n,
.explore__tab .explore__icon {
  transition:
    transform 0.7s cubic-bezier(0.65, 0.01, 0.05, 0.99),
    opacity 0.7s,
    background-color 0.2s,
    border-color 0.2s;
}
.explore__tab {
  transition:
    color 0.2s,
    transform 0.7s cubic-bezier(0.65, 0.01, 0.05, 0.99);
}
/* Départ : panneaux hors champ, titres cachés sous leur ligne. Ajouté par le script seulement (sans lui, tout reste visible). */
.menu-anim:not(.is-in) .explore__layers i {
  transform: translateX(101%);
}
.menu-anim:not(.is-in) .explore__tab {
  transform: translateY(140%) rotate(4deg);
}
.menu-anim.is-in .explore__item:nth-of-type(1) .explore__tab { transition-delay: 0s, 0.38s; }
.menu-anim.is-in .explore__item:nth-of-type(2) .explore__tab { transition-delay: 0s, 0.435s; }
.menu-anim.is-in .explore__item:nth-of-type(3) .explore__tab { transition-delay: 0s, 0.49s; }
.menu-anim.is-in .explore__item:nth-of-type(4) .explore__tab { transition-delay: 0s, 0.545s; }
.menu-anim.is-in .explore__item:nth-of-type(5) .explore__tab { transition-delay: 0s, 0.6s; }
.menu-anim.is-in .explore__item:nth-of-type(6) .explore__tab { transition-delay: 0s, 0.655s; }
/* Soulignement rouge au survol, comme dans le menu. */
.explore__label {
  position: relative;
  flex: 0 1 auto;
}
.explore__label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1em;
  width: 100%;
  height: 3px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s;
}
.explore__tab:hover .explore__label::after,
.explore__tab:focus-visible .explore__label::after,
.explore__tab[aria-expanded="true"] .explore__label::after {
  transform: scaleX(1);
}
.explore__tab .explore__icon {
  margin-left: auto;
}
/* Sixième ligne (lien vers le discours du Maire) : une flèche au lieu du « + », le rond passe au rouge au survol. */
.explore__tab--link {
  text-decoration: none;
}
.explore__icon--go::before {
  width: 0.85rem;
}
.explore__icon--go::after {
  left: calc(50% + 0.18rem);
  width: 0.45rem;
  height: 0.45rem;
  background: none;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}
.explore__tab--link:hover .explore__icon--go,
.explore__tab--link:focus-visible .explore__icon--go {
  color: var(--white);
  background: var(--brand);
  border-color: var(--brand);
}
/* Formes abstraites qui se relaient selon le titre survolé (ordinateur seulement). */
.explore__shapes {
  display: none;
}
@media (min-width: 56rem) and (hover: hover) {
  .explore__shapes {
    position: absolute;
    right: 8%;
    top: 0;
    bottom: 0;
    z-index: 0;
    display: block;
    width: min(26rem, 32vw);
    pointer-events: none;
  }
  .explore__shapes svg {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 100%;
    max-height: 26rem;
    overflow: visible;
    opacity: 0;
    transform: scale(0.75) rotate(-6deg);
    transition:
      opacity 0.7s,
      transform 0.7s;
  }
  .explore__body:has(.explore__item:nth-of-type(1) .explore__tab:hover) .explore__shapes svg:nth-child(1),
  .explore__body:has(.explore__item:nth-of-type(2) .explore__tab:hover) .explore__shapes svg:nth-child(2),
  .explore__body:has(.explore__item:nth-of-type(3) .explore__tab:hover) .explore__shapes svg:nth-child(3),
  .explore__body:has(.explore__item:nth-of-type(4) .explore__tab:hover) .explore__shapes svg:nth-child(4),
  .explore__body:has(.explore__item:nth-of-type(6) .explore__tab:hover) .explore__shapes svg:nth-child(1),
  .explore__body:has(.explore__item:nth-of-type(5) .explore__tab:hover) .explore__shapes svg:nth-child(5) {
    opacity: 1;
    transform: none;
  }
}

/* Téléphone : avec le décompte, on resserre le hero pour qu'il tienne dans l'écran. */
@media (max-width: 52rem) {
  .hero {
    padding-top: 4.4rem;
    padding-bottom: 1rem;
  }
  .hero__body {
    gap: clamp(0.5rem, 1.6svh, 1.1rem);
  }
  .hero__emblem {
    height: clamp(5rem, 19svh, 14rem);
  }
  .hero__text .chip {
    margin-bottom: clamp(0.6rem, 1.8svh, 1.2rem);
    padding-block: 0.5rem;
  }
  .hero__lead {
    margin-top: clamp(0.6rem, 1.8svh, 1.2rem);
    font-size: clamp(0.9rem, 2.4svh, 1.05rem);
    line-height: 1.5;
  }
  .countdown-block {
    margin-top: clamp(0.7rem, 2svh, 1.4rem);
  }
  .hero__actions {
    margin-top: clamp(0.8rem, 2.4svh, 1.6rem);
  }
}
@media (max-width: 52rem) and (max-height: 46rem) {
  .hero__lead {
    display: none;
  }
}

/* Titres sur une seule ligne, numéros en gris, pastille + plus petite. */
.explore__label {
  white-space: nowrap;
  text-wrap: nowrap;
}
.explore__icon {
  width: 2rem;
  height: 2rem;
}
.explore__icon::before,
.explore__icon::after {
  width: 0.7rem;
}
@media (max-width: 40rem) {
  .explore__tab {
    gap: 0.7rem;
  }
  .explore__n {
    min-width: 1.3rem;
  }
  .explore__label {
    flex: 1 1 auto;
    min-width: 0;
    font-size: clamp(0.95rem, 5vw, 1.45rem);
  }
  .explore__icon {
    width: 1.65rem;
    height: 1.65rem;
  }
  .explore__icon::before,
  .explore__icon::after {
    width: 0.58rem;
  }
}

/* ---------- Bouton « retour en haut » : apparaît après un peu de défilement, comme sur le site du Pacte ---------- */
.to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  color: var(--white);
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition:
    background-color 0.2s,
    opacity 0.25s,
    transform 0.25s;
}
.to-top[hidden] {
  display: none;
}
.to-top:hover {
  background: var(--brand);
}
.to-top svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 18.75rem) {
  .to-top {
    display: none;
  }
}


/* ---------- Formulaire de la page de contact ---------- */
.cform,
.cform__done {
  padding: clamp(1.25rem, 3vw, 2rem);
  color: var(--ink);
  background: var(--white);
  border-radius: var(--radius);
}
.cform {
  display: grid;
  gap: 1rem;
}
.cform[hidden],
.cform__done[hidden] {
  display: none;
}
.cform__group {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.cform legend,
.cform__field > label {
  display: block;
  margin: 0 0 0.45rem;
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.cform__req {
  color: var(--brand);
}
.cform__hint {
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ash);
}
.cform__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.cform__choice {
  position: relative;
  display: inline-flex;
}
/* Le vrai champ reste dans la page (clavier, lecteur d'écran) ; seule la pastille se voit. */
.cform__choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.cform__choice span {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.35rem 0.8rem;
  font-size: 0.8125rem;
  line-height: 1.25;
  color: var(--steel);
  background: var(--paper);
  border: 2px solid var(--mist);
  border-radius: 999px;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.cform__choice:hover span {
  border-color: var(--ink);
}
.cform__choice input:checked + span {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}
.cform__choice input:focus-visible + span {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}
.cform__field {
  min-width: 0;
}
.cform input[type="text"],
.cform input[type="email"],
.cform textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--mist);
  border-radius: var(--radius);
  transition: border-color 0.15s;
}
.cform textarea {
  resize: vertical;
  min-height: 4.25rem;
}
.cform input[type="text"]:hover,
.cform input[type="email"]:hover,
.cform textarea:hover {
  border-color: var(--ash);
}
.cform input[type="text"]:focus,
.cform input[type="email"]:focus,
.cform textarea:focus {
  border-color: var(--ink);
  outline: 3px solid var(--brand);
  outline-offset: 1px;
}
.cform [aria-invalid="true"] {
  border-color: var(--brand) !important;
}
.cform ::placeholder {
  color: var(--ash);
  opacity: 1;
}
.cform__row {
  display: grid;
  gap: 1.15rem;
}
@media (min-width: 36rem) {
  .cform__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.cform__check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9375rem;
  cursor: pointer;
}
.cform__check input {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  accent-color: var(--brand);
  cursor: pointer;
}
.cform__error {
  margin: 0.4rem 0 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #b3190f;
}
.cform__error[hidden] {
  display: none;
}
.cform__error--form {
  margin: 0;
  padding: 0.7rem 0.85rem;
  background: #fdecea;
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
}
.cform__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  align-items: center;
}
.cform__foot .btn {
  cursor: pointer;
  min-width: 9rem;
}
.cform__foot .btn:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}
.cform__note {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--ash);
}
/* Champ piège : hors de l'écran pour tout le monde. */
.cform__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.cform__done {
  align-self: center;
}
.cform__tick {
  display: block;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  fill: var(--brand);
  stroke: none;
}
.cform__tick path {
  fill: none;
  stroke: var(--white);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cform__done-notify {
  margin-top: 0.75rem !important;
  font-weight: 700;
  color: var(--ink) !important;
}
.cform__done-notify[hidden] {
  display: none;
}
.cform__done h4 {
  margin: 0 0 0.5rem;
  font-family: var(--title);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 400;
  text-transform: uppercase;
}
.cform__done p {
  margin: 0;
  color: var(--steel);
}
.cform__done:focus {
  outline: none;
}
@media (prefers-reduced-motion: reduce) {
  .cform__choice span {
    transition: none;
  }
}

/* Petits écrans : le cadre rouge et le formulaire serrent leurs marges pour que les pastilles tiennent deux par ligne. */
@media (max-width: 36rem) {
  .explore__panel .contact__box {
    padding: 1.25rem 1rem;
  }
  .cform {
    padding: 1rem;
  }
  .cform__choice span {
    padding-inline: 0.7rem;
  }
}

/* ---------- Choix de la langue ---------- */
/* Un menu natif (<details>) : il marche sans JavaScript. Dans la barre, à gauche du repère rouge qui dépasse. */
.lang {
  position: relative;
  flex: none;
  margin-right: calc(clamp(1.25rem, 6vw, 5rem) + clamp(1.8rem, 3.4vw, 3rem) + 0.5rem);
}
.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 2.5rem;
  padding: 0 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  transition: border-color 0.2s, background-color 0.2s;
}
.lang__btn::-webkit-details-marker {
  display: none;
}
.lang__btn:hover,
.lang[open] .lang__btn {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}
.lang__btn:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}
.lang__icon,
.lang__chev {
  width: 1rem;
  height: 1rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lang__chev {
  transition: transform 0.2s;
}
.lang[open] .lang__chev {
  transform: rotate(180deg);
}
.lang__list {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 60;
  min-width: 11rem;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.lang__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-left: 4px solid transparent;
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.lang__list a:hover,
.lang__list a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}
.lang__list a[aria-current] {
  border-left-color: var(--brand);
  font-weight: 700;
}
.lang__list small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

/* Proposition de la langue du navigateur (page française, première visite) : une petite carte en bas à gauche, qu'on ferme d'une croix. */
.lang-hint {
  position: fixed;
  left: var(--gutter);
  bottom: 1rem;
  z-index: 70;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: min(26rem, calc(100vw - 2 * var(--gutter)));
  padding: 0.85rem 1rem;
  background: var(--white);
  color: var(--ink);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.35);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.lang-hint[hidden] {
  display: none;
}
.lang-hint p {
  margin: 0;
}
.lang-hint a {
  color: var(--brand);
  font-weight: 700;
}
.lang-hint button {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  background: transparent;
  color: var(--steel);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.lang-hint button:hover {
  color: var(--brand);
}

/* Mandarin : aucune police téléchargée (polices du système, déjà sur l'appareil) ; les titres perdent la capitale et le trait épais de la police latine. */
:lang(zh) {
  --title: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Hiragana Sans GB", sans-serif;
  --body: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Hiragana Sans GB", sans-serif;
}
:lang(zh) h1,
:lang(zh) h2,
:lang(zh) h3,
:lang(zh) h4,
:lang(zh) .brand__text,
:lang(zh) .chip,
:lang(zh) .eyebrow,
:lang(zh) .btn,
:lang(zh) .explore__label,
:lang(zh) .top__nav a {
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 700;
}

/* ---------- Événement : lien de l'en-tête, fenêtre d'annonce, bouton pour la rouvrir ---------- */
.top__end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.evt-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: var(--brand);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  animation: evt-pulse 2.4s ease-out infinite;
  transition: background 0.2s;
}
.evt-link:hover {
  background: #b81c11;
}
.evt-link__dot {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--white);
}
@keyframes evt-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(216, 34, 22, 0.6);
  }
  70% {
    box-shadow: 0 0 0 0.7rem rgba(216, 34, 22, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(216, 34, 22, 0);
  }
}
@media (max-width: 26rem) {
  .top__end {
    gap: 0.5rem;
  }
  .evt-link {
    padding: 0.45rem 0.7rem;
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
  }
}

.evt {
  width: min(54rem, calc(100vw - 2rem));
  max-width: none;
  max-height: calc(100svh - 2rem);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  overflow: visible;
}
.evt::backdrop {
  background: rgba(17, 17, 17, 0.74);
  backdrop-filter: blur(4px);
}
html:has(.evt[open]) {
  overflow: hidden;
}
.evt__box {
  position: relative;
  isolation: isolate;
  max-height: calc(100svh - 2rem);
  overflow: auto;
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.5);
}
.evt[open] .evt__box {
  animation: evt-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.evt[open]::backdrop {
  animation: evt-fade 0.4s ease;
}
@keyframes evt-in {
  from {
    opacity: 0;
    transform: translateY(1.5rem) scale(0.98);
  }
}
@keyframes evt-fade {
  from {
    opacity: 0;
  }
}
.evt__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}
.evt__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(31, 30, 36, 0.78) 0%, rgba(31, 30, 36, 0.62) 40%, rgba(31, 30, 36, 0.1) 72%, rgba(31, 30, 36, 0) 100%),
    linear-gradient(0deg, rgba(31, 30, 36, 0.45) 0%, rgba(31, 30, 36, 0) 40%);
}
.evt__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.6);
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s;
}
.evt__close:hover {
  background: var(--brand);
  border-color: var(--brand);
}
.evt__close svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}
.evt__body {
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 3.5rem);
}
.evt__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-light);
}
.evt__eyebrow .evt-link__dot {
  background: var(--brand);
  box-shadow: 0 0 0 0.25rem rgba(216, 34, 22, 0.3);
}
.evt__title {
  max-width: 19ch;
  margin: 0;
  font-size: clamp(1.6rem, 4.4vw, 2.9rem);
  line-height: 1.04;
  overflow-wrap: anywhere;
}
.evt__title span {
  color: var(--brand-light);
}
.evt__lead {
  max-width: 34rem;
  margin: 1.1rem 0 0;
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  color: rgba(255, 255, 255, 0.88);
}
.evt__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  justify-content: start;
  gap: 1px;
  width: fit-content;
  max-width: 100%;
  margin: 1.6rem 0 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.22);
}
.evt__facts div {
  padding: 0.75rem 1.2rem;
  background: rgba(17, 17, 17, 0.8);
}
.evt__facts dt {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
.evt__facts dd {
  margin: 0.15rem 0 0;
  font-family: var(--title);
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  text-transform: uppercase;
}
.evt__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 0;
}
.evt__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.5rem;
  border: 2px solid var(--brand);
  border-radius: var(--radius);
  background: var(--brand);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.evt__btn:hover {
  background: #b81c11;
  border-color: #b81c11;
}
.evt__btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
}
.evt__btn--ghost:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}
.evt__draft {
  display: inline-block;
  margin: 1.4rem 0 0;
  padding: 0.35rem 0.75rem;
  border-left: 3px solid var(--brand);
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.85);
}
@media (max-width: 40rem) {
  .evt__facts {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .evt__btn {
    width: 100%;
  }
}

.evt-reopen {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 35;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font: 700 0.75rem/1 var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0.6rem 1.6rem rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: background 0.2s;
}
.evt-reopen:hover {
  background: var(--brand);
}
.evt-reopen .evt-link__dot {
  background: var(--brand);
  animation: evt-pulse 2.4s ease-out infinite;
}
.evt-reopen:hover .evt-link__dot {
  background: var(--white);
}
.evt-reopen[hidden] {
  display: none;
}
/* La carte de proposition de langue occupe aussi le bas à gauche : le bouton se pose au-dessus. */
body:has(.lang-hint:not([hidden])) .evt-reopen {
  bottom: 7rem;
}
@media (prefers-reduced-motion: reduce) {
  .evt-link,
  .evt-reopen .evt-link__dot,
  .evt[open] .evt__box,
  .evt[open]::backdrop {
    animation: none;
  }
}

/* L'en-tête avec le bouton « Événement » : chaque libellé sur une seule ligne ; le menu ne s'affiche que s'il tient. */
.brand__text,
.top__nav a {
  white-space: nowrap;
}
.top__nav {
  gap: 1.35rem;
}
@media (min-width: 52rem) and (max-width: 67.99rem) {
  .top__nav {
    display: none;
  }
}
@media (max-width: 30rem) {
  .top__row {
    gap: 0.6rem;
  }
  .brand {
    gap: 0.5rem;
  }
  .brand img {
    height: 2rem;
  }
  .brand__text {
    font-size: 0.5625rem;
    letter-spacing: 0.06em;
  }
}
/* Téléphone : le blason seul (le nom de la Commune est juste dessous, dans l'accueil), pour laisser la place au bouton « Événement » et à la langue. */
@media (max-width: 27rem) {
  .brand__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

/* En-tête aéré : plus d'espace entre le blason, le menu et les boutons, et entre les entrées du menu.
   Le menu ne s'affiche que s'il a la place de respirer (78 rem et plus) ; en dessous, le bouton « Événement » et la langue restent. */
@media (min-width: 52rem) {
  .top__row {
    gap: 2.5rem;
  }
  .top__nav {
    gap: 2.25rem;
    margin-inline: auto;
  }
  .top__end {
    gap: 1rem;
  }
}
@media (min-width: 52rem) and (max-width: 77.99rem) {
  .top__nav {
    display: none;
  }
}
.brand,
.top__end {
  flex: none;
}

/* Fenêtre d'annonce : date au-dessus du titre, lieu dessous */
.evt__date,
.evt__place {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.7rem;
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
}
.evt__date {
  margin-bottom: 1.1rem;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
}
.evt__date time {
  color: #fff;
}
.evt__place {
  margin-top: 1.1rem;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  letter-spacing: 0.08em;
}
.evt__date svg {
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.evt__place svg {
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
  fill: none;
  stroke: var(--brand-light);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.evt__title {
  text-shadow: 0 0.15rem 1.5rem rgba(0, 0, 0, 0.35);
}

/* Fenêtre d'annonce : noir un peu moins dense (comme la page de l'événement) */
.evt__box {
  background: #1f1e24;
}
.evt::backdrop {
  background: rgba(31, 30, 36, 0.62);
}
/* Fenêtre d'annonce : l'anneau de focus du bouton de fermeture est blanc (pas rouge) */
.evt__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Fenêtre d'annonce : même présentation que l'accueil de la page de l'événement (voile léger, trait rouge sous le titre, bouton rouge puis lien) */
.evt__shade {
  background:
    linear-gradient(90deg, rgba(31, 30, 36, 0.62) 0%, rgba(31, 30, 36, 0.38) 30%, rgba(31, 30, 36, 0.08) 55%, rgba(31, 30, 36, 0) 70%),
    linear-gradient(0deg, rgba(31, 30, 36, 0.4) 0%, rgba(31, 30, 36, 0) 35%);
}
.evt__photo {
  object-position: 50% 60%;
}
.evt__title,
.evt__place,
.evt__date time {
  text-shadow: 0 0.15rem 1.25rem rgba(0, 0, 0, 0.45);
}
.evt__bar {
  width: 5rem;
  height: 4px;
  margin: 1.4rem 0 0;
  background: var(--brand);
}
.evt__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brand-light);
  text-shadow: 0 0.15rem 1rem rgba(0, 0, 0, 0.45);
  transition: color 0.2s, gap 0.2s;
}
.evt__more:hover {
  gap: 0.8rem;
  color: var(--white);
}
.evt__more svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.evt__cta {
  align-items: center;
  gap: 1rem 1.75rem;
}
@media (max-width: 40rem) {
  .evt__shade {
    background: linear-gradient(0deg, rgba(31, 30, 36, 0.85) 0%, rgba(31, 30, 36, 0.45) 45%, rgba(31, 30, 36, 0) 75%);
  }
}
@media (max-width: 40rem) {
  .evt__body {
    padding-top: 4.25rem;
  }
}

/* Fenêtre d'annonce : même accueil que la page de l'événement (pastille « Événement », titre sur deux lignes, lieu sur deux lignes) */
.evt__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0.6rem 1.3rem 0.6rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.45);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  backdrop-filter: blur(6px);
}
.evt__dot {
  position: relative;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--brand);
}
.evt__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--brand);
  animation: evt-ping 1.8s ease-out infinite;
}
@keyframes evt-ping {
  from {
    opacity: 0.8;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(3.2);
  }
}
@media (prefers-reduced-motion: reduce) {
  .evt__dot::after {
    animation: none;
  }
}
.evt__title {
  max-width: none;
  font-size: clamp(1.05rem, 3.7vw, 2rem);
  line-height: 1.1;
}
.evt__title .evt__line {
  display: block;
  white-space: nowrap;
}
.evt__title span:not(.evt__line) {
  color: var(--brand-light);
}
.evt__cut {
  display: inline;
}
@media (min-width: 40rem) {
  .evt__cut {
    display: none;
  }
}
@media (max-width: 39.99rem) {
  .evt__title {
    font-size: 4.1vw;
  }
}
.evt__place {
  align-items: center;
  line-height: 1.35;
}
.evt__title .evt__line {
  color: var(--white);
}
@media (max-width: 39.99rem) {
  .evt__body {
    padding-inline: 1.25rem;
  }
  .evt__title {
    font-size: 4.4vw;
  }
  .evt__place {
    font-size: 3.4vw;
    letter-spacing: 0.06em;
  }
}
@media (max-width: 23.99rem) {
  .evt__date {
    flex-wrap: nowrap;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
  }
  .evt__tag {
    font-size: 0.875rem;
  }
}
/* « Pacte RSE » dans le titre de la fenêtre d'annonce : même rouge vif que sur la page de l'événement */
.evt__title span:not(.evt__line) {
  color: #ff0000;
}

/* Fenêtre d'annonce : voile noir plus appuyé pour que le texte se lise bien sur la photo */
.evt__shade {
  background:
    linear-gradient(90deg, rgba(10, 10, 12, 0.78) 0%, rgba(10, 10, 12, 0.58) 34%, rgba(10, 10, 12, 0.26) 60%, rgba(10, 10, 12, 0.05) 82%),
    linear-gradient(0deg, rgba(10, 10, 12, 0.55) 0%, rgba(10, 10, 12, 0.06) 42%),
    rgba(10, 10, 12, 0.07);
}
@media (max-width: 40rem) {
  .evt__shade {
    background: linear-gradient(0deg, rgba(10, 10, 12, 0.94) 0%, rgba(10, 10, 12, 0.74) 50%, rgba(10, 10, 12, 0.34) 82%), rgba(10, 10, 12, 0.07);
  }
}
/* Nom de la Commune dans l'en-tête : rouge pur, bien lisible (comme sur la page de l'événement) */
.brand__text {
  color: #ff0000;
}
.brand__text strong {
  color: var(--white);
}
/* Pied de page : « Commune de Moanda » et « Moanda » en rouge pur, bien lisibles */
.foot__brand p,
.foot__note {
  color: #ff0000;
}
.foot__brand strong {
  color: var(--white);
}

/* En-tête : le texte du logo est plus long (« Site officiel, bientôt disponible ») ; le menu se masque plus tôt et le texte se resserre sur petit écran pour que rien ne déborde */
/* Menu du haut : visible dès 78 rem. Le texte du logo se resserre pour lui laisser la place. */
@media (min-width: 52rem) and (max-width: 77.99rem) {
  .top__nav {
    display: none;
  }
}
@media (min-width: 78rem) {
  .brand__text {
    font-size: 0.625rem;
    letter-spacing: 0.06em;
  }
  .top__nav {
    gap: 1.05rem;
  }
  .top__nav a {
    letter-spacing: 0.03em;
  }
}
@media (max-width: 51.99rem) {
  .brand__text {
    font-size: 0.625rem;
    letter-spacing: 0.08em;
  }
  .top__end {
    gap: 0.5rem;
  }
}
@media (max-width: 40rem) {
  .brand {
    gap: 0.5rem;
  }
  .brand__text strong {
    display: block;
    max-width: 9.5rem;
    white-space: normal;
    line-height: 1.3;
  }
}

@media (max-width: 34rem) {
  .brand__text {
    font-size: 0.5625rem;
    letter-spacing: 0.04em;
  }
  .brand__text strong {
    max-width: 7.5rem;
  }
  .evt-link {
    padding-inline: 0.8rem;
  }
}
@media (max-width: 22rem) {
  .brand img {
    height: 2rem;
  }
  .evt-link {
    padding-inline: 0.65rem;
    letter-spacing: 0.04em;
  }
}
@media (max-width: 22rem) {
  .top__end {
    gap: 0.35rem;
  }
  .brand__text strong {
    max-width: 6.5rem;
  }
}

/* Traductions automatisées : une ligne dans le menu de langue, puis au pied des pages traduites (le français, qui est l'original, n'affiche rien) */
.lang__note {
  max-width: 15rem;
  padding: 0.7rem 1rem 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.6875rem;
  line-height: 1.45;
}
.tr {
  padding-block: 1.25rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8125rem;
  line-height: 1.6;
}
.tr p {
  margin: 0;
}
.tr a {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 0.2em;
}
.tr a:hover {
  text-decoration-color: var(--white);
}
.tr__more {
  margin-top: 0.5rem;
}
.tr__more summary {
  display: inline-block;
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
}
.tr__more summary:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}
.tr__more p {
  max-width: 52rem;
  margin-top: 0.6rem;
}
html[lang="fr"] .tr {
  display: none;
}
.tr {
  padding-bottom: 5rem;
}
/* Espagnol : le texte du logo est plus long, le menu du haut passe après 85 rem (au lieu de 78 rem) pour que l'en-tête reste sur une ligne */
@media (min-width: 78rem) and (max-width: 84.99rem) {
  html[lang="es"] .top__nav {
    display: none;
  }
}

/* Fenêtre de la vidéo (bouton « Présentation du Pacte RSE ») : même carte que la fenêtre d'annonce, la vidéo en haut, le bouton dessous */
.evt--video .evt__box {
  padding: 4rem clamp(1rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 1.75rem);
  background: #1f1e24;
}
.evt__vbody {
  width: min(100%, calc((100svh - 14rem) * 16 / 9));
  min-width: min(100%, 18rem);
  margin-inline: auto;
}
.evt--video .pv {
  box-shadow: none;
}
.evt__vnote {
  margin: 0.6rem 0 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
}
html[lang="fr"] .evt__vnote {
  display: none;
}
.evt--video .evt__cta {
  margin-top: 1.25rem;
}
html[lang="fr"] .evt--video .evt__vnote + .evt__cta {
  margin-top: 1.25rem;
}
