/* Polices hébergées sur le site : aucune requête vers Google */
@font-face {
  font-family: "Cinzel"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(../fonts/cinzel-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cinzel"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(../fonts/cinzel-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400 500; font-display: swap;
  src: url(../fonts/cormorant-garamond-italique-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400 500; font-display: swap;
  src: url(../fonts/cormorant-garamond-italique-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(../fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(../fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --creme: #EFE3C9;
  --sable: #E4D5B4;
  --encre: #201A12;
  --vert: #1C2A26;
  --terre: #9B4722;
  --or: #C6A874;
  --or-pale: #D8BC85;
  --brun: #4E4130;
  --sourdine: #B7A783;
  --papier: #FBF5E6;
  --filet: rgba(198, 168, 116, .3);

  --serif: Cinzel, "Trajan Pro", Georgia, serif;
  --italic: "Cormorant Garamond", Georgia, serif;
  --sans: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;

  --marge: clamp(16px, 3vw, 40px);
  --section: clamp(72px, 10vw, 136px);
  --entete: 60px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--entete); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--creme); color: var(--encre); font: 400 16px/1.5 var(--sans); overflow-x: clip; }
body.menu-ouvert { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--encre); color: var(--papier); }

/* En-tête : le logo, les langues, un seul lien */
.entete {
  position: sticky; top: 0; z-index: 30;
  height: var(--entete); padding: 0 var(--marge);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--creme); border-bottom: 1px solid var(--encre);
}
.marque img { width: 40px; height: 40px; }
.entete-droite { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); font-size: 12px; }
.langues { display: flex; gap: 2px; }
.langues a { min-width: 30px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; color: var(--brun); }
.langues a:hover { color: var(--encre); text-decoration: underline; text-underline-offset: 3px; }
.langues a[aria-current="page"] { color: var(--terre); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.lien-menu { min-height: 40px; font-size: 12px; font-weight: 500; }
.lien-menu:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Menu plein écran : une salle noire */
.menu {
  position: fixed; inset: var(--entete) 0 0; z-index: 25; overflow-y: auto;
  padding: clamp(24px, 5vw, 64px) var(--marge);
  background: var(--encre); color: var(--papier);
  display: flex; flex-direction: column; align-items: flex-start; gap: 32px;
}
.menu[hidden] { display: none; }
.menu ol { width: 100%; }
.menu li { border-bottom: 1px solid var(--filet); }
.menu li a { display: flex; align-items: baseline; gap: 20px; padding: 12px 0; }
.menu li a:hover b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; }
.menu li span { width: 36px; flex: none; font-size: 12px; color: var(--sourdine); }
.menu li b { font: 500 clamp(30px, 5.2vw, 58px)/1.1 var(--serif); letter-spacing: -.01em; }

/* Éléments communs */
.pilule {
  display: inline-block; padding: 12px 22px; border-radius: 28.8px;
  background: var(--terre); color: var(--papier); font-size: 13px; line-height: 1.25;
  transition: background-color .2s, color .2s;
}
.pilule:hover { background: var(--encre); }
.pilule-claire { background: var(--or); color: var(--encre); }
.pilule-claire:hover { background: var(--papier); color: var(--encre); }
.lien-texte { font-size: 14px; font-weight: 500; }
.lien-texte:hover { text-decoration: underline; text-underline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.surtitre { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--terre); }
.salle-noire .surtitre, .tabula .surtitre { color: var(--or); }

