/* Page d'annonce de la conférence du Pacte RSE pour la transformation 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;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}
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 {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--title);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.08;
}
p {
  margin: 0 0 1rem;
}
ul,
ol,
dl,
dd {
  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);
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
}
.skip:focus {
  top: 1rem;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.6rem;
  border: 2px solid var(--brand);
  border-radius: var(--radius);
  background: var(--brand);
  color: var(--white);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover {
  background: #b81c11;
  border-color: #b81c11;
}
.btn--ghost {
  background: transparent;
  border-color: rgb(255 255 255 / 0.55);
}
.btn--ghost:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}
.btn--small {
  white-space: nowrap;
  min-height: 2.5rem;
  padding: 0 1.1rem;
  font-size: 0.75rem;
}

/* ---------- Barre du haut ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--night);
  color: var(--white);
}
.top__row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: auto;
  text-decoration: none;
}
/* Même bloc que la barre du site du Pacte : logo, puis « PACTE RSE » en rouge clair et « COMMUNE DE MOANDA » en blanc, capitales espacées */
.brand img {
  width: auto;
  height: 2rem;
  transition: transform 0.3s;
}
.brand:hover img {
  transform: scale(1.05);
}
.brand__text {
  display: flex;
  flex-direction: column;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--white);
}
.brand__text span:first-child {
  color: var(--brand-light);
}
@media (max-width: 39.99rem) {
  .top__row {
    gap: 0.75rem;
  }
  .brand {
    gap: 0.5rem;
  }
  .brand__text {
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
  }
  .btn--small {
    padding: 0 0.8rem;
  }
}
.top__nav {
  display: flex;
  gap: 1.75rem;
}
.top__nav a {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgb(255 255 255 / 0.8);
}
.top__nav a:hover {
  color: var(--white);
}
@media (max-width: 47.99rem) {
  .top__nav {
    display: none;
  }
}

