/* =========================================================================
   Cercle sacerdotal de Montréal
   -------------------------------------------------------------------------
   Trois familles seulement, chacune pour un office :
     Marcellus      — capitales romaines, pour les titres et la marque ;
     Source Serif 4 — le texte courant, chaleureux et lisible en longueur ;
     Inter          — les étiquettes, la navigation, tout ce qui se lit d'un
                      coup d'œil plutôt que par phrases.
   ========================================================================= */

:root {
  /* Encres */
  --encre: #101720;
  --encre-nuit: #080c12;
  --encre-douce: #26313f;

  /* Papiers */
  --papier: #fbf8f3;
  --papier-2: #f3ece1;
  --papier-3: #ece3d5;

  /* Or : deux valeurs, car le même or ne tient pas le contraste
     sur l'ivoire et sur la nuit. */
  --or: #8d6d2f;
  --or-clair: #c9a75f;

  --texte: #2a2f37;
  --texte-doux: #5f6672;
  --texte-nuit: rgba(251, 248, 243, 0.72);

  --trait: rgba(16, 23, 32, 0.14);
  --trait-nuit: rgba(251, 248, 243, 0.16);

  --serif: 'Source Serif 4', 'Iowan Old Style', Georgia, serif;
  --titre: 'Marcellus', 'Optima', 'Palatino', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Échelle typographique : chaque taille suit la largeur de la fenêtre,
     sans palier brutal. */
  --t-geant: clamp(2.75rem, 1.15rem + 5.8vw, 6.7rem);
  --t-1: clamp(2.3rem, 1.3rem + 3.9vw, 4.9rem);
  --t-2: clamp(1.85rem, 1.3rem + 2.3vw, 3.15rem);
  --t-3: clamp(1.28rem, 1.1rem + 0.8vw, 1.72rem);
  --t-corps: clamp(1.02rem, 0.97rem + 0.24vw, 1.16rem);
  --t-chapo: clamp(1.2rem, 1.05rem + 0.75vw, 1.6rem);
  --t-petit: 0.815rem;

  --large: 1340px;
  --colonne: 38rem;
  --marge: clamp(1.25rem, 5vw, 5.5rem);
  --air: clamp(4.25rem, 3rem + 6vw, 9rem);

  --courbe: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Réglages généraux ---------- */

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

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

body {
  margin: 0;
  background: var(--papier);
  color: var(--texte);
  font-family: var(--serif);
  font-size: var(--t-corps);
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.fige {
  overflow: hidden;
}

img,
picture,
svg,
iframe {
  display: block;
  max-width: 100%;
}

/* Les attributs width/height de l'<img> réservent la place avant chargement,
   mais ils se comportent aussi comme une déclaration de style : sans cette
   ligne, l'attribut height l'emporterait sur les `aspect-ratio` posés plus
   bas et chaque vignette reprendrait sa hauteur d'origine. */
img {
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--titre);
  font-weight: 400;
  color: var(--encre);
  margin: 0;
  /* Pas de line-height imposé plus serré que 1.08 : les jambages des
     capitales accentuées (À, É) dépassent au-dessus de la hauteur d'x. */
  line-height: 1.1;
  letter-spacing: -0.005em;
}

p {
  margin: 0 0 1.15em;
}

a {
  color: inherit;
}

::selection {
  background: var(--or-clair);
  color: var(--encre-nuit);
}

:focus-visible {
  outline: 2px solid var(--or);
  outline-offset: 3px;
  border-radius: 1px;
}

.saut {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--encre);
  color: var(--papier);
  font-family: var(--sans);
  font-size: var(--t-petit);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.25s var(--courbe);
}

.saut:focus-visible {
  transform: none;
}

.visuellement-cache {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Trames ---------- */

.enveloppe {
  width: min(100% - 2 * var(--marge), var(--large));
  margin-inline: auto;
}

.section {
  padding-block: var(--air);
}

.section--serree {
  padding-block: calc(var(--air) * 0.62);
}

.fond-2 {
  background: var(--papier-2);
}

.fond-nuit {
  background: var(--encre);
  color: var(--texte-nuit);
}

.fond-nuit h1,
.fond-nuit h2,
.fond-nuit h3 {
  color: var(--papier);
}

/* ---------- Étiquettes et filets ---------- */

.chapeau {
  font-family: var(--sans);
  font-size: var(--t-petit);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--or);
  margin: 0 0 1.4rem;
  display: flex;
  /* Aligné sur la première ligne, pas sur le milieu du bloc : une étiquette
     qui passe sur deux lignes garderait sinon son filet flottant au centre. */
  align-items: flex-start;
  gap: 0.9rem;
}

