/* 花谱：摇签、翻书、藤、绣绷、绸子、一瓶花 */
@font-face { font-family: Fleuron; src: url(/encre/fleuron.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Corps; src: url(/encre/corps.woff2) format("woff2"); font-display: swap; }
:root { --peche: #f4b79f; --aube: #f9d9c4; --creme: #fdf5e8; --vert: #234439; --vert2: #12291f; --grenade: #b2303f; --sang: #7f1f30; --encre: #37302c; --mousse: #7d9a6c; --or: #c99a4a;
  --gros: Fleuron, Rosarivo, "Songti SC", "KaiTi", serif; --lit: Rosarivo, Corps, "Songti SC", "SimSun", serif; --fin: Rosarivo, Corps, "Songti SC", "SimSun", serif; }
:root:lang(en) { --gros: Rosarivo, Fleuron, Georgia, serif; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--encre); background: var(--creme); font: 400 1.06rem/1.9 var(--fin); overflow-x: clip; }
h1, h2, h3, p, figure, ol { margin: 0; padding: 0; }
img, video, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--grenade); outline-offset: 4px; }
h2 { font: 400 clamp(2.9rem, 5.4vw, 4.8rem)/1.1 var(--gros); color: var(--sang); letter-spacing: .03em; }
:lang(en) h2 { font-style: italic; font-size: clamp(2.2rem, 3.8vw, 3.4rem); letter-spacing: 0; }
.saut { position: absolute; left: 10px; top: -70px; z-index: 60; padding: 8px 16px; background: var(--vert); color: #fff; }
.saut:focus { top: 10px; }
.titre { text-align: center; max-width: 36em; margin: 0 auto; padding: 0 20px; }
.titre p { margin-top: .4em; text-wrap: balance; }
.dit p { margin-top: .9em; font-size: 1.14rem; max-width: 24em; text-wrap: pretty; }

/* buttons: a leaf-veined band with a fold at one corner */
.gestes { display: flex; flex-wrap: wrap; gap: 14px; }
.geste { position: relative; min-width: 174px; padding: 1.02em 1.5em .98em; text-align: center; text-decoration: none; font: 600 1.14rem/1 var(--lit); letter-spacing: .12em; overflow: hidden; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px)); transition: transform .4s, background-color .4s, color .4s; }
:lang(en) .geste { font-size: 1.08rem; letter-spacing: .02em; }
.plein { background: var(--grenade); color: #fff4e6; }
.creux { background: var(--vert); color: #f6ead2; }
.geste::before { content: ""; position: absolute; inset: 5px; border: 1px solid currentColor; opacity: .5; clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px)); }
.geste::after { content: ""; position: absolute; left: -30%; top: 0; bottom: 0; width: 26%; background: linear-gradient(100deg, transparent, rgba(255, 244, 226, .6), transparent); transform: translateX(0) skewX(-18deg); transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.geste:hover::after { transform: translateX(640%) skewX(-18deg); }
.geste:hover { transform: translateY(-3px); }

.ruban-haut { position: absolute; z-index: 20; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 26px; height: 72px; padding: 0 clamp(18px, 5vw, 80px); color: var(--vert2); }
.sceau { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.sceau b { font: 400 1.5rem/1 var(--gros); }
.ruban-haut nav { margin-left: auto; display: flex; gap: 26px; }
.ruban-haut nav a, .langue { text-decoration: none; padding: 4px 0; background: linear-gradient(var(--grenade), var(--grenade)) 0 100% / 0 1px no-repeat; transition: background-size .4s; }
.ruban-haut nav a:hover, .langue:hover { background-size: 100% 1px; }

/* the tube and the lot */
.seuil { position: relative; min-height: max(100svh, 640px); display: grid; grid-template-columns: minmax(0, 1.08fr) 210px minmax(0, 1fr); align-items: center; gap: 2vw; padding: 84px clamp(22px, 5vw, 84px) 40px; overflow: hidden; background: radial-gradient(46% 60% at 80% 46%, #fff3e0, rgba(255, 243, 224, 0)), linear-gradient(150deg, #f2a78f, var(--peche) 34%, var(--aube) 68%, #fbe8d2); }
.seuil::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 19%; background: linear-gradient(rgba(35, 68, 57, 0), rgba(35, 68, 57, .16)); pointer-events: none; }
.rosace { position: absolute; background: url(/encre/fleur.svg) center / contain no-repeat; opacity: .2; animation: tourne 120s linear infinite; }
.r1 { width: 900px; height: 900px; right: -180px; top: -130px; }
.r2 { width: 460px; height: 460px; left: -150px; bottom: -190px; animation-direction: reverse; }
@keyframes tourne { to { transform: rotate(360deg); } }
.accueil { position: relative; z-index: 3; }
h1 { display: flex; flex-direction: column; color: var(--sang); font: 400 clamp(4.4rem, 8.4vw, 8.4rem)/1.06 var(--gros); letter-spacing: .01em; text-shadow: 0 2px 0 rgba(255, 246, 232, .6); }
h1 span + span { font: italic 400 .3em/1.5 Rosarivo, Georgia, serif; letter-spacing: .06em; color: var(--vert); }
:lang(en) h1 { font-size: clamp(2.9rem, 5.2vw, 5rem); line-height: 1.1; letter-spacing: 0; }
:lang(en) h1 span + span { font-size: .62em; }
.mot { margin: 22px 0 28px; max-width: 25em; font-size: clamp(1.1rem, 1.4vw, 1.28rem); text-wrap: pretty; }
.pot { position: relative; z-index: 4; width: 200px; height: 430px; align-self: end; margin-bottom: 3svh; }
.laque { position: absolute; left: 22px; right: 22px; bottom: 34px; height: 236px; background: linear-gradient(90deg, #0d2019, #2f5b4c 26%, #6a9a85 38%, #2a5446 58%, #0b1c15); border-radius: 0 0 50% 50% / 0 0 26px 26px; box-shadow: 0 24px 30px rgba(60, 30, 20, .34); display: grid; place-items: center; }
.laque::before { content: ""; position: absolute; left: 0; right: 0; top: -13px; height: 26px; border-radius: 50%; background: radial-gradient(60% 60% at 50% 60%, #06120d 0 60%, #183a2e); box-shadow: inset 0 -2px 0 #c99a4a; }
.laque::after { content: ""; position: absolute; left: 0; right: 0; top: 30px; bottom: 26px; border-block: 3px double #c99a4a; }
.laque b { width: 78px; height: 78px; display: grid; place-items: center; font: 400 3.2rem/1 Fleuron, serif; color: #f4dba4; border: 2px solid #c99a4a; border-radius: 50%; background: rgba(6, 18, 13, .35); z-index: 1; }
.tiges { position: absolute; left: 36px; right: 36px; bottom: 150px; height: 250px; }
.tiges i { position: absolute; left: calc(var(--k) * 10px + 4px); bottom: 0; width: 13px; height: var(--u); transform-origin: 50% 100%; transform: rotate(calc((var(--k) - 5) * 2.7deg)); background: linear-gradient(90deg, #b98a4e, #f1d9a4 46%, #b48446); clip-path: polygon(18% 0, 82% 0, 100% 14px, 100% 100%, 0 100%, 0 14px); }
.tiges i::after { content: ""; position: absolute; left: 3px; right: 3px; top: 16px; height: 46px; background: var(--grenade); opacity: .75; }
.dis { position: absolute; left: 50%; bottom: 0; translate: -50% 0; white-space: nowrap; font: 600 1.02rem/1 var(--lit); color: var(--vert); transition: color .3s; }
:lang(en) .dis { font-size: 1rem; font-style: italic; }
.pot:hover .dis { color: var(--grenade); }
.pot:hover .tiges { animation: tic .34s ease-in-out 2 alternate; }
@keyframes tic { to { transform: translateY(-9px); } }
.secoue { animation: secoue .8s ease-in-out; }
.secoue .tiges { animation: saute .2s ease-in-out 4 alternate; }
.secoue .tiges i.choix { animation: monte .95s cubic-bezier(.3, 0, .2, 1) forwards; }
@keyframes secoue { 0%, 100% { rotate: 0deg; } 14% { rotate: -9deg; } 30% { rotate: 8deg; } 46% { rotate: -8deg; } 62% { rotate: 7deg; } 80% { rotate: -3deg; } }
@keyframes saute { to { transform: translateY(-14px) rotate(2deg); } }
@keyframes monte { 40% { translate: 0 -60px; } 100% { translate: 220px -190px; rotate: 40deg; opacity: 0; } }
.tire { position: relative; z-index: 3; justify-self: center; perspective: 1600px; }
.carte { position: relative; width: min(31vw, 62svh, 480px); transform-style: preserve-3d; transition: transform .95s cubic-bezier(.3, .1, .2, 1); rotate: 2.2deg; }
.carte.cache { transform: rotateY(180deg) translateY(16px) scale(.94); }
.face, .dos { backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--creme); box-shadow: 0 0 0 1px #d8b98c, 0 34px 60px rgba(95, 40, 30, .34); }
.face { position: relative; padding: 15px 15px 0; }
.face::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--or); opacity: .65; pointer-events: none; }
.portrait { width: 100%; aspect-ratio: 5 / 6.5; object-fit: cover; object-position: 50% 24%; }
.legende { position: relative; display: grid; align-content: center; min-height: 118px; padding: 12px 118px 14px 16px; }
.legende b { font: 400 2.5rem/1.1 var(--gros); color: var(--sang); }
:lang(en) .legende b { font-size: 1.7rem; font-style: italic; }
.legende span { font-size: 1.02rem; line-height: 1.5; }
.legende img { position: absolute; right: 8px; bottom: 6px; width: 106px; filter: drop-shadow(0 6px 6px rgba(70, 40, 30, .18)); }
.dos { position: absolute; inset: 0; transform: rotateY(180deg); background: repeating-linear-gradient(45deg, rgba(201, 154, 74, .24) 0 2px, transparent 2px 22px), repeating-linear-gradient(-45deg, rgba(201, 154, 74, .24) 0 2px, transparent 2px 22px), var(--vert); display: grid; place-items: center; }
.dos img { width: 56%; }
.eclat { position: absolute; left: 50%; top: 46%; width: 24px; height: 22px; background: radial-gradient(circle at 50% 110%, #c9485c, #f7b9b4 62%, #fff0ea); border-radius: 80% 12% 78% 20%; pointer-events: none; animation: eclat 1.7s cubic-bezier(.1, .6, .3, 1) forwards; }
@keyframes eclat { to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }

/* the book, turned by scrolling */
.livre { position: relative; background: linear-gradient(#fbe8d2, #f6ead6 30%, #efe3cb); padding: 90px 0 60px; }
.tenu { position: relative; }
.ouvert { position: relative; margin: 34px auto 0; }
.planche { position: relative; height: 100%; padding: 5.5% 6% 0; display: flex; flex-direction: column; background: linear-gradient(90deg, rgba(120, 84, 50, .13), transparent 9%), #fdf6e8; }
.planche .vue { display: block; width: 100%; overflow: hidden; }
.planche .vue img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.vue:hover img { transform: scale(1.035); }
.fleur { position: absolute; right: 2%; bottom: 1.5%; width: 25%; pointer-events: none; filter: drop-shadow(0 7px 6px rgba(70, 40, 30, .2)); }
.planche figcaption { padding: 10px 27% 14px 4px; }
.planche figcaption b { display: block; font: 400 2.3rem/1.15 var(--gros); color: var(--sang); }
:lang(en) .planche figcaption b { font-size: 1.6rem; font-style: italic; }
.planche figcaption span { font-size: 1rem; line-height: 1.5; display: block; }
.garde { display: none; }
.tourne { display: none; }
@media (min-width: 901px) {
  [data-js] .livre { height: 560svh; padding: 0; }
  [data-js] .tenu { position: sticky; top: 0; height: 100svh; min-height: 620px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
  [data-js] .ouvert { --h: min(74svh, 54vw); width: calc(var(--h) * 1.42); height: var(--h); margin: 18px auto 0; perspective: 2400px; }
  [data-js] .titre h2 { font-size: clamp(2.2rem, 7svh, 4rem); }
  [data-js] .garde { display: grid; position: absolute; top: 0; bottom: 0; width: 50%; background: #fbf1dd; box-shadow: 0 30px 60px rgba(95, 60, 30, .3); align-content: center; justify-items: center; text-align: center; }
  [data-js] .gauche { left: 0; box-shadow: -8px 8px 0 -2px #efdfc2, -14px 14px 0 -4px #e2cfae, 0 34px 60px rgba(95, 60, 30, .28); }
  [data-js] .droite { left: 50%; box-shadow: 8px 8px 0 -2px #efdfc2, 14px 14px 0 -4px #e2cfae, 0 34px 60px rgba(95, 60, 30, .28); }
  .index { list-style: none; display: grid; grid-template-columns: repeat(3, auto); gap: .5em 2em; }
  .index a { font: 400 clamp(1.3rem, 2.1vw, 2rem)/1.5 var(--gros); color: var(--vert); text-decoration: none; transition: color .3s; }
  :lang(en) .index a { font-size: 1.15rem; font-style: italic; }
  :lang(en) .index { grid-template-columns: repeat(2, auto); }
  .index a:hover { color: var(--grenade); }
  .fin { font: 400 3rem/1.2 var(--gros); color: var(--sang); }
  .droite p + p { max-width: 14em; }
  [data-js] .feuillet { position: absolute; left: 50%; top: 0; width: 50%; height: 100%; transform-origin: 0 50%; transform-style: preserve-3d; transform: rotateY(calc(var(--t, 0) * -180deg)); z-index: calc(20 - var(--n)); }
  [data-js] .feuillet.passe { z-index: calc(20 + var(--n)); }
  [data-js] .recto, [data-js] .verso { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
  [data-js] .verso { transform: rotateY(180deg); }
  [data-js] .verso .planche { background: linear-gradient(270deg, rgba(120, 84, 50, .13), transparent 9%), #fdf6e8; }
  [data-js] .recto::after, [data-js] .verso::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(70, 40, 20, .5), transparent 70%); opacity: calc(var(--o, 0) * .7); }
  [data-js] .planche .vue { flex: 1; min-height: 0; }
  [data-js] .tourne { display: flex; justify-content: center; gap: 12px; margin-top: 14px; }
  .tourne button { width: 64px; height: 42px; background: rgba(35, 68, 57, .1); color: var(--vert); clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); transition: background .3s, color .3s; }
  .tourne button:hover { background: var(--grenade); color: #fff4e6; }
}

/* the vine */
.vrilles { position: relative; padding: 110px 5vw 90px; background: linear-gradient(#efe3cb, #e3e6cf 30%, #cfdcc2 78%, #bcd0b4); overflow: clip; }
.grimpe { position: relative; max-width: 1180px; margin: 40px auto 0; }
.liane { position: absolute; left: 50%; top: 0; width: 200px; height: 100%; max-width: none; translate: -50% 0; overflow: visible; }
.liane path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ombre { stroke: rgba(85, 115, 77, .18); stroke-width: 5; }
.pousse { stroke: #55734d; stroke-width: 5; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--g, 1)); }
.noeuds { list-style: none; position: relative; }
.noeud { display: grid; grid-template-columns: 1fr 1fr; align-items: center; column-gap: 230px; min-height: 130px; }
.noeud .lieu { grid-column: 2; grid-row: 1; position: relative; padding-left: 96px; }
.noeud .volet { grid-column: 1; grid-row: 1 / span 2; }
.noeud:nth-child(even) .lieu { grid-column: 1; padding: 0 96px 0 0; text-align: right; }
.noeud:nth-child(4n+3) .lieu { grid-column: 1; padding: 0 96px 0 0; text-align: right; }
.noeud:nth-child(4n+3) .volet { grid-column: 2; }
.noeud:nth-child(4n) .lieu { grid-column: 2; padding: 0 0 0 96px; text-align: left; }
.eclot { position: absolute; left: -8px; top: 50%; width: 92px; translate: 0 -50%; transition: scale 1.1s cubic-bezier(.2, 1.5, .4, 1), rotate 1.1s; }
.noeud:nth-child(4n+2) .eclot, .noeud:nth-child(4n+3) .eclot { left: auto; right: -8px; }
[data-js] .noeud:not(.ouverte) .eclot { scale: 0; rotate: -120deg; }
.lieu h3 { font: 400 2.2rem/1.2 var(--gros); color: var(--vert); }
:lang(en) .lieu h3 { font-size: 1.6rem; font-style: italic; }
.lieu p { font-size: 1.08rem; }
.volet { position: relative; width: min(390px, 100%); justify-self: center; padding: 12px 12px 46px; background: var(--creme); box-shadow: 0 24px 40px rgba(50, 70, 45, .28); rotate: -2deg; transition: rotate .8s, translate 1s, opacity 1s; }
.noeud:nth-child(4n+3) .volet { rotate: 2deg; }
.volet:hover { rotate: 0deg; }
.volet .vue { display: block; width: 100%; overflow: hidden; }
.volet img { width: 100%; transition: transform 1.2s; }
.volet figcaption { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font: 400 1.3rem/1.2 var(--gros); color: var(--sang); }
:lang(en) .volet figcaption { font-size: 1.1rem; font-style: italic; }
[data-js] .noeud:not(.ouverte) .volet { opacity: 0; translate: 0 50px; }

/* embroidery hoop */
.tambour { display: grid; grid-template-columns: min(540px, 48vw) 1fr; align-items: center; gap: 8vw; padding: 100px 9vw 110px; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .16) 0 1px, transparent 1px 5px), repeating-linear-gradient(90deg, rgba(255, 255, 255, .16) 0 1px, transparent 1px 5px), linear-gradient(#bcd0b4, #e9d3c0 70%, #f4c9b2); overflow: clip; }
.cercle { position: relative; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 10px #e7c58d, 0 0 0 14px #b8864b, 0 0 0 26px #efd5a3, 0 0 0 28px #a87740, 0 40px 60px rgba(80, 50, 30, .4); }
.cercle video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; border-radius: 50%; filter: brightness(.82); transition: filter .8s; cursor: pointer; }
.cercle.joue video { filter: none; }
.point { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.pique { fill: none; stroke: rgba(255, 250, 240, .55); stroke-width: 2.4; stroke-dasharray: 8 7; }
.fil { fill: none; stroke: #d8374a; stroke-width: 5; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--f, 0) * 100); stroke-linecap: round; }
.vis { position: absolute; left: 50%; top: -64px; width: 44px; height: 44px; translate: -50% 0; background: linear-gradient(90deg, #a87740, #f6dfae 45%, #9a6a36); clip-path: polygon(0 0, 100% 0, 100% 34%, 64% 34%, 64% 100%, 36% 100%, 36% 34%, 0 34%); }
.aiguille { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; translate: -50% -50%; transition: opacity .5s; }
.aiguille svg { width: 100%; }
.aiguille circle { fill: rgba(127, 31, 48, .5); stroke: #fff4e2; stroke-width: 2; stroke-dasharray: 7 5; }
.aiguille path { fill: #fff4e2; }
.aiguille .st, .joue .aiguille .va { display: none; }
.joue .aiguille .st { display: block; }
.joue .aiguille { opacity: 0; }
.joue:hover .aiguille { opacity: .7; }
.etiq { position: absolute; left: 4%; top: 3%; padding: 3px 16px; background: var(--creme); font-size: .95rem; letter-spacing: .06em; rotate: -4deg; box-shadow: 0 6px 12px rgba(80, 50, 30, .2); }

/* silk ribbons */
.rubans { padding: 110px 5vw 130px; background: linear-gradient(#f4c9b2, #f0b39e 60%, #e79c8c); overflow: clip; }
.branche { position: relative; max-width: 1200px; margin: 60px auto 0; padding-top: 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px 4vw; align-items: start; }
.bois { position: absolute; left: -6vw; right: -6vw; top: 0; height: 20px; background: linear-gradient(#6f9a6a, #a7c593 36%, #55804f); -webkit-mask: linear-gradient(90deg, #000 0 calc(100% - 3px), transparent 0) 0 0 / 190px 100%; mask: linear-gradient(90deg, #000 0 calc(100% - 3px), transparent 0) 0 0 / 190px 100%; }
.soie { position: relative; padding: 44px 30px 42px; background: linear-gradient(100deg, rgba(255, 255, 255, .0) 20%, rgba(255, 255, 255, .35) 34%, rgba(255, 255, 255, 0) 52%), var(--s, #fbeee2); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 22px), 0 100%); transform-origin: 50% 0; animation: flotte 6s ease-in-out calc(var(--n) * -1.3s) infinite alternate; transition: clip-path 1.2s cubic-bezier(.2, .7, .2, 1); }
.soie:nth-of-type(2) { --s: #f7dede; margin-top: 46px; } .soie:nth-of-type(3) { --s: #f4e8c8; margin-top: 14px; } .soie:nth-of-type(4) { --s: #e3ecd9; } .soie:nth-of-type(5) { --s: #f9e4d0; margin-top: 46px; } .soie:nth-of-type(6) { --s: #ecdfe8; margin-top: 14px; }
.soie::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18px; background: linear-gradient(rgba(127, 31, 48, .3), transparent); }
[data-js] .soie:not(.deplie) { clip-path: polygon(0 0, 100% 0, 100% 40px, 50% 18px, 0 40px); }
@keyframes flotte { from { transform: rotate(-.7deg) skewX(-.5deg); } to { transform: rotate(.7deg) skewX(.6deg); } }
.soie h3 { font: 600 1.26rem/1.5 var(--lit); color: var(--sang); }
:lang(en) .soie h3 { font-size: 1.22rem; font-style: italic; }
.soie p { margin-top: .5em; font-size: 1.06rem; line-height: 1.8; }

/* two handkerchiefs */
.poche { display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; gap: 5vw; padding: 120px 9vw 140px; background: linear-gradient(#e79c8c, #c9736f 50%, #7f3d48 90%, #4b2a34); overflow: clip; }
.poche .dit { color: #fff0e2; }
.poche h2 { color: #fff3e2; }
.carres { display: flex; justify-content: center; gap: 2vw; }
.carre { position: relative; width: min(360px, 29vw); transition: rotate .8s, translate .8s; }
.carre:first-child { rotate: -7deg; translate: 0 -20px; } .carre:last-child { rotate: 6deg; translate: -20px 46px; }
.carre:hover { rotate: 0deg; z-index: 2; }
.carre .vue { display: block; padding: 26px; background: repeating-linear-gradient(0deg, rgba(178, 48, 63, .1) 0 1px, transparent 1px 4px), repeating-linear-gradient(90deg, rgba(178, 48, 63, .1) 0 1px, transparent 1px 4px), #fdf4e8; box-shadow: inset 0 0 0 9px #fdf4e8, inset 0 0 0 10px var(--grenade), inset 0 0 0 14px #fdf4e8, inset 0 0 0 15px var(--grenade), 0 30px 46px rgba(50, 15, 22, .46); -webkit-mask: radial-gradient(circle 7px at 50% 0, transparent 97%, #000) -10px 0 / 20px 51% repeat-x, radial-gradient(circle 7px at 50% 100%, transparent 97%, #000) -10px 100% / 20px 51% repeat-x; mask: radial-gradient(circle 7px at 50% 0, transparent 97%, #000) -10px 0 / 20px 51% repeat-x, radial-gradient(circle 7px at 50% 100%, transparent 97%, #000) -10px 100% / 20px 51% repeat-x; }
.carre img { width: 100%; }
.carre figcaption { text-align: center; margin-top: 12px; font: 400 1.5rem/1.2 var(--gros); color: #ffe9d8; }
:lang(en) .carre figcaption { font-size: 1.15rem; font-style: italic; }

/* a vase at the end */
.adieu { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 3vw; min-height: 100svh; padding: 60px 8vw 0; color: #f6e9d6; background: radial-gradient(50% 60% at 30% 56%, rgba(244, 183, 159, .3), rgba(244, 183, 159, 0)), linear-gradient(#4b2a34, #24352e 34%, var(--vert2)); overflow: clip; }
.vase { width: min(100%, 72svh); justify-self: center; overflow: visible; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .4)); margin-bottom: -2%; }
.vase .b { transition: scale .9s cubic-bezier(.2, 1.5, .4, 1) calc(var(--n) * 16ms); transform-box: fill-box; transform-origin: 50% 50%; }
[data-js] .adieu:not(.fleurie) .vase .b { scale: 0; }
.adieu .dit { align-self: center; }
.adieu h2 { color: #ffd9c6; }
.adieu .gestes { margin-top: 1.8em; }
.adieu .creux { background: #f1dfbd; color: var(--vert2); }
.pied { background: #0c1d16; color: #bcc9bd; text-align: center; padding: 28px 6vw 34px; font-size: .96rem; line-height: 1.8; }

.loupe { border: 0; padding: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: none; overflow: hidden; }
.loupe::backdrop { background: rgba(18, 41, 31, .9); }
.loupe[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; }
.loupe figure { padding: 14px 14px 0; background: var(--creme); animation: pose .7s cubic-bezier(.2, .8, .2, 1); }
@keyframes pose { from { opacity: 0; transform: translateY(40px) rotate(-3deg); } }
.loupe figure img { max-width: min(88vw, 900px); max-height: calc(100dvh - 190px); min-width: 180px; min-height: 240px; }
.loupe figcaption { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 4px 10px; }
.loupe figcaption b { font: 400 1.7rem/1.2 var(--gros); color: var(--sang); }
.regle { display: flex; gap: 12px; padding-bottom: 20px; }
.regle button { min-width: 66px; height: 46px; padding: 0 18px; color: #fdf0dc; background: rgba(253, 245, 232, .14); font: 400 1.06rem/46px var(--lit); transition: background .3s; }
.regle button:hover { background: var(--grenade); }
.perdu main { min-height: 100vh; display: grid; place-content: center; text-align: center; background: linear-gradient(var(--peche), var(--creme)); }
.perdu h1 { font-size: 3.4rem; }

@media (max-width: 900px) {
  .seuil { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; justify-items: center; align-content: center; gap: 0; padding: 66px 18px 22px; min-height: 100svh; text-align: center; }
  .accueil { display: contents; }
  h1 { order: 1; z-index: 3; flex-direction: row; align-items: baseline; gap: .2em; white-space: nowrap; font-size: min(11.2vw, 5rem); }
  h2 { font-size: 2.35rem; text-wrap: balance; }
  :lang(en) h2 { font-size: 2rem; }
  h1 span + span { font-size: .4em; letter-spacing: .01em; }
  :lang(en) h1 { font-size: min(9.2vw, 4rem); }
  :lang(en) h1 span + span { font-size: .56em; }
  .tire { order: 2; margin: 12px 0 10px; }
  .carte { width: min(68vw, 40svh, 420px); }
  .face { padding: 9px 9px 0; }
  .portrait { aspect-ratio: 5 / 5.7; }
  .legende { min-height: 66px; padding: 5px 62px 6px 8px; text-align: left; }
  .legende b, :lang(en) .legende b { font-size: 1.5rem; }
  .legende span { font-size: .86rem; line-height: 1.35; }
  .legende img { width: 56px; right: 3px; }
  .mot { order: 3; z-index: 3; margin: 2px 4px 12px; font-size: 1.02rem; line-height: 1.6; text-wrap: balance; }
  .accueil .gestes { order: 4; z-index: 3; width: 100%; }
  .gestes { flex-wrap: nowrap; justify-content: center; }
  .geste { flex: 1 1 0; min-width: 0; padding-inline: .3em; white-space: nowrap; font-size: 1.12rem; max-width: 260px; }
  .pot { position: absolute; left: max(2vw, calc(50% - 300px)); top: 27svh; width: 96px; height: 210px; margin: 0; z-index: 5; }
  .laque { left: 10px; right: 10px; height: 112px; bottom: 26px; }
  .laque b { width: 44px; height: 44px; font-size: 1.8rem; }
  .laque::after { top: 16px; bottom: 14px; }
  .tiges { left: 16px; right: 16px; bottom: 80px; height: 120px; }
  .tiges i { left: calc(var(--k) * 5px + 1px); width: 7px; height: var(--v); }
  .tiges i::after { top: 9px; height: 22px; left: 2px; right: 2px; }
  .dis { font-size: .9rem; background: rgba(253, 245, 232, .9); padding: 3px 8px; }
  .r1 { width: 560px; height: 560px; right: -190px; top: 60px; }
  .livre { padding: 70px 14px 60px; }
  .ouvert { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 760px; }
  .feuillet, .recto, .verso { display: contents; }
  .planche { padding: 8px 8px 0; box-shadow: 0 14px 22px rgba(95, 60, 30, .2); background: #fdf6e8; transition: transform .9s cubic-bezier(.2, .7, .2, 1), opacity .9s; }
  .planche .vue { aspect-ratio: 5 / 7; }
  .planche figcaption { padding: 6px 30% 10px 2px; }
  .planche figcaption b, :lang(en) .planche figcaption b { font-size: 1.5rem; }
  .planche figcaption span { font-size: .84rem; line-height: 1.4; }
  .fleur { width: 32%; }
  [data-js] .planche:not(.posee) { transform: perspective(900px) rotateY(70deg); opacity: 0; }
  .vrilles { padding: 80px 18px 70px; }
  .grimpe { margin-top: 26px; }
  .liane { left: 30px; width: 60px; }
  .noeud, .noeud:nth-child(n) { display: block; padding-left: 74px; margin-bottom: 26px; min-height: 0; }
  .noeud .lieu, .noeud:nth-child(even) .lieu, .noeud:nth-child(4n+3) .lieu, .noeud:nth-child(4n) .lieu { padding: 0; text-align: left; }
  .eclot, .noeud:nth-child(4n+2) .eclot, .noeud:nth-child(4n+3) .eclot { left: -74px; right: auto; width: 62px; top: 34px; }
  .lieu h3 { font-size: 1.9rem; }
  .volet { width: min(100%, 360px); margin: 8px 0 24px; }
  .tambour { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 120px 22px 80px; gap: 56px; }
  .cercle { width: min(74vw, 460px); }
  .tambour .dit { order: -1; margin-top: -60px; margin-bottom: 26px; }
  .tambour .dit p { margin-inline: auto; }
  .rubans { padding: 80px 18px 90px; }
  .branche { grid-template-columns: 1fr; gap: 26px; margin-top: 36px; }
  .soie:nth-of-type(n) { margin-top: 0; }
  .soie:nth-of-type(odd) { margin-right: 22px; } .soie:nth-of-type(even) { margin-left: 22px; }
  .poche { grid-template-columns: 1fr; text-align: center; padding: 80px 18px 120px; }
  .poche .dit p { margin-inline: auto; }
  .carres { margin-top: 34px; }
  .carre { width: 46vw; max-width: 340px; }
  .carre .vue { padding: 18px; }
  .adieu { grid-template-columns: 1fr; padding: 70px 18px 0; text-align: center; min-height: 0; }
  .adieu .dit { order: -1; }
  .adieu .dit p { margin-inline: auto; }
  .vase { width: min(86vw, 460px); margin-top: 20px; }
  .ruban-haut { height: 54px; gap: 14px; padding: 0 16px; }
  .ruban-haut nav { gap: 14px; }
  .sceau b { display: none; }
}
@media (max-width: 900px) and (max-height: 700px) { .carte { width: min(54vw, 32svh); } .mot { font-size: .96rem; margin-bottom: 8px; } .tire { margin: 6px 0; } .legende { min-height: 54px; } .pot { top: 17svh; } }
@media (max-width: 900px) { :lang(en) .geste { font-size: .98rem; } }
@media (min-width: 901px) and (max-height: 720px) { h1 { font-size: clamp(4rem, 7.4vw, 6.4rem); } .pot { height: 380px; } .mot { margin: 14px 0 18px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