/* ---------- Accueil : deux volets ----------
   À gauche le texte (fond noir), à droite la photo de l'école EN COULEUR, coupée en biais et dévoilée à l'arrivée ; les éléments du texte montent l'un après l'autre. */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: min(48rem, calc(100svh - 4rem));
  overflow: hidden;
  background: var(--night);
  color: var(--white);
}
.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3rem;
  padding: clamp(3rem, 8vh, 5.5rem) clamp(1.5rem, 3vw, 3rem) clamp(2rem, 5vh, 3rem) var(--edge);
}
.hero__date,
.hero__place {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
}
.hero__date {
  margin-bottom: 1.5rem;
  font-size: clamp(0.8125rem, 1.3vw, 0.9375rem);
  letter-spacing: 0.14em;
}
.hero__date time {
  color: #fff;
  text-shadow: 0 0.15rem 1.25rem rgb(0 0 0 / 0.45);
}
.hero__date span {
  color: rgb(255 255 255 / 0.8);
}
.hero__date .icon {
  width: 1.35rem;
  height: 1.35rem;
  color: #fff;
}
.hero__place .icon {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--brand-light);
}
.hero__title {
  font-size: clamp(1.6rem, 2.6vw, 3rem);
  line-height: 1.06;
}
@media (max-width: 55.99rem) {
  .hero__title {
    font-size: clamp(1.5rem, 6vw, 2.25rem);
  }
}
@media (max-width: 22rem) {
  .hero__title {
    overflow-wrap: anywhere;
  }
}
.hero__title span:not(.hero__line) {
  color: var(--brand-light);
}
.hero__bar {
  width: 5rem;
  height: 4px;
  margin: 1.6rem 0;
  background: var(--brand);
}
.hero__place {
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  letter-spacing: 0.08em;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin: 2rem 0 0;
}
.hero__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brand-light);
  transition: color 0.2s, gap 0.2s;
}
.hero__more:hover {
  gap: 0.8rem;
  color: var(--white);
}
.hero__media {
  position: relative;
  min-height: 18rem;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
  animation: hero-reveal 1.2s cubic-bezier(0.08, 0.82, 0.17, 1) both;
}
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 50%;
}
@keyframes hero-reveal {
  from {
    clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
  }
}
.rise {
  animation: hero-rise 0.6s ease-out both;
}
.rise-1 {
  animation-delay: 0.25s;
}
.rise-2 {
  animation-delay: 0.4s;
}
.rise-3 {
  animation-delay: 0.55s;
}
.rise-4 {
  animation-delay: 0.7s;
}
.rise-5 {
  animation-delay: 0.85s;
}
.rise-6 {
  animation-delay: 1s;
}
@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
}
@media (max-width: 55.99rem) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero__media {
    order: -1;
    height: clamp(15rem, 56vw, 24rem);
    clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%);
    animation-name: hero-reveal-down;
  }
  .hero__content {
    gap: 2.25rem;
    padding: 1.5rem var(--gutter) 2.5rem;
  }
}
@keyframes hero-reveal-down {
  from {
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__media,
  .rise {
    animation: none;
  }
}
.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow--light {
  color: var(--brand-light);
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
}
.section--dark {
  background: var(--night);
  color: var(--white);
}
.section__head {
  max-width: 42rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section__head h2 {
  font-size: clamp(1.5rem, 3.6vw, 2.25rem);
}
.section__lead {
  margin: 1rem 0 0;
  font-size: 1.125rem;
  color: var(--steel);
}
.section--dark .section__lead {
  color: rgb(255 255 255 / 0.8);
}

/* ---------- Programme : la chronologie ----------
   Chaque étape : à gauche une colonne collée (icône et heure), à droite une carte. Avec JavaScript, seule l'étape qui passe au centre de l'écran est « ouverte »
   (résumé complet et détails) ; les autres restent repliées. Sans JavaScript, ou si la personne a demandé moins d'animations, tout reste ouvert. */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
}
.timeline {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  max-width: 64rem;
}
.step {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  column-gap: 2rem;
  align-items: start;
}
.step__meta {
  position: sticky;
  top: 6rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.step__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ash);
  transition: background 0.3s, color 0.3s;
}
.step__icon .icon {
  width: 1.3rem;
  height: 1.3rem;
}
.step__time {
  margin: 0;
  line-height: 1.15;
}
.step__time time {
  display: block;
  font-family: var(--title);
  font-size: 1.375rem;
  white-space: nowrap;
}
.step__time small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  color: var(--ash);
}
.step__card {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.step__tag {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.15rem 0.6rem;
  background: var(--paper);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}
.step__card h3 {
  font-size: clamp(1.0625rem, 2.2vw, 1.3125rem);
}
.step__text {
  margin: 0.55rem 0 0;
  color: var(--steel);
}
.step__more {
  display: grid;
  grid-template-rows: 1fr;
}
.step__more-in {
  min-height: 0;
  overflow: hidden;
}
.step__photo {
  margin: 1.1rem 0 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
}
.step__photo img {
  width: 100%;
  height: clamp(11rem, 26vw, 16rem);
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transform: scale(1.06);
  transition: filter 0.9s ease, transform 1.2s ease;
}
.step__items {
  margin-top: 1.1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: var(--paper);
}
.step__items li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.9375rem;
  color: var(--steel);
}
.step__items li + li {
  margin-top: 0.4rem;
}
.step__items li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--brand);
}
.step__who {
  margin: 1rem 0 0;
  font-weight: 700;
}
.step__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
}
.step__part + .step__part {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line, rgb(17 17 17 / 0.14));
}
.step__part h4 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  margin: 0 0 0.6rem;
  font-size: 0.9375rem;
}
.step__part h4 small {
  font-size: 0.8125rem;
  font-weight: 400;
  opacity: 0.85;
}
.step__link:hover {
  opacity: 0.8;
}

/* Les grands moments : carte rouge */
.step--key .step__card {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--white);
}
.step--key .step__text,
.step--key .step__items li {
  color: rgb(255 255 255 / 0.92);
}
.step--key .step__tag {
  background: rgb(255 255 255 / 0.2);
  color: var(--white);
}
.step--key .step__items {
  background: rgb(0 0 0 / 0.07);
}
.step--key .step__items li::before {
  background: var(--white);
}