.chapeau::before {
  content: '';
  flex: 0 0 auto;
  margin-top: 0.68em;
  width: 2.4rem;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.9s var(--courbe) 0.1s;
}

.vu .chapeau::before,
.chapeau.vu::before {
  transform: none;
}

.fond-nuit .chapeau {
  color: var(--or-clair);
}

.chapeau--centre {
  justify-content: center;
}

.chapeau--centre::after {
  content: '';
  flex: 0 0 auto;
  margin-top: 0.68em;
  width: 2.4rem;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transform: scaleX(0);
  transition: transform 0.9s var(--courbe) 0.1s;
}

.vu .chapeau--centre::after {
  transform: none;
}

/* ---------- Marque ---------- */

.marque {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  text-decoration: none;
  color: inherit;
}

.embleme {
  flex: 0 0 auto;
  width: 2.15rem;
  height: 2.15rem;
  fill: none;
  stroke: var(--or);
  stroke-width: 1.15;
  transition: stroke 0.4s var(--courbe), transform 0.6s var(--courbe);
}

.marque-mots {
  display: grid;
  font-family: var(--titre);
  line-height: 1.12;
  color: currentColor;
}

.marque-l1 {
  font-size: 0.99rem;
  letter-spacing: 0.055em;
}

.marque-l2 {
  font-size: 0.99rem;
  letter-spacing: 0.055em;
  color: var(--or);
  transition: color 0.4s var(--courbe);
}

a:hover .embleme {
  transform: rotate(-8deg);
}

/* ---------- Bandeau ---------- */

.bandeau {
  position: fixed;
  inset: 0 0 auto;
  /* Au-dessus du voile : `.bascule` ouvre le menu et doit rester cliquable
     pour le refermer. Un z-index posé sur le bouton ne suffirait pas — il est
     enfermé dans le contexte d'empilement du bandeau. */
  z-index: 120;
  color: var(--encre);
  background: rgba(251, 248, 243, 0);
  transition: background 0.5s var(--courbe), color 0.5s var(--courbe),
    box-shadow 0.5s var(--courbe), transform 0.45s var(--courbe);
}

.bandeau-inn {
  width: min(100% - 2 * var(--marge), var(--large));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(1rem, 2vw, 1.6rem);
  transition: padding-block 0.5s var(--courbe);
}

/* Au-dessus d'une photo plein cadre, le bandeau se pose en blanc. */
.bandeau--clair:not(.bandeau--pose) {
  color: var(--papier);
}

.bandeau--clair:not(.bandeau--pose) .embleme {
  stroke: var(--or-clair);
}

.bandeau--clair:not(.bandeau--pose) .marque-l2 {
  color: var(--or-clair);
}

.bandeau--pose {
  background: rgba(251, 248, 243, 0.93);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--trait);
}

.bandeau--pose .bandeau-inn {
  padding-block: 0.72rem;
}

/* Au défilement vers le bas, le bandeau s'efface ; il revient dès qu'on
   remonte. La lecture garde tout l'écran, la navigation reste à portée. */
.bandeau--cache {
  transform: translateY(-105%);
}

.nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 2.6vw, 2.7rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  position: relative;
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.79rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  padding-block: 0.35rem;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--courbe);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: none;
  transform-origin: left;
}

.nav a[aria-current='page'] {
  color: var(--or);
}

.bandeau--clair:not(.bandeau--pose) .nav a[aria-current='page'] {
  color: var(--or-clair);
}

.nav a[aria-current='page']::after {
  transform: none;
}

@media (max-width: 880px) {
  .nav {
    display: none;
  }
}

/* Menu ouvert : le bandeau redevient transparent et clair, au-dessus du voile
   sombre, et cesse de s'escamoter. */
body.fige .bandeau {
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--papier);
  transform: none;
}

body.fige .bandeau .embleme {
  stroke: var(--or-clair);
}

body.fige .bandeau .marque-l2 {
  color: var(--or-clair);
}

/* ---------- Bascule et voile de navigation ---------- */