.salle-noire, .salle-claire { position: relative; isolation: isolate; overflow: hidden; }
.salle-noire { background: var(--encre) url(../img/decor/motif-sombre.svg) 50% 0 / 480px; color: var(--papier); padding: calc(clamp(28px, 3vw, 40px) + 30px) var(--marge) var(--section); }
/* Frise de méandres en tête de chaque salle */
.salle-noire::before, .salle-claire::before, .pied::before {
  content: ""; position: absolute; z-index: 1; top: 0; left: 0; right: 0; height: 30px;
  background: url(../img/decor/frise.svg) 0 0 / 52px 30px repeat-x;
}
/* Inscriptions latines géantes en filigrane */
[data-fantome]::after {
  content: attr(data-fantome); position: absolute; z-index: -3; left: 50%; bottom: -.1em; transform: translateX(-50%);
  font: 500 clamp(110px, 25vw, 400px)/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; pointer-events: none;
  color: transparent; -webkit-text-stroke: 1.5px rgba(198, 168, 116, .3);
}
.salle-claire[data-fantome]::after { -webkit-text-stroke-color: rgba(155, 71, 34, .2); }
#galerie { padding-top: clamp(210px, 18vw, 250px); }
.sechage.avec-corde { padding-top: clamp(230px, 21vw, 270px); }
.salle-claire { background: var(--creme) url(../img/decor/motif-clair.svg) 50% 0 / 480px; padding: calc(clamp(28px, 3vw, 40px) + 30px) var(--marge) var(--section); }
.coins {
  display: flex; justify-content: space-between; gap: 24px;
  margin-bottom: clamp(56px, 8vw, 104px);
  font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--terre);
}
.salle-noire .coins { color: var(--or); }
/* Couronne de laurier derrière les grands titres */
.titre { position: relative; }
.titre::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: min(700px, 96vw); aspect-ratio: 900 / 520;
  transform: translate(-50%, -46%); background: url(../img/decor/laurier-clair.svg) center / contain no-repeat;
}
.salle-noire .titre::before { background-image: url(../img/decor/laurier-sombre.svg); }
.titre {
  max-width: 15em; margin: 0 auto;
  font: 500 clamp(40px, 6.6vw, 94px)/.98 var(--serif); letter-spacing: -.012em;
  text-align: center; text-wrap: balance;
}
.titre-moyen { font: 500 clamp(34px, 3.9vw, 52px)/1.02 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.chapo { max-width: 34em; margin: clamp(24px, 3vw, 36px) auto 0; text-align: center; text-wrap: pretty; color: var(--sourdine); }

/* Héros : un petit groupe centré au-dessus du mot géant */
.heros-scene { background: var(--creme) url(../img/decor/motif-clair.svg) 50% 0 / 480px; position: relative; display: flex; flex-direction: column; overflow: hidden; }
.heros-centre {
  position: relative; z-index: 3;
  padding: clamp(20px, 3vh, 36px) var(--marge) clamp(14px, 2vh, 24px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.heros h1 { position: relative; font-size: inherit; font-weight: inherit; }
.heros h1 .surtitre { display: block; }
.h1-slogan { display: block; margin-top: 14px; font: 500 clamp(34px, 3.9vw, 52px)/1.04 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.heros h1 em { display: block; color: var(--terre); font: italic 500 1.16em/1.05 var(--italic); letter-spacing: -.01em; }
.heros-texte { max-width: 33em; margin-top: 14px; text-wrap: pretty; }
/* Plaque d'inscription : coins creusés, double filet d'or */
.stats {
  --coin: 12px;
  position: relative; width: min(100%, 680px); margin: 18px 0;
  display: grid; grid-template-columns: 1fr 1.5fr 1fr;
  padding: 7px; background: var(--encre); color: var(--papier);
  -webkit-mask: radial-gradient(var(--coin) at 0 0, transparent 98%, #000) 0 0 / 51% 51% no-repeat, radial-gradient(var(--coin) at 100% 0, transparent 98%, #000) 100% 0 / 51% 51% no-repeat, radial-gradient(var(--coin) at 0 100%, transparent 98%, #000) 0 100% / 51% 51% no-repeat, radial-gradient(var(--coin) at 100% 100%, transparent 98%, #000) 100% 100% / 51% 51% no-repeat;
          mask: radial-gradient(var(--coin) at 0 0, transparent 98%, #000) 0 0 / 51% 51% no-repeat, radial-gradient(var(--coin) at 100% 0, transparent 98%, #000) 100% 0 / 51% 51% no-repeat, radial-gradient(var(--coin) at 0 100%, transparent 98%, #000) 0 100% / 51% 51% no-repeat, radial-gradient(var(--coin) at 100% 100%, transparent 98%, #000) 100% 100% / 51% 51% no-repeat;
}
.stats::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--or); pointer-events: none; }
.stats > div { padding: 13px 12px; }
.stats > div + div { border-left: 1px solid var(--filet); }
.stats dt { font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--or); }
.stats dd { margin-top: 5px; font: 500 clamp(17px, 1.7vw, 21px)/1.2 var(--serif); color: var(--papier); }
.heros .actions { justify-content: center; }
.heros-pied { position: relative; z-index: 1; }
.heros-legende {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 0 var(--marge); font-size: 12px; color: var(--brun);
}
.heros-legende em { font: italic 500 clamp(26px, 3.4vw, 46px)/1 var(--italic); color: var(--encre); }
.mot-geant {
  font: 500 23.4vw/.8 var(--serif); letter-spacing: -.012em; white-space: nowrap; text-align: center;
  margin-inline: -3vw; padding-top: .07em; user-select: none;
}

/* Bandeau des équipements */
.bandeau {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px clamp(20px, 3vw, 44px);
  padding: 14px var(--marge); background: var(--terre); color: var(--papier);
  font-size: 12px; font-weight: 500; text-align: center;
}

/* Trois colonnes de médailles et de vignettes */
.trois-colonnes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(48px, 5vw, 64px) clamp(28px, 4vw, 56px);
  max-width: 1200px; margin: clamp(56px, 7vw, 96px) auto 0;
}
.medaille, .vignette { display: flex; flex-direction: column; align-items: center; text-align: center; }
.medaille svg { width: min(220px, 62vw); }
.medaille svg > circle { fill: var(--or-pale); }
.medaille svg > .filet { fill: none; stroke: var(--encre); stroke-width: 1; }
.medaille text { fill: var(--encre); font-family: var(--serif); font-weight: 500; }
.medaille .legende { font-size: 15px; letter-spacing: .06em; }
.medaille .centre { font-size: 68px; text-anchor: middle; }
.medaille .centre-petit { font-size: 38px; }
.medaille h3 { margin-top: 28px; font: 500 clamp(24px, 2.2vw, 30px)/1.1 var(--serif); letter-spacing: -.005em; }
.medaille p { max-width: 24em; margin-top: 12px; color: var(--sourdine); text-wrap: pretty; }

/* Indicateur : trois petites arches à la place des hexagones */
.arches { display: flex; gap: 6px; margin-top: 24px; }
.arches i { width: 12px; height: 16px; border: 1px solid currentColor; border-bottom: 0; border-radius: 6px 6px 0 0; }
.arches i.plein { background: currentColor; }

/* Tableau pleine largeur */
.panneau { position: relative; background: var(--sable); line-height: 0; }
.panneau img { width: 100%; height: auto; min-height: 420px; object-fit: cover; object-position: 50% 100%; }
.panneau figcaption {
  position: absolute; inset: clamp(14px, 2vw, 28px) var(--marge) auto;
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 12px; font-weight: 500; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase;
}

/* Tarifs : une tabula ansata, plaque romaine à poignées */
.tarifs { padding-top: 0; }
.tabula { position: relative; z-index: 1; max-width: 760px; margin: calc(-1 * clamp(36px, 5vw, 80px)) auto 0; }
.tabula::before, .tabula::after {
  content: ""; position: absolute; top: 50%; width: clamp(24px, 3vw, 40px); height: 116px;
  margin-top: -58px; background: var(--vert);
}
.tabula::before { right: calc(100% - 1px); clip-path: polygon(100% 22%, 0 0, 0 100%, 100% 78%); }
.tabula::after { left: calc(100% - 1px); clip-path: polygon(0 22%, 100% 0, 100% 100%, 0 78%); }
.tabula-corps {
  --coin: 26px;
  padding: clamp(36px, 5vw, 60px) clamp(22px, 5vw, 60px) clamp(32px, 4vw, 48px);
  background: var(--vert); color: var(--papier);
  clip-path: polygon(var(--coin) 0, calc(100% - var(--coin)) 0, 100% var(--coin), 100% calc(100% - var(--coin)), calc(100% - var(--coin)) 100%, var(--coin) 100%, 0 calc(100% - var(--coin)), 0 var(--coin));
  text-align: center;
}
.tabula-corps .titre-moyen { margin-top: 16px; }
.tabula-sous { margin-top: 12px; color: var(--sourdine); }
.prix { margin-top: 32px; border-top: 1px solid var(--filet); text-align: left; }
.prix li {
  display: grid; grid-template-columns: 38px 1fr auto 84px; align-items: baseline; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--filet); font-size: 15px;
}
.prix i { font-style: normal; font-size: 12px; color: var(--sourdine); }
.prix b { font: 500 clamp(18px, 2vw, 22px)/1.2 var(--serif); }
.prix span { font-size: 13px; color: var(--sourdine); white-space: nowrap; }
.prix strong { color: var(--or-pale); font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabula-note { margin-top: 24px; font-size: 13px; color: var(--sourdine); text-wrap: balance; }
.tabula-note span:last-child { display: block; color: var(--papier); margin-top: 4px; }

/* Séchage */
.sechage {
  background-color: var(--vert);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  align-items: center; gap: clamp(40px, 6vw, 96px);
  padding-block: var(--section);
}
.sechage-figure { max-width: 620px; width: 100%; margin: 0 auto; }
.sechage-figure svg { width: 100%; height: auto; overflow: visible; }
.sechage-figure circle, .sechage-figure rect { fill: none; stroke: var(--papier); stroke-width: 1; }
.plan-tournant { transform-box: view-box; transform-origin: center; animation: tourne 90s linear infinite; }
.sechage-figure .rayon-56 { stroke-width: 56; }
.sechage-figure .rayon-66 { stroke-width: 66; }
.sechage-figure .rayon-58 { stroke-width: 58; }
.sechage-figure .arene { fill: var(--or-pale); stroke: none; }
.chiffres text { fill: var(--papier); font: 500 19px var(--serif); text-anchor: middle; }
.arene-texte { fill: var(--encre); font: 500 76px var(--serif); text-anchor: middle; }
.arene-unite { fill: var(--encre); font: 500 22px var(--serif); letter-spacing: .1em; text-anchor: middle; }
.note-figure { margin-top: 20px; font: italic 500 20px/1.3 var(--italic); text-align: center; color: var(--sourdine); }
.sechage-texte { max-width: 560px; }
.sechage-texte .titre-moyen { margin: 16px 0 20px; }
.sechage-texte > p:not(.surtitre):not(.titre-moyen) { color: var(--sourdine); text-wrap: pretty; }
@keyframes tourne { to { transform: rotate(360deg); } }

.faits { margin-top: 28px; border-top: 1px solid currentColor; }
.faits > div {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 20px;
  padding: 13px 0; border-bottom: 1px solid currentColor;
}
.salle-noire .faits, .salle-noire .faits > div { border-color: var(--filet); }
.faits dt { font-size: 13px; }
.salle-noire .faits dt { color: var(--sourdine); }
.faits dd { font-size: 16px; font-weight: 500; }
.faits a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Étapes : chaque numéro sous une arche */
.etapes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(40px, 5vw, 56px) clamp(24px, 3vw, 40px);
  max-width: 1100px; margin: clamp(56px, 7vw, 88px) auto 0; text-align: center;
}
.arche-num {
  width: 104px; height: 136px; margin: 0 auto 24px;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 22px;
  background: var(--terre); color: var(--papier); border-radius: 52px 52px 0 0;
  font: 500 34px/1 var(--serif);
}
.etapes h3 { font: 500 clamp(24px, 2.2vw, 30px)/1.1 var(--serif); }
.etapes p { max-width: 24em; margin: 12px auto 0; text-wrap: pretty; }

/* Galerie : photos en médaillons */
.vignette figcaption { font: 500 clamp(22px, 2vw, 26px)/1.2 var(--serif); margin-bottom: 22px; }
.vignette img {
  width: min(340px, 78vw); aspect-ratio: 1; height: auto; object-fit: cover; border-radius: 50%;
}

/* Nous trouver */
.trouver {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  align-items: center; gap: clamp(36px, 5vw, 80px);
  padding-block: var(--section);
}
.trouver-texte { max-width: 560px; }
.trouver-texte .titre-moyen { margin: 16px 0 20px; }
.trouver .faits { margin-bottom: 28px; }
.trouver .faits dd { text-align: right; }
.carte { position: relative; min-height: 460px; height: 100%; border-radius: 9px; overflow: hidden; background: var(--or-pale); border: 1px solid var(--encre); }
.carte iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.carte-etiquette {
  position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 14px 16px;
  display: flex; align-items: center; gap: 14px; pointer-events: none;
  background: var(--encre); color: var(--papier); border-radius: 9px;
}
.carte-etiquette img { flex: none; width: 46px; height: 46px; }
.carte-etiquette span { display: block; font-size: 12px; color: var(--sourdine); }
.carte-etiquette b { display: block; font: 500 20px/1.2 var(--serif); }
.carte-etiquette small { display: block; font-size: 13px; }

/* Pied de page */
.pied { position: relative; background: var(--sable) url(../img/decor/motif-clair.svg) 50% 0 / 480px; overflow: hidden; padding-top: 30px; }
.pied-ligne {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
  padding: 20px var(--marge) clamp(36px, 5vw, 64px); font-size: 12px;
}
.pied-ligne a { font-weight: 500; }
.pied-ligne a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Scènes de scroll : les monuments montent, le linge s'étend */
.scene { display: none; }
.anime .scene, .statique .scene-bloc .scene { display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.soleil { position: absolute; left: 50%; bottom: 0; width: min(72vw, 62vh); aspect-ratio: 1; margin-left: calc(min(72vw, 62vh) / -2); will-change: transform; }
.soleil img { width: 100%; height: 100%; }
.monument { position: absolute; bottom: -1%; will-change: transform; }
.monument img { display: block; }
.colisee { left: -18vw; width: 64vw; }
.colisee img { width: 100%; height: auto; }
.pise { right: 6vw; height: 88%; aspect-ratio: 260 / 900; transform-origin: 50% 100%; }
.pise img { width: 100%; height: 100%; }
.ancre { position: absolute; width: 1px; height: 1px; }
.colisee .ancre { left: 60%; top: 8%; }
.pise .ancre { left: 14%; top: 26%; }
svg.corde { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; max-width: none; }
.corde .fil { fill: none; stroke: var(--encre); stroke-width: 1.4; }
.corde .piece { transition: opacity .25s; }
.corde .balance { transform-box: fill-box; transform-origin: 50% 0; animation: balance 6s ease-in-out infinite alternate; }
.corde .piece:nth-of-type(2n) .balance { animation-duration: 7.5s; animation-delay: -2s; }
.corde .piece:nth-of-type(3n) .balance { animation-duration: 5s; animation-delay: -3s; }
@keyframes balance { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }

.anime .heros { height: 195svh; }
.anime .heros-scene { position: sticky; top: var(--entete); height: calc(100svh - var(--entete)); min-height: 0; }
.anime .mot-geant { will-change: transform; }
.defiler { font-weight: 500; }
.statique .defiler { display: none; }

.marche { padding-bottom: 0; }
.scene-bloc { position: relative; height: clamp(320px, 42vw, 640px); margin-top: clamp(40px, 6vw, 72px); margin-inline: calc(-1 * var(--marge)); }

/* Cordes à linge entre deux salles */
.avec-corde { position: relative; }
.corde-haut { position: absolute; top: 30px; left: 0; right: 0; height: 190px; z-index: 2; pointer-events: none; overflow: visible; }
.corde-haut .fil { stroke: var(--or); }

/* Le contenu monte à son arrivée */
.a-monter { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.a-monter.visible { opacity: 1; transform: none; }
.medaille:nth-child(2), .vignette:nth-child(2), .etapes li:nth-child(2) { transition-delay: .1s; }
.medaille:nth-child(3), .vignette:nth-child(3), .etapes li:nth-child(3) { transition-delay: .2s; }

/* Pas de motif derrière le texte : le fond est effacé autour de chaque bloc, avec un bord fondu */
.heros-scene, .salle-claire { --fond: var(--creme); }
.salle-noire { --fond: var(--encre); }
.sechage { --fond: var(--vert); }
.pied { --fond: var(--sable); }
.heros-centre > :not(.stats), .heros-legende > *, .mot-geant, .coins > span, .titre, .chapo, .medaille h3, .medaille p,
.sechage-texte, .note-figure, .etapes h3, .etapes p, .vignette figcaption, .trouver-texte, .pied-ligne > * { position: relative; }
.heros-centre > :not(.stats)::after, .heros-legende > *::after, .mot-geant::after, .coins > span::after, .titre::after, .chapo::after, .medaille h3::after, .medaille p::after,
.sechage-texte::after, .note-figure::after, .etapes h3::after, .etapes p::after, .vignette figcaption::after, .trouver-texte::after, .pied-ligne > *::after {
  content: ""; position: absolute; z-index: -1; inset: -10px -16px;
  background: var(--fond); filter: blur(10px); pointer-events: none;
}
.titre::after { z-index: -2; }
.mot-geant::after { inset: 4% -4vw 0; }
.pied-ligne { position: relative; z-index: 0; }
.heros-legende > * { z-index: 0; }

/* Page d'erreur */
.erreur { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center; }
.erreur-code { font: 500 clamp(90px, 22vw, 240px)/.9 var(--serif); color: var(--or); }

/* Pilastres sur les côtés quand la place le permet */
@media (min-width: 1200px) {
  .salle-noire, .salle-claire { --marge: 104px; background-repeat: repeat-y, repeat-y, repeat; background-position: 12px 0, calc(100% - 12px) 0, 50% 0; background-size: 72px 24px, 72px 24px, 480px; }
  .salle-noire { background-image: url(../img/decor/pilastre-sombre.svg), url(../img/decor/pilastre-sombre.svg), url(../img/decor/motif-sombre.svg); }
  .salle-claire { background-image: url(../img/decor/pilastre-clair.svg), url(../img/decor/pilastre-clair.svg), url(../img/decor/motif-clair.svg); }
}
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(2) { grid-column: 1 / -1; grid-row: 2; border-left: 0; border-top: 1px solid var(--filet); }
  .stats > div:nth-child(3) { grid-column: 2; grid-row: 1; }
  .soleil { width: 90vw; margin-left: -45vw; bottom: 26%; }
  .colisee { left: -60vw; width: 150vw; }
  .pise { right: 3vw; height: 74%; max-height: 170vw; }
  .colisee .ancre { left: 47%; top: 6%; }
  .pise .ancre { top: 16%; }
  .anime .heros { height: 175svh; }
  .defiler { display: none; }
}
@media (max-width: 860px) {
  .tabula::before, .tabula::after { display: none; }
  .heros-legende { padding-bottom: 3.5vw; }
}
@media (max-width: 520px) {
  .prix li { grid-template-columns: 30px 1fr auto; gap: 2px 8px; }
  .prix span { grid-column: 2; grid-row: 2; }
  .prix strong { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
  .carte { min-height: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .plan-tournant, .corde .balance { animation: none; }
}