/* Avec JavaScript : seule l'étape active est ouverte */
.anim .step__card {
  opacity: 0.82;
}
.anim .step__text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.anim .step__more {
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.5s ease, opacity 0.4s ease;
}
.anim .step.is-active .step__card {
  opacity: 1;
  border-color: var(--ink);
  box-shadow: 0 0.9rem 2.2rem rgb(17 17 17 / 0.07);
}
.anim .step--key.is-active .step__card {
  border-color: var(--brand);
  box-shadow: 0 0.9rem 2.2rem rgb(216 34 22 / 0.3);
}
.anim .step.is-active .step__text {
  display: block;
  overflow: visible;
}
.anim .step.is-active .step__more {
  grid-template-rows: 1fr;
  opacity: 1;
}
.anim .step.is-active .step__icon {
  background: var(--ink);
  color: var(--white);
}
.anim .step--key.is-active .step__icon {
  background: var(--brand);
}

/* La photo se colore et se pose quand son moment s'ouvre (sans animation : en noir et blanc, fixe) */
.anim .step.is-active .step__photo img {
  filter: none;
  transform: none;
}

@media (max-width: 47.99rem) {
  .step {
    grid-template-columns: 1fr;
    row-gap: 0.75rem;
  }
  .step__meta {
    position: static;
  }
  .step__time time,
  .step__time small {
    display: inline;
  }
  .step__time small {
    margin-left: 0.5rem;
  }
}

/* ---------- Intervenants ---------- */
.people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
  gap: 1.5rem;
}
.person {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: var(--radius);
  background: var(--night-2);
}
.person__photo {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: grayscale(1);
  background: linear-gradient(135deg, var(--night-2), var(--night));
  font-family: var(--title);
  font-size: clamp(3.5rem, 9vw, 5.5rem);
  letter-spacing: 0.04em;
  color: rgb(255 255 255 / 0.85);
}
.person__photo--initials::after {
  content: "";
  position: absolute;
  top: 0;
  right: 1.25rem;
  width: 1.5rem;
  height: 2.75rem;
  background: var(--brand);
}
.person__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.4rem 1.5rem 1.6rem;
}
.person__role {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-light);
}
.person h3 {
  font-size: 1.375rem;
}
.person h3 small {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--body);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgb(255 255 255 / 0.6);
}
.person__body > p:not(.person__role):not(.person__slot) {
  margin: 0.85rem 0 0;
  color: rgb(255 255 255 / 0.82);
}
.person__slot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: auto 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgb(255 255 255 / 0.07);
  font-size: 0.875rem;
  color: rgb(255 255 255 / 0.8);
}
.person__body > p + .person__slot {
  margin-top: 1.25rem;
}
.person__slot time {
  font-family: var(--title);
  font-size: 1.125rem;
  color: var(--white);
}
.person--open {
  border-style: dashed;
  background: transparent;
}
.person--open .person__photo {
  background: transparent;
  color: rgb(255 255 255 / 0.4);
}
.person--open .person__photo--initials::after {
  display: none;
}

/* ---------- Pied de page ---------- */
.foot {
  padding-block: 1.75rem;
  background: var(--night);
  color: rgb(255 255 255 / 0.75);
  font-size: 0.875rem;
}
.foot__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}
.foot p {
  margin: 0;
}
.foot__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.foot__brand img {
  width: 2.4rem;
  height: auto;
}
.foot__name {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.35;
}
.foot__name strong {
  color: var(--white);
  font-size: 0.9375rem;
}
.foot__name small {
  font-size: 0.8125rem;
}
.foot__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.25rem;
}
.foot__contact span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-light);
}
.foot__contact a {
  overflow-wrap: anywhere;
}
@media (max-width: 47.99rem) {
  .foot {
    padding-block: 2.25rem;
  }
  .foot__row {
    flex-direction: column;
    gap: 1.5rem;
  }
  .foot__brand img {
    width: 2.75rem;
  }
  .foot__contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    width: 100%;
    padding-top: 1.5rem;
    border-top: 1px solid rgb(255 255 255 / 0.18);
  }
}

/* ---------- Apparition douce ---------- */
.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;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* Toute la page occupe la largeur de l'écran (marge fixe au bord), au lieu d'une colonne centrale qui laissait du vide sur les côtés.
   Sur grand écran, chaque section range son titre à gauche (il reste visible pendant la lecture) et son contenu à droite : la largeur est exploitée
   sans que les lignes de texte deviennent trop longues. */