.bascule {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.6rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  position: relative;
  z-index: 120;
}

.bascule-trait {
  position: absolute;
  left: 50%;
  width: 1.5rem;
  height: 1px;
  margin-left: -0.75rem;
  background: currentColor;
  transition: transform 0.4s var(--courbe), opacity 0.25s;
}

.bascule-trait:nth-child(1) {
  top: calc(50% - 4px);
}

.bascule-trait:nth-child(2) {
  top: calc(50% + 4px);
}

.bascule[aria-expanded='true'] .bascule-trait:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.bascule[aria-expanded='true'] .bascule-trait:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 880px) {
  .bascule {
    display: block;
  }
}

.voile {
  position: fixed;
  inset: 0;
  z-index: 110;
  overscroll-behavior: contain;
  background: var(--encre);
  color: var(--papier);
  display: grid;
  align-content: center;
  padding: 6rem var(--marge) 3rem;
  opacity: 0;
  transition: opacity 0.42s var(--courbe);
}

.voile[hidden] {
  display: none;
}

.voile--ouvert {
  opacity: 1;
}

.voile-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.voile-nav li {
  border-top: 1px solid var(--trait-nuit);
  opacity: 0;
  transform: translateY(1.1rem);
  transition: opacity 0.5s var(--courbe), transform 0.5s var(--courbe);
  transition-delay: calc(var(--i) * 70ms + 90ms);
}

.voile-nav li:last-child {
  border-bottom: 1px solid var(--trait-nuit);
}

.voile--ouvert .voile-nav li {
  opacity: 1;
  transform: none;
}

.voile-nav li a {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  padding-block: clamp(0.85rem, 2.6vw, 1.35rem);
  font-family: var(--titre);
  font-size: clamp(1.75rem, 8vw, 2.9rem);
  text-decoration: none;
  transition: color 0.3s;
}

.voile-nav li a:hover {
  color: var(--or-clair);
}

.voile-num {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--or-clair);
}

.voile-pied {
  margin: 2.4rem 0 0;
  font-family: var(--sans);
  font-size: var(--t-petit);
  letter-spacing: 0.09em;
  color: var(--texte-nuit);
}

.voile-pied a {
  overflow-wrap: anywhere;
  text-decoration: none;
  border-bottom: 1px solid var(--trait-nuit);
  padding-bottom: 2px;
}

/* ---------- Ouverture (diaporama) ---------- */

.ouverture {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  isolation: isolate;
  background: var(--encre-nuit);
  overflow: clip;
}

.ouverture-scenes {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s var(--courbe);
}

.scene--active {
  opacity: 1;
}

.scene picture,
.scene img {
  width: 100%;
  height: 100%;
}

.scene img {
  height: 100%;
  object-fit: cover;
  object-position: 62% 42%;
  transform: scale(1.06);
}

.scene--active img {
  animation: derive 16s linear forwards;
}

@keyframes derive {
  from {
    transform: scale(1.03);
  }
  to {
    transform: scale(1.12);
  }
}

/* Deux voiles superposés : l'un remonte du bas pour asseoir le texte,
   l'autre vient de la gauche pour détacher les lignes du décor. */
.ouverture-scenes::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(8, 12, 18, 0.93) 0%, rgba(8, 12, 18, 0.55) 34%, rgba(8, 12, 18, 0.1) 62%, rgba(8, 12, 18, 0.35) 100%),
    linear-gradient(to right, rgba(8, 12, 18, 0.72) 0%, rgba(8, 12, 18, 0.2) 52%, rgba(8, 12, 18, 0) 80%);
}

.ouverture-texte {
  position: relative;
  width: min(100% - 2 * var(--marge), var(--large));
  margin-inline: auto;
  padding-block: clamp(7rem, 16vh, 10rem) clamp(6.5rem, 13vh, 8.5rem);
  color: var(--papier);
}

.ouverture-bloc {
  max-width: min(100%, 54rem);
  display: none;
}

.ouverture-bloc--active {
  display: block;
}

.ouverture-sur {
  font-family: var(--sans);
  font-size: var(--t-petit);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--or-clair);
  margin: 0 0 clamp(1.1rem, 2.4vw, 1.9rem);
  max-width: 34ch;
}

