/* ============================================================
   roles.css — Les Pavillons de l'Ordre des Bannis
   La page recrutement reprend la scène d'ouverture de la chronique :
   une atmosphère de flamme, un titre taillé sur le canevas et une roue
   de trois médailles tournant autour du feu commun. Moteur :
   public/assets/js/pavilions.js
   ============================================================ */

/* ── 1. Jetons de la page ───────────────────────────────────── */
.pavilion-page{
  --pv-ink: #f8ede8;
  --pv-soft: #d3bab6;
  --pv-muted: #a1848a;
  --pv-ruby: #ff3d5c;
  --pv-ember: #ff7a3c;
  --pv-amber: #ffb340;
  --pv-gold: #ffdc9a;
  --pv-line: #ffb9a326;
  --pv-line-soft: #ffb9a312;
  --pv-glass: linear-gradient(158deg, #ffffff0e, #ffffff03 46%), #241813b0;
  --pv-flame: linear-gradient(96deg, #ff5f74 0%, #ff9a5f 46%, #ffe6b8 100%);
  --pv-display: 'Outfit', var(--font-body);
  --pv-display-big: 'Rocket Brush', 'Outfit', sans-serif;
  --pv-ease: cubic-bezier(.16, 1, .3, 1);
  --pv-progress: 0%;
  --pv-px: 0;
  --pv-py: 0;
  position: relative; z-index: 1; min-width: 0;
  padding: 0 var(--page-gutter) clamp(60px, 9vh, 130px);
  color: var(--pv-ink); font-family: var(--font-body);
}
.pavilion-page :is(h1, h2, h3, p, li){ margin: 0 }
.pavilion-page em{ font-style: normal }
/* La couche de normalisation bride les listes à 68ch : ici, les listes sont
   des grilles de mise en page, elles doivent occuper toute la colonne. */
.pavilion-page :is(ol, ul){ list-style: none; margin: 0; padding: 0; max-width: none }
.pavilion-page a:not(.pavilion-button){ color: inherit; text-decoration: none }
.pavilion-page :is(a, button):focus-visible{ outline: 2px solid var(--pv-gold); outline-offset: 5px; border-radius: 8px }

html[data-theme="light"] .pavilion-page{
  --pv-ink: #2b1a18;
  --pv-soft: #5d4642;
  --pv-muted: #8b706c;
  --pv-line: #b9544633;
  --pv-line-soft: #b954461a;
  --pv-glass: linear-gradient(158deg, #ffffffc9, #ffffff7a 46%), #fff3eadd;
}

/* ── 2. Atmosphère : puits de flamme, voûte, sol, cendres ───── */
.pavilion-atmos{ position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none }
.pavilion-shaft{
  position: absolute; top: -30%; width: 46vw; height: 150%;
  filter: blur(54px); transform: rotate(9deg);
  translate: calc(var(--pv-px) * -28px) calc(var(--pv-py) * -18px);
  animation: pv-breathe 15s ease-in-out infinite;
}
.pavilion-shaft--a{ left: 0; background: linear-gradient(178deg, #ff3d5c1f, #ff2f5700 62%) }
.pavilion-shaft--b{
  right: 0; transform: rotate(-13deg); animation-delay: -7s;
  background: linear-gradient(182deg, #ffb3401c, #ff2f5700 58%);
}
.pavilion-vault{
  position: absolute; inset: 0; display: grid; place-items: center;
  overflow: hidden; user-select: none;
  translate: calc(var(--pv-px) * 38px) calc(var(--pv-py) * 26px + var(--pv-progress) * -.28);
}
.pavilion-vault > .bi{
  font-size: clamp(320px, 42vw, 860px); line-height: 1;
  color: #ff8a4c05; opacity: .55;
  -webkit-text-stroke: 1.6px #ff8a4c1e;
  filter: drop-shadow(0 0 70px #ff5c3a14);
  rotate: 6deg;
}
.pavilion-floor{
  position: absolute; left: -25%; right: -25%; bottom: -8%; height: 44vh;
  background:
    repeating-linear-gradient(90deg, #ff8a4c14 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, #ff8a4c10 0 1px, transparent 1px 74px);
  transform: perspective(420px) rotateX(74deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000c, transparent 78%);
  mask-image: linear-gradient(to top, #000c, transparent 78%);
  animation: pv-floor 18s linear infinite;
}
.pavilion-vignette{ position: absolute; inset: 0; background: radial-gradient(ellipse 80% 64% at 50% 42%, transparent 40%, #0b0507a8 100%) }
html[data-theme="light"] .pavilion-atmos{ opacity: .5 }
html[data-theme="light"] .pavilion-vignette{ background: radial-gradient(ellipse 80% 64% at 50% 42%, transparent 44%, #6b3b2a14 100%) }

/* ── 3. Scène d'ouverture ───────────────────────────────────── */
.pavilion-stage{
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
  gap: clamp(28px, 4.4vw, 84px); align-items: center;
  max-width: 1420px; margin-inline: auto;
  padding: clamp(44px, 9vh, 108px) 0 clamp(38px, 7vh, 88px);
  container-type: inline-size;
}
/* Le filigrane se laisse tirer vers la gauche par l'avancement de la lecture. */
.pavilion-wordmark{
  position: absolute; left: 50%; bottom: -4%;
  translate: calc(-50% + var(--pv-progress) * -.5) 0;
  font-family: var(--pv-display-big); font-weight: 400;
  font-size: clamp(56px, 9vw, 162px); line-height: .82; letter-spacing: .01em;
  white-space: nowrap; color: transparent; -webkit-text-stroke: 1.2px #ffb9a31f;
  pointer-events: none; user-select: none;
}
.pavilion-stage-spark{
  position: absolute; left: 44%; top: 22%; width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle, #fff6dd, #ff9a4d 55%, #ff3d5c00);
  box-shadow: 0 0 18px 4px #ff8a4c66;
  animation: pv-float 9s ease-in-out infinite, pv-twinkle 4.6s ease-in-out infinite;
}
.pavilion-kicker{
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  border: 1px solid var(--pv-line); background: #ffffff07;
  font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--pv-amber); margin-bottom: clamp(18px, 2.6vh, 30px);
}
.pavilion-kicker > i{ height: 1px; width: 34px; background: linear-gradient(90deg, var(--pv-ember), transparent); box-shadow: 0 0 14px #ff7a3c66 }
/* Comme sur la chronique : le titre se mesure sur la scène, non sur sa colonne.
   Les deux lignes sont calibrées et débordent dans l'intervalle. */
.pavilion-page .pavilion-stage h1{
  font-family: var(--pv-display-big)!important; font-weight: 400;
  width: max-content; max-width: 112%;
  font-size: clamp(38px, 8.4cqi, 104px); line-height: 1.16;
  letter-spacing: .01em;
}
.pavilion-stage h1 em{
  background: var(--flame-text); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: pv-shimmer 9s ease-in-out infinite;
}
.pavilion-stage-copy > p{
  font-size: clamp(16px, 1.15vw, 19px); line-height: 1.85; color: var(--pv-soft);
  max-width: 46ch; margin: clamp(20px, 3vh, 32px) 0 clamp(24px, 3.6vh, 34px);
}
.pavilion-stage-actions{ display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px }

/* Bouton-flamme */
.pavilion-page .pavilion-button{
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: 15px 28px; min-height: 52px; border: 1px solid #ffd9b033; border-radius: 999px;
  background: var(--pv-flame); background-size: 200% 100%;
  color: #2a1207; font-size: 14px; font-weight: 600; letter-spacing: .01em;
  box-shadow: inset 0 1px 0 #ffffff5c, 0 12px 34px #ff5c3a3d;
  transition: background-position .6s var(--pv-ease), box-shadow .4s, color .3s;
}
.pavilion-page .pavilion-button::after{
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 34%, #ffffff8c 50%, transparent 66%);
  translate: -110% 0; transition: translate .8s var(--pv-ease);
}
.pavilion-page .pavilion-button:hover{ background-position: 100% 0; box-shadow: inset 0 1px 0 #ffffff6b, 0 16px 44px #ff7a3c66 }
.pavilion-page .pavilion-button:hover::after{ translate: 110% 0 }
.pavilion-page .pavilion-button > .bi:first-child{ font-size: 19px }
.pavilion-page .pavilion-button > .bi:last-child{ font-size: 15px }
.pavilion-text-link{ display: inline-flex; align-items: center; gap: 14px; font-size: 14px; color: var(--pv-gold); transition: color .3s, gap .35s var(--pv-ease) }
.pavilion-text-link:hover{ color: #fff3e6; gap: 20px }

/* L'état du recrutement : une braise allumée ou éteinte. */
.pavilion-status{
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 3px 13px;
  margin-top: clamp(26px, 4vh, 40px); padding: 14px 20px;
  border: 1px solid var(--pv-line-soft); border-radius: 18px;
  background: radial-gradient(ellipse 60% 100% at 0 50%, #ff7a3c14, transparent 70%), #ffffff05;
}
.pavilion-status > .bi{
  grid-row: 1 / 3; font-size: 19px; color: var(--pv-ember);
  filter: drop-shadow(0 0 12px #ff7a3c80); animation: pv-nudge 3.4s ease-in-out infinite;
}
.pavilion-status > strong{ font-size: 14px; font-weight: 600; color: var(--pv-ink) }
.pavilion-status > small{ font-size: 12px; color: var(--pv-muted) }
.pavilion-status.is-closed > .bi{ color: var(--pv-muted); filter: none; animation: none }

/* ── 4. La roue des pavillons ───────────────────────────────── */
.pavilion-wheel{
  display: grid; justify-items: center; gap: clamp(14px, 2.4vh, 24px);
  width: min(100%, 440px); justify-self: center; isolation: isolate;
}
.pavilion-wheel-field{
  position: relative; width: 100%; aspect-ratio: 1;
  perspective: 900px; container-type: inline-size;
  transform: rotateX(var(--pv-rx, 0deg)) rotateY(var(--pv-ry, 0deg));
  transform-style: preserve-3d; transition: transform .6s var(--pv-ease);
}
.pavilion-wheel-field > *{ position: absolute }
.pavilion-wheel-halo{
  inset: -7%; border-radius: 50%;
  background: radial-gradient(circle, #ff7a3c22, #ff3d5c0d 46%, transparent 70%);
  animation: pv-breathe 11s ease-in-out infinite;
}
.pavilion-wheel-core{
  inset: 31%; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid #ffb9a338;
  background: radial-gradient(circle at 50% 34%, #ffdc9a2e, #ff3d5c12 56%, transparent 74%), #170d0fa6;
  box-shadow: 0 0 70px #ff5c3a33, inset 0 0 46px #ff8a4c1f, inset 0 1px 0 #ffffff1f;
  animation: pv-core-in 1s var(--pv-ease) .12s backwards;
}
.pavilion-wheel-core > .bi{
  font-size: clamp(34px, 15cqi, 130px);
  background: var(--flame-text); background-size: 180% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 26px #ff7a3c59);
  animation: pv-float 7s ease-in-out infinite, pv-shimmer 11s ease-in-out infinite;
}
/* Un anneau qui tourne à plat : sa braise court sur le cercle sans le voiler.
   pv-spin tient la rotation, pv-ring-open joue sur opacité et scale :
   les propriétés individuelles se composent, aucune n'écrase l'autre. */
.pavilion-wheel-ring{
  border-radius: 50%;
  animation: pv-spin 58s linear infinite, pv-ring-open 1.2s var(--pv-ease) .18s backwards;
}
.pavilion-wheel-ring > i{
  position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle, #fff6dd, #ff9a4d 55%, transparent);
  box-shadow: 0 0 18px 4px #ff8a4c99;
  animation: pv-twinkle 3.2s ease-in-out infinite;
}
.pavilion-wheel-ring--a{ inset: 8%; border: 1px solid #ffb9a340 }
.pavilion-wheel-ring--b{
  inset: 22%; border: 1px dashed #ffb9a324;
  animation: pv-spin 76s linear infinite reverse, pv-ring-open 1.2s var(--pv-ease) .34s backwards;
}
.pavilion-wheel-ring--b > i{ width: 5px; height: 5px; box-shadow: 0 0 12px 2px #ffdc9a80; animation-delay: -1.4s }
/* Trois satellites autour du coeur : l'angle donne la place, le contre-angle
   redresse le blason et le nom. Le centrage passe par `margin` en pourcent —
   le champ est carré (aspect-ratio: 1), donc le pourcent de largeur vaut pour
   les deux axes — et non par `translate`, que la dérive de flottement occupe.
   `transform` reste après l'échelle de la médaille : les propriétés
   individuelles se composent, aucune n'écrase l'orbite. */
.pavilion-medal{
  --pv-angle: 0deg;
  display: grid; place-items: center;
  width: 27%; aspect-ratio: 1; border-radius: 50%;
  left: 50%; top: 50%; margin: -13.5% 0 0 -13.5%;
  transform: rotate(var(--pv-angle)) translateY(-118%);
  border: 1px solid color-mix(in srgb, var(--pv-house) 40%, transparent);
  background: radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--pv-house) 22%, transparent), transparent 68%), #170f0ecc;
  box-shadow: inset 0 1px 0 #ffffff14, 0 0 28px color-mix(in srgb, var(--pv-house) 16%, transparent);
  animation: pv-drift 8s ease-in-out infinite, pv-medal-in .8s var(--pv-ease) .6s backwards;
  transition: border-color .4s, box-shadow .4s, scale .5s var(--pv-ease);
}
.pavilion-medal--animateur{ --pv-angle: 0deg }
.pavilion-medal--moderateur{ --pv-angle: 120deg }
.pavilion-medal--administrateur{ --pv-angle: 240deg }
/* L'orbite tourne la médaille tout entière. Contre-tourner chaque enfant sur
   son propre centre redresse son glyphe mais lui laisse sa place inclinée :
   l'étiquette partait en diagonale hors du médaillon. Le pivot doit donc être
   la face, à la taille exacte du médaillon pour que ses pourcentages d'image
   se règlent comme avant. */
.pavilion-medal-face{
  width: 100%; display: grid; justify-items: center; gap: 1.4cqi;
  rotate: calc(var(--pv-angle) * -1);
}
.pavilion-medal-face > img{
  width: 58%; height: auto; object-fit: contain;
  filter: drop-shadow(0 6px 14px color-mix(in srgb, var(--pv-house) 40%, transparent));
}
.pavilion-medal-face > small{
  font-size: clamp(7px, 2.4cqi, 11px); letter-spacing: .16em; text-transform: uppercase;
  color: color-mix(in srgb, var(--pv-house) 78%, var(--pv-ink));
}
.pavilion-medal:hover{ border-color: var(--pv-house); box-shadow: inset 0 1px 0 #ffffff24, 0 0 44px color-mix(in srgb, var(--pv-house) 34%, transparent); scale: 1.08 }
.pavilion-wheel-label{ position: relative; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--pv-soft) }
.pavilion-wheel-meta{ position: relative; font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--pv-muted) }

/* ── 5. Tête de section partagée ────────────────────────────── */
.pavilion-section-head{ display: grid; justify-items: center; text-align: center; margin-bottom: clamp(30px, 5vh, 52px) }
.pavilion-page .pavilion-section-head h2,
.pavilion-page .pavilion-conditions-head h2,
.pavilion-page .pavilion-call h2{
  font-family: var(--pv-display-big)!important; font-weight: 400;
  font-size: clamp(30px, 3.4vw, 56px); line-height: 1.14; letter-spacing: .01em;
}
.pavilion-page h2 em{
  background: var(--flame-text); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.pavilion-section-head > p{ font-size: 16.5px; line-height: 1.9; color: var(--pv-muted); max-width: 62ch; margin-top: 22px }

/* ── 6. Les bases de l'engagement ───────────────────────────── */
.pavilion-conditions{
  display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 4vw, 76px); align-items: center;
  max-width: 1360px; margin: clamp(46px, 10vh, 120px) auto 0;
  padding-top: clamp(38px, 6vh, 70px); border-top: 1px solid var(--pv-line-soft);
  scroll-margin-top: 40px;
}
.pavilion-page .pavilion-conditions-head > h2{ font-size: clamp(28px, 2.8vw, 46px) }
.pavilion-bases{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px) }
.pavilion-bases li{
  position: relative; isolation: isolate;
  display: grid; justify-items: center; text-align: center; gap: 8px;
  padding: clamp(24px, 2.2vw, 32px) clamp(14px, 1.4vw, 22px);
  border: 1px solid var(--pv-line-soft); border-radius: 20px;
  background: radial-gradient(ellipse 80% 60% at 50% 0, #ff8a4c12, transparent 68%), var(--pv-glass);
  transition: opacity .7s var(--pv-ease), translate .7s var(--pv-ease), scale .35s var(--pv-ease), border-color .4s;
}
/* Sans script, rien ne se cache : la montée n'existe que si le moteur l'anime. */
.pavilion-page.pv-motion .pavilion-bases li{ opacity: 0; translate: 0 22px }
.pavilion-conditions.is-lit .pavilion-bases li{ opacity: 1; translate: 0 0 }
.pavilion-conditions.is-lit .pavilion-bases li:nth-child(2){ transition-delay: .12s }
.pavilion-conditions.is-lit .pavilion-bases li:nth-child(3){ transition-delay: .24s }
.pavilion-bases li:hover{ scale: 1.012; border-color: #ffb9a340 }
.pavilion-base-mark{
  display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 10px;
  border: 1px solid #ffb9a333; border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #ffdc9a26, transparent 70%), #ffffff08;
  box-shadow: inset 0 1px 0 #ffffff14, 0 0 22px #ff7a3c1f;
}
.pavilion-base-mark > .bi{ font-size: 22px; color: var(--pv-gold); filter: drop-shadow(0 0 10px #ffcf8f55) }
.pavilion-bases strong{ font-size: 16px; font-weight: 550; line-height: 1.5; color: var(--pv-ink) }
.pavilion-bases small{ font-size: 13px; line-height: 1.7; color: var(--pv-muted) }

/* ── 7. Les trois pavillons ─────────────────────────────────── */
.pavilion-houses{ max-width: 1420px; margin: clamp(46px, 10vh, 120px) auto 0; scroll-margin-top: 40px }
.pavilion-house-grid{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 1.8vw, 26px); align-items: stretch }
.pavilion-house{
  --pv-house: var(--pv-ember);
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; min-width: 0;
  padding: clamp(24px, 2.1vw, 34px);
  border: 1px solid color-mix(in srgb, var(--pv-house) 22%, #ffffff0a); border-radius: 26px;
  background:
    radial-gradient(ellipse 90% 52% at 50% 0, color-mix(in srgb, var(--pv-house) 10%, transparent), transparent 66%),
    var(--pv-glass);
  -webkit-backdrop-filter: blur(14px) saturate(125%); backdrop-filter: blur(14px) saturate(125%);
  box-shadow: inset 0 1px 0 #ffffff0a, 0 18px 46px #06020759;
  transition: opacity .75s var(--pv-ease), translate .75s var(--pv-ease), scale .4s var(--pv-ease), border-color .5s var(--pv-ease), box-shadow .5s var(--pv-ease);
}
.pavilion-page.pv-motion .pavilion-house{ opacity: 0; translate: 0 26px }
.pavilion-page .pavilion-house.is-lit{ opacity: 1; translate: 0 0 }
.pavilion-house:hover,.pavilion-house:focus-within{
  scale: 1.006; border-color: color-mix(in srgb, var(--pv-house) 46%, transparent);
  box-shadow: inset 0 1px 0 #ffffff12, 0 26px 62px #06020785, 0 0 46px color-mix(in srgb, var(--pv-house) 14%, transparent);
}
/* Liseré en feu au sommet de la carte. */
.pavilion-house::before{
  content: ''; position: absolute; z-index: 2; top: 0; left: 20%; right: 20%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--pv-house), transparent);
  box-shadow: 0 0 18px var(--pv-house); opacity: .55; pointer-events: none;
  transition: left .5s var(--pv-ease), right .5s var(--pv-ease), opacity .4s;
}
.pavilion-house:hover::before,.pavilion-house:focus-within::before{ left: 4%; right: 4%; opacity: 1 }
.pavilion-house-glow{
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--pv-mx, 50%) var(--pv-my, 0%), color-mix(in srgb, var(--pv-house) 16%, transparent), transparent 62%);
  transition: opacity .5s var(--pv-ease);
}
.pavilion-house:hover .pavilion-house-glow{ opacity: 1 }
.pavilion-house-watermark{ position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; pointer-events: none; user-select: none }
.pavilion-house-watermark > img{
  position: absolute; right: -18%; top: 24%; width: 78%; height: 55%; object-fit: contain;
  opacity: .05; transform: rotate(-13deg);
  transition: opacity .5s, transform .8s var(--pv-ease);
}
.pavilion-house-watermark > span{
  position: absolute; right: -6%; bottom: 8%; width: 112%;
  font-family: var(--pv-display-big); font-size: clamp(40px, 4vw, 68px); font-weight: 400;
  line-height: .92; letter-spacing: .01em; text-align: right; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--pv-house) 30%, transparent);
  opacity: .45; transform: rotate(-9deg);
  transition: opacity .5s, scale .65s var(--pv-ease), translate .65s var(--pv-ease);
}
.pavilion-house:hover .pavilion-house-watermark > img{ opacity: .1; transform: rotate(-8deg) scale(1.05) }
.pavilion-house:hover .pavilion-house-watermark > span{ opacity: .8; scale: 1.05; translate: 0 -18px }

.pavilion-house-top{ position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px }
.pavilion-house-category{ font-size: 11px; font-weight: 550; letter-spacing: .16em; text-transform: uppercase; color: color-mix(in srgb, var(--pv-house) 82%, var(--pv-ink)) }
.pavilion-house-state{
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px;
  border: 1px solid #ffdc9a33; border-radius: 999px; background: #ffb3400f;
  font-size: 11px; color: var(--pv-gold);
}
.pavilion-house-state > .bi{ font-size: 12px }
.pavilion-house-state.is-closed{ border-color: var(--pv-line); background: #ffffff04; color: var(--pv-muted) }

/* Sceau du pavillon : médaille, anneau et trigrammes en rotation lente. */
.pavilion-house-mark{ position: relative; z-index: 1; display: grid; place-items: center; height: clamp(170px, 17vw, 215px); margin: clamp(12px, 2vh, 22px) 0 }
.pavilion-house-mark > img{
  position: relative; z-index: 2; width: clamp(76px, 7vw, 104px); height: auto; object-fit: contain;
  filter: drop-shadow(0 12px 22px color-mix(in srgb, var(--pv-house) 34%, transparent));
  animation: pv-drift 7.4s ease-in-out infinite;
}
.pavilion-house-ring{
  position: absolute; width: clamp(120px, 12vw, 158px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--pv-house) 30%, transparent);
  background: radial-gradient(circle, color-mix(in srgb, var(--pv-house) 13%, transparent), transparent 70%);
  box-shadow: inset 0 0 30px color-mix(in srgb, var(--pv-house) 9%, transparent);
  transition: box-shadow .5s;
}
.pavilion-house:hover .pavilion-house-ring{ box-shadow: inset 0 0 40px color-mix(in srgb, var(--pv-house) 20%, transparent), 0 0 34px color-mix(in srgb, var(--pv-house) 16%, transparent) }
.pavilion-house-trigram{
  position: absolute; width: clamp(150px, 15.4vw, 200px); aspect-ratio: 1; border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--pv-house) 24%, transparent);
  opacity: .5; animation: pv-spin 66s linear infinite;
  transition: opacity .45s;
}
.pavilion-house:hover .pavilion-house-trigram,.pavilion-house:focus-within .pavilion-house-trigram{ opacity: .95 }
.pavilion-house-trigram > b{
  position: absolute; top: 50%; left: 50%; font-size: 13px; font-weight: 400; line-height: 1;
  color: var(--pv-house); text-shadow: 0 0 12px color-mix(in srgb, var(--pv-house) 60%, transparent);
  transform: translate(-50%, -50%) rotate(var(--pv-angle)) translateY(calc(-1 * clamp(75px, 7.7vw, 100px)));
}

.pavilion-house-tag{ position: relative; z-index: 1; font-size: 12px; line-height: 1.8; color: var(--pv-muted) }
.pavilion-house h3{
  position: relative; z-index: 1; font-family: 'Outfit', var(--font-body);
  font-size: clamp(23px, 1.9vw, 31px); font-weight: 500; line-height: 1.22; letter-spacing: -.03em;
  color: var(--pv-ink); margin-top: 8px;
}
.pavilion-house-desc{ position: relative; z-index: 1; font-size: 15.5px; line-height: 1.9; color: var(--pv-soft); margin-top: 16px }
.pavilion-house-missions{ position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; padding: 22px 0; flex: 1 }
.pavilion-house-missions li{ display: flex; gap: 11px; font-size: 14px; line-height: 1.75; color: var(--pv-soft) }
.pavilion-house-missions > li > .bi{ flex-shrink: 0; font-size: 15px; color: color-mix(in srgb, var(--pv-house) 85%, var(--pv-ink)) }
.pavilion-house-conditions{
  position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 12px;
  padding-top: 18px; border-top: 1px solid var(--pv-line-soft); font-size: 12px; color: var(--pv-muted);
}
.pavilion-house-conditions > span{ display: inline-flex; align-items: center; gap: 8px }

.pavilion-leaders{
  position: relative; z-index: 1; margin: 18px 0 22px; padding: 16px;
  border: 1px solid color-mix(in srgb, var(--pv-house) 22%, transparent); border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--pv-house) 8%, transparent), #100e1130);
}
.pavilion-leaders-label{ display: flex; align-items: center; gap: 9px; margin-bottom: 12px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--pv-house) 80%, var(--pv-ink)) }
.pavilion-leader{ display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid #ffffff0a; border-radius: 13px; background: #ffffff03 }
.pavilion-leader + .pavilion-leader{ margin-top: 9px }
.pavilion-leader > .bi{
  display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--pv-house) 32%, transparent);
  background: color-mix(in srgb, var(--pv-house) 9%, transparent);
  font-size: 17px; color: var(--pv-house);
}
.pavilion-leader strong{ display: block; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--pv-ink) }
.pavilion-leader small{ display: block; margin-top: 2px; font-size: 11px; line-height: 1.6; color: var(--pv-muted) }

.pavilion-page .pavilion-house-apply,.pavilion-house-closed{
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 54px; padding: 0 22px; border-radius: 999px; font-size: 14px;
}
.pavilion-page .pavilion-house-apply{
  border: 1px solid color-mix(in srgb, var(--pv-house) 55%, transparent);
  background: linear-gradient(120deg, color-mix(in srgb, var(--pv-house) 26%, transparent), color-mix(in srgb, var(--pv-house) 8%, transparent));
  color: color-mix(in srgb, var(--pv-house) 72%, #fff6ea); font-weight: 600;
  box-shadow: inset 0 1px 0 #ffffff1a, 0 10px 26px color-mix(in srgb, var(--pv-house) 13%, transparent);
  transition: background .4s, box-shadow .4s, color .3s, gap .4s var(--pv-ease);
}
.pavilion-page .pavilion-house-apply:hover{ background: var(--pv-house); color: #1c0f09; gap: 20px; box-shadow: 0 14px 38px color-mix(in srgb, var(--pv-house) 34%, transparent) }
.pavilion-house-closed{ border: 1px dashed var(--pv-line); color: var(--pv-muted) }

/* ── 8. Le parcours ─────────────────────────────────────────── */
.pavilion-process{ max-width: 1360px; margin: clamp(46px, 10vh, 120px) auto 0 }
.pavilion-steps{
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--pv-line-soft); border-radius: 26px;
  background: var(--pv-glass); overflow: hidden;
}
.pavilion-step{
  position: relative; display: grid; justify-items: center; text-align: center;
  gap: 6px; padding: clamp(28px, 2.8vw, 42px) clamp(20px, 2vw, 32px);
  border-right: 1px solid var(--pv-line-soft);
  transition: opacity .7s var(--pv-ease), translate .7s var(--pv-ease);
}
.pavilion-page.pv-motion .pavilion-step{ opacity: 0; translate: 0 22px }
.pavilion-page .pavilion-step.is-lit{ opacity: 1; translate: 0 0 }
.pavilion-step:last-child{ border-right: 0 }
.pavilion-step-number{
  font-family: var(--pv-display-big); font-size: clamp(34px, 3.4vw, 52px); font-weight: 400;
  line-height: 1; letter-spacing: .01em; margin-bottom: 18px;
  color: transparent; -webkit-text-stroke: 1.4px #ffb9a33d;
  transition: color .9s var(--pv-ease), -webkit-text-stroke-color .9s var(--pv-ease);
}
.pavilion-step.is-lit .pavilion-step-number{ color: var(--pv-gold); -webkit-text-stroke-color: transparent }
.pavilion-step h3{ font-family: 'Outfit', var(--font-body); font-size: clamp(19px, 1.5vw, 23px); font-weight: 450; line-height: 1.35; color: var(--pv-ink) }
.pavilion-step p{ font-size: 15px; line-height: 1.9; color: var(--pv-muted); margin-top: 14px; max-width: 34ch }

/* ── 9. L'appel ─────────────────────────────────────────────── */
.pavilion-call{
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; justify-items: center; text-align: center;
  max-width: 1080px; margin: clamp(46px, 10vh, 120px) auto 0;
  padding: clamp(42px, 6vh, 82px) clamp(24px, 4vw, 64px);
  border: 1px solid var(--pv-line); border-radius: 30px;
  background: radial-gradient(ellipse 72% 58% at 50% 108%, #ff6a3d24, transparent 70%), var(--pv-glass);
  -webkit-backdrop-filter: blur(16px) saturate(130%); backdrop-filter: blur(16px) saturate(130%);
  box-shadow: inset 0 1px 0 #ffffff0c, 0 24px 60px #06020766;
}
.pavilion-call > p{ font-size: 16.5px; line-height: 1.9; color: var(--pv-soft); max-width: 60ch; margin: 24px 0 32px }
.pavilion-call h2{ font-size: clamp(30px, 3.4vw, 56px) }
.pavilion-call h2 em{ background-size: 200% 100%; animation: pv-shimmer 8s ease-in-out infinite }
.pavilion-call-actions{ display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px }
.pavilion-call-foot{
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 26px;
  margin-top: clamp(28px, 4vh, 44px); padding-top: 24px; border-top: 1px solid var(--pv-line-soft);
}
.pavilion-call-foot a{ display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--pv-muted); transition: color .3s }
.pavilion-call-foot a:hover{ color: var(--pv-gold) }

/* Brasier */
.pavilion-brazier{ position: relative; display: block; width: 132px; height: 128px; margin-bottom: clamp(20px, 3.4vh, 34px) }
.pavilion-brazier-base{
  position: absolute; left: 50%; bottom: 0; translate: -50% 0;
  width: 96px; height: 40px; border-radius: 0 0 48px 48px;
  background: linear-gradient(180deg, #ff8a4c33, #ff3d5c14);
  border: 1px solid #ffb9a340; border-top: 2px solid #ffdc9a66;
  box-shadow: 0 0 34px #ff7a3c40, inset 0 -10px 22px #ff3d5c22;
  animation: pv-coal 4.6s ease-in-out infinite;
}
.pavilion-brazier-flame{
  position: absolute; left: 50%; bottom: 30px; translate: -50% 0;
  width: 46px; height: 78px; border-radius: 50% 50% 44% 44% / 64% 64% 36% 36%;
  background: linear-gradient(180deg, #ffdc9a, #ff8a4c 44%, #ff3d5c00);
  filter: blur(7px); opacity: .88; transform-origin: 50% 100%;
  animation: pv-flicker 2.6s ease-in-out infinite;
}
.pavilion-brazier-flame--b{ width: 28px; height: 58px; background: linear-gradient(180deg, #fff6dd, #ff9a4d 50%, transparent); animation-duration: 1.9s; animation-delay: -.6s }
.pavilion-brazier-flame--c{ width: 62px; height: 96px; opacity: .5; animation-duration: 3.4s; animation-delay: -1.3s }
.pavilion-brazier::after{
  content: ''; position: absolute; left: 50%; bottom: 92px; translate: -50% 0;
  width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 100%, #ff8a4c30, transparent 66%); opacity: .3;
}
.pavilion-call.is-lit .pavilion-brazier::after{ animation: pv-haze 5.5s ease-in-out infinite }
.pavilion-brazier-spark{
  position: absolute; left: 50%; bottom: 74px; width: 3px; height: 3px; border-radius: 50%;
  background: #ffe2ad; box-shadow: 0 0 10px 2px #ff8a4caa; opacity: 0;
}
.pavilion-call.is-lit .pavilion-brazier-spark{ animation: pv-spark 3.8s ease-out infinite }
.pavilion-brazier-spark:nth-child(2){ animation-delay: -1.3s; --pv-spark-drift: -12px }
.pavilion-brazier-spark:nth-child(3){ animation-delay: -2.5s; --pv-spark-drift: 14px }

/* ── 10. Thème clair ────────────────────────────────────────── */
html[data-theme="light"] .pavilion-kicker{ color: #b95446; background: #b954460a }
html[data-theme="light"] .pavilion-kicker > i{ background: linear-gradient(90deg, #ff7a3c, transparent); box-shadow: 0 0 14px #ff7a3c4d }
html[data-theme="light"] .pavilion-wordmark{ -webkit-text-stroke-color: #b954462e }
html[data-theme="light"] .pavilion-vault > .bi{ color: #ff8a4c0a; -webkit-text-stroke-color: #c2643f2b }
html[data-theme="light"] .pavilion-wheel-ring--a{ border-color: #b9544647 }
html[data-theme="light"] .pavilion-wheel-ring--b{ border-color: #b954462e }
html[data-theme="light"] .pavilion-wheel-core{
  border-color: #b9544655;
  background: radial-gradient(circle at 50% 34%, #ffdc9a66, #ff3d5c22 56%, transparent 76%), #fff3ea;
  box-shadow: 0 0 46px #ff7a3c33, inset 0 0 30px #ff8a4c1a, inset 0 1px 0 #fff;
}
html[data-theme="light"] .pavilion-medal{ background: radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--pv-house) 26%, transparent), transparent 68%), #fff3ea }
html[data-theme="light"] .pavilion-medal-face > small{ color: color-mix(in srgb, var(--pv-house) 70%, #2b1a18) }
html[data-theme="light"] .pavilion-base-mark{ background: radial-gradient(circle at 50% 30%, #ffdc9a55, transparent 70%), #ffffff8c }
html[data-theme="light"] .pavilion-base-mark > .bi{ color: #c2643f }
html[data-theme="light"] .pavilion-house-watermark > img{ opacity: .035 }
html[data-theme="light"] .pavilion-house-watermark > span{ -webkit-text-stroke-color: color-mix(in srgb, var(--pv-house) 24%, transparent) }
html[data-theme="light"] .pavilion-step-number{ -webkit-text-stroke-color: #b9544640 }
html[data-theme="light"] .pavilion-step.is-lit .pavilion-step-number{ color: #c9702f; -webkit-text-stroke-color: transparent }
html[data-theme="light"] .pavilion-leader{ background: #ffffff7a; border-color: #b9544620 }
/* Sur fond clair, les teintes maison doivent s'assombrir : délavées, elles
   disparaissent dans le papier et l'action devient illisible. */
html[data-theme="light"] .pavilion-house-state{ border-color: #c2643f3d; background: #ffb3401f; color: #9c551f }
html[data-theme="light"] .pavilion-page .pavilion-house-apply{
  background: linear-gradient(120deg, color-mix(in srgb, var(--pv-house) 22%, transparent), color-mix(in srgb, var(--pv-house) 7%, #ffffffcc));
  color: color-mix(in srgb, var(--pv-house) 76%, #2b1a18);
  box-shadow: inset 0 1px 0 #ffffffcc, 0 10px 26px color-mix(in srgb, var(--pv-house) 14%, transparent);
}

/* ── 11. Mouvements ────────────────────────────────────────────
   Deux règles gouvernent la page, identiques à la chronique :
   1. fx.js verrouille « transform » sur les cartes révélées au scroll ;
      les montées passent donc par « translate » et « scale ».
   2. Aucun filtre ni transform n'est posé sur un ancêtre d'un calque fixe :
      la voûte et les puits de flamme ne bougent que via des variables.
   ─────────────────────────────────────────────────────────────── */
@keyframes pv-shimmer { 0%, 100% { background-position: 0% 50% } 50% { background-position: 100% 50% } }
@keyframes pv-breathe { 0%, 100% { opacity: .55 } 50% { opacity: 1 } }
@keyframes pv-float { 0%, 100% { translate: 0 0 } 50% { translate: 0 -10px } }
@keyframes pv-drift { 0%, 100% { translate: 0 0 } 50% { translate: 0 -9px } }
@keyframes pv-floor { from { background-position: 0 0, 0 0 } to { background-position: 0 92px, 74px 0 } }
@keyframes pv-rise { from { opacity: 0; translate: 0 26px } to { opacity: 1; translate: 0 0 } }
@keyframes pv-spin { from { transform: rotate(0) } to { transform: rotate(360deg) } }
@keyframes pv-core-in { from { opacity: 0; scale: .74 } to { opacity: 1; scale: 1 } }
@keyframes pv-ring-open { from { opacity: 0; scale: .58 } to { opacity: 1; scale: 1 } }
@keyframes pv-medal-in { from { opacity: 0; scale: .62 } to { opacity: 1; scale: 1 } }
@keyframes pv-twinkle { 0%, 100% { opacity: .45; scale: .72 } 50% { opacity: 1; scale: 1.18 } }
@keyframes pv-nudge { 0%, 100% { translate: 0 -2px } 50% { translate: 0 3px } }
@keyframes pv-flicker {
  0%, 100% { scale: 1 1; skewX: 0deg }
  30% { scale: 1.06 .94; skewX: 3deg }
  60% { scale: .95 1.07; skewX: -3deg }
}
@keyframes pv-haze { 0%, 100% { opacity: .22; scale: .94 } 50% { opacity: .6; scale: 1.1 } }
@keyframes pv-spark {
  0% { opacity: 0; translate: 0 0 }
  16% { opacity: 1 }
  100% { opacity: 0; translate: var(--pv-spark-drift, 8px) -96px }
}
@keyframes pv-coal { 0%, 100% { box-shadow: 0 0 34px #ff7a3c40, inset 0 -10px 22px #ff3d5c22 } 50% { box-shadow: 0 0 52px #ff8a4c66, inset 0 -12px 26px #ff3d5c33 } }

/* Chorégraphie de l'ouverture : la scène se monte dans l'ordre du récit. */
.pavilion-stage-copy > .pavilion-kicker{ animation: pv-rise .8s var(--pv-ease) .05s backwards }
.pavilion-stage h1{ animation: pv-rise .95s var(--pv-ease) .18s backwards }
.pavilion-stage-copy > p{ animation: pv-rise .9s var(--pv-ease) .38s backwards }
.pavilion-stage-actions{ animation: pv-rise .9s var(--pv-ease) .52s backwards }
.pavilion-status{ animation: pv-rise .9s var(--pv-ease) .66s backwards }
.pavilion-wheel-halo{ animation: pv-breathe 11s ease-in-out infinite, pv-ring-open 1.4s var(--pv-ease) .1s backwards }
.pavilion-wheel-label{ animation: pv-rise .9s var(--pv-ease) .8s backwards }
.pavilion-wheel-meta{ animation: pv-rise .9s var(--pv-ease) .88s backwards }

/* ── 12. Très grands écrans : on rend la largeur, pas la taille ─ */
@media (min-width: 1900px) {
  .pavilion-stage{ max-width: 1720px; grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr); gap: clamp(70px, 3.8vw, 96px) }
  .pavilion-page .pavilion-stage h1{ font-size: clamp(100px, 7.4cqi, 122px); max-width: none }
  .pavilion-stage-copy > p{ font-size: 19px; max-width: 48ch }
  .pavilion-page .pavilion-button{ padding: 16px 30px; font-size: 14px }
  .pavilion-text-link{ font-size: 15px }
  .pavilion-status{ margin-top: 34px }
  .pavilion-status > strong{ font-size: 15px }
  .pavilion-wheel{ width: min(100%, 580px) }
  .pavilion-wheel-label{ font-size: 13px }
  .pavilion-wheel-meta{ font-size: 10px }
  .pavilion-wordmark{ font-size: clamp(150px, 8.6vw, 200px) }
  .pavilion-conditions,.pavilion-process,.pavilion-houses,.pavilion-call{ max-width: 1660px }
  .pavilion-page .pavilion-section-head h2,
  .pavilion-page .pavilion-conditions-head h2,
  .pavilion-page .pavilion-call h2{ font-size: clamp(36px, 2.8vw, 62px) }
  .pavilion-bases li{ padding: 34px 24px }
  .pavilion-bases strong{ font-size: 17px }
  .pavilion-house{ padding: 36px }
  .pavilion-house h3{ font-size: 34px }
  .pavilion-house-desc{ font-size: 16.5px }
  .pavilion-house-missions li{ font-size: 15px }
  .pavilion-step p{ font-size: 16px }
  .pavilion-call > p{ font-size: 17.5px }
}
@media (min-width: 2400px) {
  .pavilion-stage{ max-width: 1980px }
  .pavilion-wheel{ width: min(100%, 660px) }
  .pavilion-conditions,.pavilion-process,.pavilion-houses{ max-width: 1900px }
}

/* ── 13. Repli : la scène devient colonne, les grilles s'empilent ── */
@media (max-width: 1100px) {
  .pavilion-house-grid{ grid-template-columns: minmax(0, 1fr); max-width: 720px; margin-inline: auto }
  .pavilion-conditions{ grid-template-columns: minmax(0, 1fr); gap: 34px }
  .pavilion-conditions-head{ text-align: center }
  .pavilion-conditions-head > .pavilion-kicker{ justify-content: center }
  .pavilion-steps{ grid-template-columns: minmax(0, 1fr) }
  .pavilion-step{ border-right: 0; border-bottom: 1px solid var(--pv-line-soft) }
  .pavilion-step:last-child{ border-bottom: 0 }
}
@media (max-width: 860px) {
  .pavilion-stage{ grid-template-columns: minmax(0, 1fr); gap: clamp(34px, 6vw, 60px); padding-top: clamp(30px, 6vh, 60px) }
  .pavilion-page .pavilion-stage h1{ width: auto; max-width: none; font-size: clamp(38px, 9cqi, 72px) }
  .pavilion-wheel{ width: min(100%, 400px) }
  /* En colonne, la prose occupe toute la largeur : le filigrane descend
     sous la roue plutôt que de se coucher dans les paragraphes. */
  .pavilion-wordmark{ top: auto; bottom: 0; font-size: clamp(58px, 19vw, 150px); opacity: .5 }
  .pavilion-call-foot{ justify-content: flex-start; text-align: left }
}
@media (max-width: 700px) {
  .pavilion-page .pavilion-stage h1{ font-size: clamp(36px, 10.5vw, 56px) }
  .pavilion-page .pavilion-section-head h2,
  .pavilion-page .pavilion-conditions-head h2,
  .pavilion-page .pavilion-call h2{ font-size: 28px }
  .pavilion-bases{ grid-template-columns: minmax(0, 1fr); max-width: 460px; margin-inline: auto }
  .pavilion-page .pavilion-button{ width: 100% }
  .pavilion-stage-actions{ flex-direction: column; align-items: stretch; gap: 14px }
  .pavilion-text-link{ justify-content: center }
  .pavilion-call-actions{ flex-direction: column; align-items: stretch; gap: 14px }
  .pavilion-house-mark{ height: 190px }
}

/* ── 14. Accessibilité : mouvement et transparence réduits ──── */
@media (prefers-reduced-motion: reduce) {
  /* Coup de filet unique : les états composés (:hover, .is-lit) ont une
     spécificité trop haute pour être égalée sans répéter le namespace. */
  .pavilion-page :where(*, *::before, *::after){ animation: none !important; transition: none !important }
  .pavilion-page .pavilion-wheel-field{ transform: none }
  .pavilion-page .pavilion-button::after,.pavilion-brazier-spark{ display: none }
  .pavilion-page.pavilion-page :is(.pavilion-house, .pavilion-bases li, .pavilion-step){ opacity: 1; translate: none }
}
@media (prefers-reduced-transparency: reduce) {
  .pavilion-atmos{ display: none }
  .pavilion-house,.pavilion-bases li,.pavilion-steps,.pavilion-call,.pavilion-status,.pavilion-medal{
    background: var(--pure-surface); -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .pavilion-house-watermark{ display: none }
}