:root {
  --edge: clamp(1.25rem, 4vw, 4.5rem);
}
.wrap {
  max-width: none;
  padding-inline: var(--edge);
}
@media (min-width: 75rem) {
  .section > .wrap {
    display: grid;
    grid-template-columns: minmax(17rem, 0.75fr) minmax(0, 2.25fr);
    column-gap: clamp(3rem, 5vw, 6rem);
    align-items: start;
  }
  .section__head h2 {
    font-size: clamp(1.5rem, 2.2vw, 2.25rem);
  }
  .section__head {
    position: sticky;
    top: 7rem;
    margin-bottom: 0;
  }
  .timeline {
    max-width: none;
  }
}

/* Les grands aplats sombres (en-tête, accueil, intervenants, pied de page) : un noir un peu moins dense que le noir de la charte, qui reste celui du texte. */
:root {
  --night: #1f1e24;
  --night-2: #2a2930;
}


/* ---------- Accueil : la photo de l'école en grand fond, le texte par-dessus ----------
   La photo (en couleur) occupe toute la section et s'approche très lentement à l'arrivée ; un voile sombre à gauche et en bas, sans halo de couleur,
   garde le texte lisible sans éteindre le bâtiment, bien visible à droite. */
.hero {
  grid-template-columns: minmax(0, 1fr);
  isolation: isolate;
  min-height: min(48rem, calc(100svh - 4rem));
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgb(31 30 36 / 0.62) 0%, rgb(31 30 36 / 0.38) 30%, rgb(31 30 36 / 0.08) 55%, rgb(31 30 36 / 0) 70%),
    linear-gradient(0deg, rgb(31 30 36 / 0.4) 0%, rgb(31 30 36 / 0) 35%);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  min-height: 0;
  height: auto;
  clip-path: none;
  overflow: hidden;
  animation: hero-zoom 9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero__media img {
  object-position: 50% 60%;
}
@keyframes hero-zoom {
  from {
    transform: scale(1.03);
  }
}
.hero__content {
  max-width: min(46rem, 100%);
  justify-content: center;
}
.hero__title,
.hero__place,
.hero__date span {
  text-shadow: 0 0.15rem 1.25rem rgb(0 0 0 / 0.45);
}
@media (max-width: 55.99rem) {
  .hero {
    min-height: calc(100svh - 4rem);
  }
  .hero__media {
    order: 0;
    height: auto;
    clip-path: none;
    animation-name: hero-zoom;
  }
  .hero__media img {
    object-position: 38% 30%;
  }
  .hero::before {
    background:
      linear-gradient(0deg, rgb(31 30 36 / 0.85) 0%, rgb(31 30 36 / 0.45) 40%, rgb(31 30 36 / 0) 70%);
  }
  .hero__content {
    justify-content: flex-end;
    padding: 6rem var(--gutter) 7.5rem;
  }
}
.step__text + .step__more .step__part:first-child {
  margin-top: 0.25rem;
}
.step__part:first-child h4 {
  margin-top: 0.5rem;
}

/* Intervenants : des cartes compactes, photo à gauche et texte à droite */
.people {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1.25rem;
  max-width: 56rem;
}
.person {
  flex-direction: row;
  align-items: stretch;
}
.person__photo {
  flex: none;
  width: 7rem;
  height: auto;
  aspect-ratio: auto;
  font-size: 1.75rem;
}
.person__photo--initials::after {
  right: 0.75rem;
  width: 0.9rem;
  height: 1.6rem;
}
.person__body {
  min-width: 0;
  padding: 1.1rem 1.25rem 1.2rem;
}
@media (max-width: 30rem) {
  .person__photo {
    width: 5rem;
  }
}
/* Intervenants : la ligne « discours / heure » est toujours en bas de la carte, alignée d'une carte à l'autre */
.person__body > p + .person__slot {
  margin-top: auto;
}
.person__body > p:not(.person__role):not(.person__slot) {
  margin-bottom: 1.25rem;
}

/* 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);
  }
}

/* Très petits écrans (320 à 360 px) : rien ne dépasse, rien ne se coupe */
.person h3 {
  overflow-wrap: anywhere;
}
.person__slot time {
  white-space: nowrap;
}
@media (max-width: 23.99rem) {
  .brand__text {
    font-size: 0.6875rem;
    letter-spacing: 0.05em;
  }
  .person__photo {
    width: 3.75rem;
    font-size: 1.25rem;
  }
  .person__photo--initials::after {
    right: 0.5rem;
  }
  .person__body {
    padding: 1rem 1rem 1.1rem;
  }
  .person h3 {
    font-size: 1.125rem;
  }
  .step__text {
    overflow-wrap: anywhere;
  }
}