.ouverture h1,
.ouverture-faux-titre {
  font-family: var(--titre);
  font-weight: 400;
  font-size: var(--t-geant);
  line-height: 1.02;
  letter-spacing: -0.018em;
  color: var(--papier);
  margin: 0;
}

/* Chaque ligne du titre monte derrière son propre cache. */
.ligne {
  display: block;
  overflow: hidden;
}

.ligne > span {
  display: block;
  transform: translateY(102%);
  transition: transform 1s var(--courbe);
  transition-delay: calc(var(--l) * 110ms + 180ms);
}

.ouverture-bloc--active .ligne > span {
  transform: none;
}

.ouverture-texte p.ouverture-chapo {
  max-width: 44ch;
  margin: clamp(1.6rem, 3.2vw, 2.4rem) 0 0;
  font-size: var(--t-chapo);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(251, 248, 243, 0.86);
}

.ouverture-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.4rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* Sur un écran étroit, deux boutons de largeurs différentes font désordre :
   on les empile à égalité. */
@media (max-width: 560px) {
  .ouverture-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ouverture-actions .bouton {
    justify-content: center;
  }
}

.ouverture-bas {
  position: absolute;
  inset: auto 0 0;
  width: min(100% - 2 * var(--marge), var(--large));
  margin-inline: auto;
  padding-bottom: clamp(1.4rem, 3vh, 2.4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.puces {
  display: flex;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.puce {
  --duree: 9s;
  width: 3.2rem;
  height: 2px;
  padding: 0;
  border: 0;
  background: rgba(251, 248, 243, 0.28);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.puce::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--or-clair);
  transform: scaleX(0);
  transform-origin: left;
}

.puce[aria-current='true']::after {
  animation: remplir var(--duree, 8s) linear forwards;
}

@keyframes remplir {
  to {
    transform: scaleX(1);
  }
}

.defiler {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(251, 248, 243, 0.72);
  text-decoration: none;
}

.defiler svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  animation: respire 2.4s var(--courbe) infinite;
}

@keyframes respire {
  0%,
  100% {
    transform: translateY(-2px);
    opacity: 0.6;
  }
  50% {
    transform: translateY(3px);
    opacity: 1;
  }
}

@media (max-width: 700px) {
  .defiler span {
    display: none;
  }
}

/* ---------- En-tête de page intérieure ---------- */

.entete-page {
  position: relative;
  isolation: isolate;
  background: var(--encre-nuit);
  color: var(--papier);
  display: grid;
  align-items: end;
  min-height: clamp(26rem, 62vh, 40rem);
  overflow: clip;
}

.entete-page picture,
.entete-page picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.entete-page img {
  height: 100%;
  object-fit: cover;
}

.entete-page::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(8, 12, 18, 0.92) 0%, rgba(8, 12, 18, 0.5) 45%, rgba(8, 12, 18, 0.34) 100%);
}

.entete-page-inn {
  width: min(100% - 2 * var(--marge), var(--large));
  margin-inline: auto;
  padding-block: clamp(3.5rem, 8vh, 6rem);
}

.entete-page h1 {
  font-size: var(--t-1);
  color: var(--papier);
  max-width: 17ch;
}

.entete-page .chapeau {
  color: var(--or-clair);
}

.entete-page p {
  max-width: 48ch;
  margin: 1.5rem 0 0;
  font-size: var(--t-chapo);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(251, 248, 243, 0.85);
}

/* ---------- Boutons et liens ---------- */

.bouton {
  --fond: var(--encre);
  --sur: var(--papier);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.7rem;
  border: 1px solid var(--fond);
  background: var(--fond);
  color: var(--sur);
  font-family: var(--sans);
  font-size: 0.755rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.45s var(--courbe), border-color 0.45s var(--courbe);
}

/* Un voile d'or remonte du bas au survol : la couleur change sans que le
   bouton bouge, donc sans déranger la ligne de texte qui l'entoure. */
.bouton::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--or);
  transform: translateY(101%);
  transition: transform 0.45s var(--courbe);
}

.bouton:hover::before,
.bouton:focus-visible::before {
  transform: none;
}

.bouton:hover,
.bouton:focus-visible {
  color: var(--encre-nuit);
  border-color: var(--or);
}

.bouton svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: square;
}

.bouton--fantome {
  --fond: transparent;
  --sur: currentColor;
  border-color: currentColor;
}

