/* Les voix du cacao 5.6 · palette, rythme de l'accueil, boutons, en-têtes des pages d'œuvres.
   Deux modes : clair (html sans data-regard) et nuit (html[data-regard=nuit]). */
:root{--t56:#a9502f;--t56-h:#8f4126;--t56-fg:#fbf1e4;--o56:#e4a941}
html:not([data-regard]){--a56:#f3e7d6;--b56:#ead3b7;--c56:#2b180e;--c56-fg:#f6e3d0;--c56-mu:#d9c1a8}
html[data-regard=nuit]{--a56:#120b07;--b56:#1f140c;--c56:#3b1e11;--c56-fg:#f6e3d0;--c56-mu:#d9c1a8}

/* 1. Boutons : terracotta MOOJO, texte clair, dans les deux modes */
.h54-jouer,.button.terra{background:var(--t56)!important;border-color:var(--t56)!important;color:var(--t56-fg)!important}
.h54-jouer:hover,.button.terra:hover,.h54-jouer:focus-visible,.button.terra:focus-visible{background:var(--t56-h)!important;border-color:var(--t56-h)!important;color:var(--t56-fg)!important}
.h54-jouer *{color:inherit!important}

/* 2. Accueil : des bandes au lieu d'un seul crème */
#pourquoi{background:var(--a56);padding-bottom:0!important}
.pq2-langues{background:var(--c56);margin:80px 0!important;padding:34px 0!important}
.pq2-langues b{color:var(--c56-fg)!important}
.pq2-langues b:nth-of-type(even){color:var(--o56)!important}
.pq2-langues i,.pq2-langues .glyph{color:var(--t56)!important}
.pq2-milieu{background:var(--b56);margin:0!important;padding:104px 86.4px!important}
.pq2-origine{background:var(--c56);color:var(--c56-fg);margin:0!important;padding:104px 86.4px!important}
.pq2-origine p,.pq2-origine a{color:var(--c56-fg)!important}
.pq2-origine .eyebrow{color:var(--o56)!important}
.pq2-origine figcaption,.pq2-origine .image-credit{color:var(--c56-mu)!important}
.pq2-trois{padding-top:104px!important;padding-bottom:24px!important}
.pq2-fin{width:auto!important;max-width:none!important;margin:96px 0 0!important;padding:22vh 8vw!important;min-height:80vh;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:22px;
  color:#f6e3d0!important;background:linear-gradient(180deg,rgba(18,11,7,.5),rgba(18,11,7,.7)),url(../public/img/mondes/bougies-hd.jpg) 62% 55%/cover no-repeat}
.pq2-fin span:not(.glyph){color:#f6e3d0!important;text-shadow:0 2px 24px rgba(18,11,7,.6)}
.pq2-fin em{color:#f2b878!important}
.pq2-fin::after{content:"Bougies au sol, Tuq’tuquilal, Lanquín (Alta Verapaz). Médiathèque MOOJO.";display:block;margin-top:auto;padding-top:9vh;font:italic 12px/1.4 var(--whisper,'Lora',serif);color:rgba(246,227,208,.72);letter-spacing:.02em}
.l54{background:var(--b56)}
.encounters{background:var(--a56)}

/* 3. Les quatre portes : une image chacune */
.home-path{position:relative;isolation:isolate;overflow:hidden;min-height:310px;color:#f6e3d0!important;background:#1f140c center/cover no-repeat!important;transition:background-size .8s}
.home-path::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(18,11,7,.86) 0%,rgba(18,11,7,.55) 55%,rgba(18,11,7,.25) 100%);transition:opacity .4s}
.home-path:hover::before{opacity:.82}
.home-path img{display:none!important}
.home-path h2{color:#f6e3d0!important}
.home-path .eyebrow{color:var(--o56)!important}
.home-path p{color:#ead7c2!important}
.home-path:nth-child(1){background-image:url(../public/img/mondes/tchiloli.jpg)!important;background-position:50% 30%!important}
.home-path:nth-child(2){background-image:url(../public/img/mondes/codex.jpg)!important}
.home-path:nth-child(3){background-image:url(../public/img/mondes/kene.jpg)!important}
.home-path:nth-child(4){background-image:url(../img/moojo/uganda-fiche-02.jpg)!important;background-position:50% 40%!important}

/* 4. En-têtes Lire, Regarder, Écouter, Images : la mosaïque en bichromie, la phrase sur terracotta */
.ph54-mos span{filter:grayscale(1) sepia(.5) saturate(1.25) brightness(.7) contrast(1.05)!important}
html:not([data-regard]) .ph54-mos{opacity:.85!important}
html[data-regard=nuit] .ph54-mos{opacity:.6!important}
.ph54 .whisper{display:inline-block;color:var(--t56-fg)!important;background:rgba(169,80,47,.92);padding:.42em .95em;text-shadow:none!important;border-radius:2px}
@media (max-width:760px){.ph54-mos{opacity:.35!important}}


/* 5. Filtres de galerie : le filtre choisi suit la règle des boutons */
.g54-filtres button[aria-pressed="true"]{background:var(--t56)!important;border-color:var(--t56)!important;color:var(--t56-fg)!important}

/* 6. La lanterne : texte foncé sur l'ocre, dans les deux modes */
.lantern,.lantern h2,.lantern p,.lantern .eyebrow{color:#1f1209!important}
.lantern .button,.lantern a.button{background:#1f1209!important;color:#f6e3d0!important;border-color:#1f1209!important}

/* 7. La phrase-image de l'accueil, un peu plus grande */
.pq2-fin span:not(.glyph){font-size:clamp(26px,2.6vw,40px)!important;line-height:1.3!important;max-width:24ch}