/* Accueil : le titre tient sur deux lignes (écrans de tablette et plus) */
.hero__line {
  display: inline;
}
@media (min-width: 40rem) {
  .hero__content {
    max-width: min(68rem, 100%);
  }
  .hero__title {
    font-size: clamp(1.15rem, 3vw, 2.9rem);
  }
  .hero__line {
    display: block;
    white-space: nowrap;
  }
}

/* Accueil sur téléphone : le titre est sur trois lignes (la taille suit la largeur de l'écran) */
@media (max-width: 39.99rem) {
  .hero__title {
    font-size: 4.8vw;
    letter-spacing: 0;
  }
  .hero__line {
    display: block;
    white-space: nowrap;
  }
}
.hero__cut {
  display: none;
}
@media (max-width: 39.99rem) {
  .hero__cut {
    display: inline;
  }
}

/* Logo : le blason de la Commune, avec « Commune de Moanda / Site officiel » comme sur le site de la Commune */
.brand img {
  height: 2.5rem;
}
.brand__text {
  color: var(--brand-light);
  line-height: 1.35;
}
.brand__text strong {
  color: var(--white);
}
.foot__brand img {
  width: auto;
  height: 2.5rem;
}

/* Photos des intervenants */
.person__photo {
  filter: none;
  object-fit: cover;
  object-position: 50% 12%;
}
.step__who {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.step__avatar {
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 12%;
}

/* Accueil : pastille « Événement » (point rouge qui pulse) au-dessus de la date, pour qu'on sache tout de suite de quoi il s'agit */
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  align-self: flex-start;
  margin: 0 0 1rem;
  padding: 0.6rem 1.3rem 0.6rem 1rem;
  border: 1px solid rgb(255 255 255 / 0.45);
  border-radius: 999px;
  background: rgb(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);
}
.hero__dot {
  position: relative;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--brand);
}
.hero__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--brand);
  animation: hero-ping 1.8s ease-out infinite;
}
@keyframes hero-ping {
  from {
    opacity: 0.8;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(3.2);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__dot::after {
    animation: none;
  }
}

/* Liens dans le texte des cartes d'intervenants */
.person__body p a {
  color: var(--brand-light);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}
.person__body p a:hover {
  color: var(--white);
}
.person__body p a[href*="rsemoanda"] {
  white-space: nowrap;
}
.foot__contact a {
  text-decoration: none;
  transition: color 0.2s;
}
.foot__contact a:hover {
  color: var(--brand-light);
}

/* Deux intervenants sur une même présentation : les deux portraits côte à côte */
.step__faces {
  display: flex;
  flex: none;
}
.step__faces .step__avatar + .step__avatar {
  margin-left: -0.6rem;
  border: 2px solid var(--white);
}

/* « Pacte RSE » dans le titre : un rouge plus vif, bien lisible sur la photo */
.hero__title span:not(.hero__line) {
  color: #ff0000;
}

/* En-tête sur téléphone : sans le bouton « Je participe », le nom de la Commune a toute la place et se lit bien */
@media (max-width: 39.99rem) {
  .brand img {
    height: 2.75rem;
  }
  .brand__text {
    font-weight: 800;
    line-height: 1.4;
  }
}

/* Nom de la Commune dans l'en-tête : rouge pur, bien lisible */
.brand__text > span:first-child {
  color: #ff0000;
}
/* Accueil : voile noir plus appuyé pour que le texte se lise bien sur la photo */
.hero::before {
  background:
    linear-gradient(90deg, rgb(10 10 12 / 0.78) 0%, rgb(10 10 12 / 0.58) 34%, rgb(10 10 12 / 0.26) 60%, rgb(10 10 12 / 0.05) 82%),
    linear-gradient(0deg, rgb(10 10 12 / 0.55) 0%, rgb(10 10 12 / 0.06) 42%),
    rgb(10 10 12 / 0.07);
}
@media (max-width: 55.99rem) {
  .hero::before {
    background: linear-gradient(0deg, rgb(10 10 12 / 0.94) 0%, rgb(10 10 12 / 0.74) 50%, rgb(10 10 12 / 0.34) 82%), rgb(10 10 12 / 0.07);
  }
}

/* Message du Maire sous les cartes des intervenants : sans boîte, aligné sur les cartes (guillemets rouges, texte gras en italique, mots clés en rouge) */
.speakers {
  min-width: 0;
}
.quote {
  max-width: 56rem;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
}
.quote__mark {
  display: block;
  width: 2.75rem;
  height: 2.1rem;
  fill: var(--brand);
}
.quote blockquote {
  max-width: 46rem;
  margin: 1.1rem 0 0;
  font-size: clamp(1.1875rem, 1.9vw, 1.625rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.4;
  color: var(--white);
}
.quote blockquote span {
  color: var(--brand-light);
}
.quote figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 1.4rem;
  padding-left: 1rem;
  border-left: 3px solid var(--brand);
}
.quote figcaption strong {
  font-weight: 700;
  color: var(--white);
}
.quote figcaption span {
  font-size: 0.9375rem;
  color: rgb(255 255 255 / 0.75);
}

.quote__sign {
  display: block;
  width: auto;
  height: 4.5rem;
  margin-top: 1.4rem;
}
.quote__sign + figcaption {
  margin-top: 0.6rem;
}

/* Message du Maire : sur toute la largeur des deux cartes, texte plus petit (3 ou 4 lignes sur ordinateur) */
.quote {
  max-width: none;
}
.quote blockquote {
  max-width: none;
  font-size: clamp(1rem, 1.3vw, 1.1875rem);
  line-height: 1.5;
}
.quote__sign {
  height: 3.75rem;
}
/* Largeur = celle des deux cartes (même limite que la grille des intervenants) */
.quote {
  max-width: 56rem;
}

/* Message du Maire sur téléphone : environ 6 lignes, taille lisible */
@media (max-width: 47.99rem) {
  .quote blockquote {
    font-size: 0.9375rem;
    line-height: 1.45;
  }
  .quote__mark {
    width: 2.5rem;
    height: 1.9rem;
  }
  .quote__sign {
    height: 3.5rem;
    margin-top: 1.1rem;
  }
}
@media (max-width: 21.99rem) {
  .quote blockquote {
    font-size: 0.875rem;
  }
}

/* En-tête : bouton pour revenir à l'accueil du site (visible à toutes les largeurs) */
.top__back {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.5rem;
  padding: 0 1.1rem 0 0.9rem;
  border: 1.5px solid rgb(255 255 255 / 0.55);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s, gap 0.2s;
}
.top__back svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}
.top__back:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}
.top__back:hover svg {
  transform: translateX(-0.2rem);
}
.top__back:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}
.top__back-short {
  display: none;
}
@media (max-width: 29.99rem) {
  .top__back {
    min-height: 2.25rem;
    padding: 0 0.85rem 0 0.7rem;
  }
  .top__back-long {
    display: none;
  }
  .top__back-short {
    display: inline;
  }
}