.bouton--clair {
  --fond: var(--papier);
  --sur: var(--encre);
}

.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--sans);
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--or);
  padding-bottom: 0.4rem;
  border-bottom: 1px solid currentColor;
  transition: gap 0.4s var(--courbe), color 0.3s;
}

.lien-fleche:hover {
  gap: 1.2rem;
}

.lien-fleche svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
}

.fond-nuit .lien-fleche {
  color: var(--or-clair);
}

.lien-souligne {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 1px;
  transition: background-size 0.45s var(--courbe);
}

.lien-souligne:hover {
  background-size: 0 1px;
  background-position: 100% 100%;
}

/* Les liens dans le corps du texte : filet d'or discret sous la ligne. */
.prose a {
  color: inherit;
  text-decoration: none;
  box-shadow: inset 0 -1px 0 0 var(--or-clair);
  transition: box-shadow 0.35s var(--courbe), color 0.35s;
}

.prose a:hover {
  box-shadow: inset 0 -1.7em 0 0 rgba(201, 167, 95, 0.28);
}

/* ---------- Corps de texte ---------- */

.prose {
  max-width: var(--colonne);
}

.prose > p:last-child {
  margin-bottom: 0;
}

.chapo {
  font-size: var(--t-chapo);
  font-weight: 300;
  line-height: 1.62;
  color: var(--encre);
}

.prose--large {
  max-width: 46rem;
}

/* ---------- Manifeste ---------- */

.manifeste {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 900px) {
  .manifeste {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  }
}

.manifeste h2 {
  font-size: var(--t-2);
  max-width: 13ch;
}

.manifeste-texte {
  max-width: 40rem;
}

/* ---------- Les trois piliers ---------- */

.piliers {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--trait);
}

@media (min-width: 860px) {
  .piliers {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pilier {
  position: relative;
  padding: clamp(2.1rem, 3.4vw, 3.2rem) 0;
  border-bottom: 1px solid var(--trait);
}

@media (min-width: 860px) {
  .pilier {
    padding: clamp(2.6rem, 3.4vw, 3.6rem) clamp(1.6rem, 2.6vw, 2.8rem);
    border-bottom: 0;
    border-right: 1px solid var(--trait);
  }

  .pilier:first-child {
    padding-left: 0;
  }

  .pilier:last-child {
    border-right: 0;
    padding-right: 0;
  }
}

.pilier-num {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--or);
  margin-bottom: 1.5rem;
}

.pilier h3 {
  font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.5rem);
  margin-bottom: 0.9rem;
}

.pilier p {
  margin: 0;
  color: var(--texte-doux);
  max-width: 34ch;
}

/* ---------- Bloc image + texte ---------- */

.diptyque {
  display: grid;
  gap: clamp(2.2rem, 5vw, 4.5rem);
  align-items: center;
}

@media (min-width: 940px) {
  .diptyque {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .diptyque--inverse .diptyque-image {
    order: 2;
  }
}

.diptyque-image {
  position: relative;
  overflow: hidden;
}

.diptyque-image img {
  width: 100%;
  aspect-ratio: 4 / 3.15;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.4s var(--courbe);
}

.diptyque-image:hover img {
  transform: scale(1.06);
}

/* Un filet d'or qui borde l'image et se décale — le geste qui donne
   l'impression d'une image encadrée plutôt que posée. */
.diptyque-image::after {
  content: '';
  position: absolute;
  inset: clamp(0.7rem, 1.6vw, 1.2rem);
  /* L'or tient sur une photo claire comme sur une photo sombre, là où un
     filet blanc disparaîtrait sur la première. */
  border: 1px solid rgba(201, 167, 95, 0.5);
  pointer-events: none;
}

.diptyque h2 {
  font-size: var(--t-2);
  margin-bottom: 1.6rem;
  max-width: 15ch;
}

/* ---------- Citation ---------- */

.citation {
  /* <figure> porte une marge latérale par défaut : sans cette remise à zéro,
     le bandeau pleine largeur laisserait deux bandes d'ivoire sur les côtés. */
  margin: 0;
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--encre-nuit);
  color: var(--papier);
  padding-block: clamp(5.5rem, 4rem + 8vw, 12rem);
}

.citation picture,
.citation picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.citation img {
  height: 100%;
  object-fit: cover;
  opacity: 0.26;
  transform: scale(1.12);
  will-change: transform;
}

.citation::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 90% at 50% 40%, rgba(8, 12, 18, 0.5) 0%, rgba(8, 12, 18, 0.9) 70%);
}

.citation-inn {
  width: min(100% - 2 * var(--marge), 58rem);
  margin-inline: auto;
  text-align: center;
}

.citation blockquote {
  margin: 0;
  font-family: var(--titre);
  font-size: clamp(1.45rem, 1.05rem + 1.65vw, 2.55rem);
  line-height: 1.42;
  letter-spacing: -0.005em;
  color: var(--papier);
}

.fleuron {
  display: block;
  width: 7rem;
  height: auto;
  margin: 0 auto clamp(1.8rem, 3.4vw, 2.8rem);
  fill: var(--or-clair);
  stroke: var(--or-clair);
  stroke-width: 1;
}

.fleuron path:first-child {
  stroke-dasharray: 34;
  stroke-dashoffset: 34;
  transition: stroke-dashoffset 1.1s var(--courbe) 0.2s;
}

.vu .fleuron path:first-child {
  stroke-dashoffset: 0;
}

.citation figcaption {
  margin-top: clamp(1.8rem, 3.4vw, 2.8rem);
  font-family: var(--sans);
  font-size: var(--t-petit);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--or-clair);
}

.citation figcaption span {
  display: block;
  margin-top: 0.6rem;
  letter-spacing: 0.07em;
  text-transform: none;
  font-size: 0.8rem;
  color: var(--texte-nuit);
}

.citation figcaption a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--trait-nuit);
}

/* ---------- Filiation ---------- */

.filiation {
  display: grid;
  gap: 0;
  counter-reset: etape;
}

.etape {
  display: grid;
  gap: clamp(0.8rem, 2vw, 3rem);
  padding-block: clamp(2rem, 3.4vw, 3.2rem);
  border-top: 1px solid var(--trait);
  align-items: start;
}

.etape:last-child {
  border-bottom: 1px solid var(--trait);
}

@media (min-width: 820px) {
  .etape {
    grid-template-columns: 12rem minmax(0, 1fr) minmax(0, 1.25fr);
  }
}

.etape-annee {
  font-family: var(--titre);
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.15rem);
  line-height: 1.1;
  color: var(--or);
}

.etape h3 {
  font-size: var(--t-3);
  max-width: 18ch;
}

.etape p {
  margin: 0;
  color: var(--texte-doux);
}

/* ---------- Ressources ---------- */

.grille-ressources {
  display: grid;
  gap: clamp(2rem, 3.4vw, 3.4rem) clamp(1.5rem, 2.6vw, 2.6rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}

.carte {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.carte-image {
  position: relative;
  overflow: hidden;
  background: var(--papier-3);
  margin-bottom: 1.5rem;
}

.carte-image img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 1.1s var(--courbe);
}

.carte:hover .carte-image img {
  transform: scale(1.06);
}

.carte-genre {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 0.55rem 0.95rem;
  background: var(--papier);
  color: var(--or);
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.fond-2 .carte-genre {
  background: var(--papier-2);
}

.carte h3 {
  font-size: var(--t-3);
  margin-bottom: 0.7rem;
  transition: color 0.35s;
}

.carte:hover h3 {
  color: var(--or);
}

.carte p {
  margin: 0 0 1.2rem;
  color: var(--texte-doux);
  font-size: 0.97rem;
  line-height: 1.68;
}

.carte-pied {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--trait);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--sans);
  font-size: 0.71rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--texte-doux);
}

.carte-pied svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: var(--or);
  stroke-width: 1.3;
  transition: transform 0.45s var(--courbe);
}

.carte:hover .carte-pied svg {
  transform: translateX(4px);
}

/* ---------- Fiche d'une ressource ---------- */

.fiche {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

@media (min-width: 940px) {
  .fiche {
    grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
  }
}

.fiche-aside {
  position: sticky;
  top: 7rem;
  display: grid;
  gap: 1.5rem;
}

.fiche-aside img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.encart {
  padding: clamp(1.5rem, 2.6vw, 2rem);
  background: var(--papier-2);
  border-top: 2px solid var(--or);
}

.encart h2 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.encart p {
  font-size: 0.93rem;
  color: var(--texte-doux);
  margin-bottom: 1.3rem;
}

.encart .bouton {
  width: 100%;
  justify-content: center;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin: 0 0 clamp(1.8rem, 3vw, 2.6rem);
  padding: 0;
  list-style: none;
  font-family: var(--sans);
  font-size: var(--t-petit);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--texte-doux);
}