/* Pied de page : le nom de la Commune à côté du blason, comme sur le site landing */
.foot__name {
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}
.foot__name span {
  color: #ff0000;
}
.foot__name strong {
  color: var(--white);
}
@media (max-width: 29.99rem) {
  .brand__text {
    font-size: 0.5625rem;
    letter-spacing: 0.05em;
    white-space: normal;
  }
  .brand__text strong {
    max-width: 11rem;
  }
}

/* Bouton « Retour au site » sans flèche */
.top__back {
  padding: 0 1.2rem;
}
.top__back:hover {
  gap: 0.55rem;
}
@media (max-width: 29.99rem) {
  .top__back {
    padding: 0 1rem;
  }
}
/* Le texte du logo est plus long : les liens de section passent après 56 rem de large pour que l'en-tête reste sur une ligne sans déborder */
@media (max-width: 55.99rem) {
  .top__nav {
    display: none;
  }
}

/* Vidéo du Pacte RSE en tête de la section programme : sur téléphone et tablette elle vient AVANT le titre « 01 · Programme » ;
   sur grand écran elle est dans la colonne de droite, au-dessus de la chronologie, le titre restant à gauche. */
.section .pv-frame {
  margin-bottom: calc(clamp(3.75rem, 8vw, 5.5rem) + 0.75rem);
}
@media (min-width: 75rem) {
  .section > .wrap > .pv-frame {
    grid-column: 2;
    grid-row: 1;
  }
  .section > .wrap > .section__head {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  .section > .wrap > .timeline {
    grid-column: 2;
    grid-row: 2;
  }
}