.meta li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.meta li + li::before {
  content: '';
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--or);
}

/* ---------- Appel de contact ---------- */

.appel {
  position: relative;
  text-align: center;
  padding-block: clamp(4.5rem, 3rem + 7vw, 9rem);
  background: var(--encre);
  color: var(--texte-nuit);
  overflow: clip;
}

.appel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 50% 120%, rgba(201, 167, 95, 0.16), transparent 70%);
  pointer-events: none;
}

.appel-inn {
  position: relative;
  width: min(100% - 2 * var(--marge), 48rem);
  margin-inline: auto;
}

.appel h2 {
  font-size: var(--t-2);
  color: var(--papier);
  margin-bottom: 1.3rem;
}

.appel p {
  margin-bottom: 2.4rem;
  font-size: var(--t-chapo);
  font-weight: 300;
  line-height: 1.6;
}

/* ---------- Contact ---------- */

.contact {
  display: grid;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

@media (min-width: 960px) {
  .contact {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

.champ {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.champ label {
  font-family: var(--sans);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--texte-doux);
}

.champ input,
.champ textarea {
  width: 100%;
  padding: 0.85rem 0;
  border: 0;
  border-bottom: 1px solid var(--trait);
  background: transparent;
  color: var(--texte);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.6;
  border-radius: 0;
  transition: border-color 0.35s var(--courbe);
}

.champ textarea {
  resize: vertical;
  min-height: 9rem;
}

.champ input:focus,
.champ textarea:focus {
  outline: none;
  border-color: var(--or);
}

.champ input:focus-visible,
.champ textarea:focus-visible {
  outline: none;
}

.formulaire-etat {
  margin: 1.2rem 0 0;
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.6;
  min-height: 1.5rem;
}

.formulaire-etat[data-ton='ok'] {
  color: #2f6b45;
}

.formulaire-etat[data-ton='erreur'] {
  color: #9c2f2f;
}

.coord-bloc + .coord-bloc {
  margin-top: 2.4rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--trait);
}

.coord-bloc address {
  font-style: normal;
  line-height: 1.85;
}

.carte-lieu {
  margin-top: 2.6rem;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--trait);
  filter: grayscale(1) contrast(0.95);
  transition: filter 0.6s var(--courbe);
}

.carte-lieu:hover {
  filter: none;
}

.carte-lieu iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Lettre d'information ---------- */

.lettre {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border-bottom: 1px solid var(--trait-nuit);
  transition: border-color 0.35s;
}

.lettre:focus-within {
  border-color: var(--or-clair);
}

.lettre input {
  padding: 0.7rem 0;
  border: 0;
  background: transparent;
  color: var(--papier);
  font-family: var(--serif);
  font-size: 0.98rem;
}

.lettre input::placeholder {
  color: rgba(251, 248, 243, 0.35);
}

.lettre input:focus {
  outline: none;
}

.lettre button {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--or-clair);
  cursor: pointer;
}

.lettre button svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  transition: transform 0.4s var(--courbe);
}

.lettre button:hover svg {
  transform: translateX(3px);
}

.lettre-etat {
  grid-column: 1 / -1;
  margin: 0.6rem 0 0;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--or-clair);
  min-height: 1.2rem;
}

/* ---------- Pied de page ---------- */

.pied {
  background: var(--encre-nuit);
  color: var(--texte-nuit);
  padding: clamp(3.5rem, 6vw, 6rem) 0 2rem;
  font-size: 0.95rem;
}

.pied > * {
  width: min(100% - 2 * var(--marge), var(--large));
  margin-inline: auto;
}

.pied-haut {
  display: grid;
  gap: clamp(2.4rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.8rem, 5vw, 4rem);
}

@media (min-width: 900px) {
  .pied-haut {
    grid-template-columns: 1.5fr 1fr 1.2fr 1.5fr;
  }
}

.pied .marque {
  color: var(--papier);
}

.pied .embleme {
  width: 2.5rem;
  height: 2.5rem;
  stroke: var(--or-clair);
}

.pied .marque-l1,
.pied .marque-l2 {
  font-size: 1.1rem;
}

.pied .marque-l2 {
  color: var(--or-clair);
}

.pied-devise {
  margin: 1.4rem 0 0;
  max-width: 28ch;
  line-height: 1.7;
}

.pied .chapeau {
  color: var(--or-clair);
  margin-bottom: 1.1rem;
}

.pied .chapeau::before {
  transform: none;
}

.pied ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.pied-nav a,
.pied-coord a {
  text-decoration: none;
  transition: color 0.3s;
}

.pied-nav a:hover,
.pied-coord a:hover {
  color: var(--or-clair);
}

.pied-coord address {
  font-style: normal;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.pied-note {
  padding-block: clamp(2.2rem, 4vw, 3rem);
  border-top: 1px solid var(--trait-nuit);
  display: grid;
  gap: 1.2rem;
}

@media (min-width: 900px) {
  .pied-note {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

.pied-note p {
  margin: 0;
  font-size: 0.895rem;
  line-height: 1.75;
  color: rgba(251, 248, 243, 0.56);
}

.pied-bas {
  padding-top: 1.8rem;
  border-top: 1px solid var(--trait-nuit);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: rgba(251, 248, 243, 0.45);
}

.pied-bas p {
  margin: 0;
}

.pied-bas a {
  text-decoration: none;
}

.pied-bas a:hover {
  color: var(--or-clair);
}

/* ---------- Page 404 ---------- */

.erreur {
  min-height: 78svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 9rem var(--marge) 5rem;
}

.erreur .erreur-num {
  /* Sélecteur porté à la même spécificité que `.erreur p`, qui suit et
     imposerait sinon sa couleur de texte courant au chiffre. */
  font-family: var(--titre);
  font-size: clamp(5rem, 16vw, 11rem);
  line-height: 1;
  color: #e6dbc9;
  margin-bottom: 0;
}

.erreur h1 {
  font-size: var(--t-2);
  margin: 1rem 0 1.2rem;
}

.erreur p {
  max-width: 40ch;
  margin-inline: auto;
  color: var(--texte-doux);
}

/* ---------- Apparitions au défilement ---------- */

.monte {
  opacity: 0;
  transform: translateY(1.6rem);
  transition: opacity 0.85s var(--courbe), transform 0.85s var(--courbe);
  transition-delay: var(--d, 0ms);
}

.monte.vu {
  opacity: 1;
  transform: none;
}

/* ---------- Mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .monte,
  .ligne > span,
  .voile-nav li {
    opacity: 1;
    transform: none;
  }

  .scene img {
    transform: none;
  }

  .citation img {
    transform: scale(1.02);
  }
}


/* =========================================================================
   Classes de réglage
   -------------------------------------------------------------------------
   La CSP du site interdit les attributs `style` : ce qui serait ailleurs une
   valeur posée en ligne — un décalage d'apparition, une marge de section —
   se nomme ici une fois et se réutilise.
   ========================================================================= */

/* Décalages d'apparition, par pas de 90 ms. */
.d0 { --d: 0ms; }
.d1 { --d: 90ms; }
.d2 { --d: 180ms; }
.d3 { --d: 270ms; }
.d4 { --d: 360ms; }
.d5 { --d: 450ms; }

/* Rang d'une entrée dans le menu plein écran, et d'une ligne de titre. */
.i0 { --i: 0; }
.i1 { --i: 1; }
.i2 { --i: 2; }
.i3 { --i: 3; }
.i4 { --i: 4; }

.l0 { --l: 0; }
.l1 { --l: 1; }
.l2 { --l: 2; }
.l3 { --l: 3; }

.sans-marge { margin: 0; }
.apres-prose { margin-top: 2rem; }
.avant-grille { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.apres-entete { margin-top: clamp(2.5rem, 5vw, 4rem); }
.apres-manifeste { margin-top: clamp(3.5rem, 7vw, 6rem); }

/* Page d'une ressource : pas de photo pleine largeur en tête, il faut donc
   dégager soi-même la hauteur du bandeau. */
.section--haute { padding-top: clamp(7.5rem, 14vh, 11rem); }

.titre-fiche {
  font-size: var(--t-1);
  max-width: 20ch;
}

.titre-colonne {
  font-size: var(--t-2);
  margin-bottom: 1.6rem;
  max-width: 16ch;
}
