/* Real plaster and kraft textures; paper placement stays interactive and responsive. */
body{background:#ede9e1 url('/mur/plaster-wall.png') repeat;background-size:1000px auto;background-attachment:scroll}
.topbar{background:#fffdf2b8;border-bottom:1px solid #cfc4b380;box-shadow:0 2px 8px #5841270d;border-radius:0 0 14px 14px}
.intro{background:none}.intro>p:not(.eyebrow){color:#78677d}.craft-sparkles{opacity:.8}
.wall-section{background:none;border-radius:0;padding-bottom:85px;position:relative}.wall-heading{position:relative;z-index:12;margin-bottom:35px}.wall-heading>div{background:#fff9e8d9;padding:13px 22px 15px;box-shadow:2px 4px 6px #4735211c;transform:rotate(-1.2deg);position:relative}.wall-heading>div:before{content:'';position:absolute;width:70px;height:22px;top:-11px;left:36%;background:#e2c79899;transform:rotate(7deg);border-left:2px dashed #ceaf78;border-right:2px dashed #ceaf78}.sort{background:#fefaf1d9;padding:8px 11px;border-radius:4px;box-shadow:1px 2px 4px #47352112;transform:rotate(2deg)}
.wall-grid{grid-template-columns:repeat(3,minmax(0,1fr));column-gap:0;row-gap:47px;padding:35px 30px 45px;align-items:center;isolation:isolate;overflow:visible}
.wall-grid>.drawing{--turn:-5deg;--shift-x:-9px;--shift-y:8px;--sheet-width:calc(100% + 22px);width:var(--sheet-width);transform:translate(var(--shift-x),var(--shift-y)) rotate(var(--turn));margin:0;z-index:2;align-self:center;background:#fffcf6;padding:15px 15px 11px;box-shadow:3px 8px 11px #4335223b,0 1px 2px #3f2b2226;border-radius:1px 1px 7px 1px;transition:transform .2s,box-shadow .2s}
.wall-grid>.drawing:nth-child(6n+2){--turn:4deg;--shift-x:0px;--shift-y:-20px;--sheet-width:calc(100% + 25px);z-index:4}
.wall-grid>.drawing:nth-child(6n+3){--turn:-2deg;--shift-x:-6px;--shift-y:24px;--sheet-width:96%;z-index:3}
.wall-grid>.drawing:nth-child(6n+4){--turn:3deg;--shift-x:3px;--shift-y:-10px;--sheet-width:calc(100% + 17px);z-index:5}
.wall-grid>.drawing:nth-child(6n+5){--turn:-6deg;--shift-x:-11px;--shift-y:12px;--sheet-width:99%;z-index:3}
.wall-grid>.drawing:nth-child(6n){--turn:5deg;--shift-x:-9px;--shift-y:-19px;--sheet-width:calc(100% + 16px);z-index:4}
.wall-grid>.drawing:nth-child(4n) .artwork{height:260px}.wall-grid>.drawing:nth-child(5n) .artwork{height:205px}
.wall-grid>.drawing:hover,.wall-grid>.drawing:focus-within{z-index:30;transform:translate(var(--shift-x),calc(var(--shift-y) - 6px)) rotate(calc(var(--turn) * .5));box-shadow:5px 13px 19px #43352240}
.wall-grid .drawing-meta{padding:14px 18px 0 2px;position:relative}.wall-grid .artwork{background:#f4f0e8}.wall-grid .report{padding-right:20px}.wall-grid>.drawing:after{content:'';position:absolute;right:0;bottom:0;width:20px;height:16px;background:linear-gradient(140deg,transparent 43%,#e4ddce 47%,#faf7ed 75%);border-radius:0 0 3px 0;pointer-events:none;opacity:.7}
.fastener{width:84px;height:33px;left:calc(50% - 42px);top:-15px;background:linear-gradient(100deg,#e0c28b69,#f5e6c698,#d7b77c73);box-shadow:0 1px 2px #8b693322;filter:drop-shadow(0 1px 1px #72562a15)}
.wall-grid>.drawing:nth-child(3n) .fastener{left:16px;top:-11px;transform:rotate(-20deg);background:#c7dcdea6}
.wall-grid>.drawing:nth-child(even) .fastener{width:17px;height:17px;left:calc(50% - 8px);top:-6px;background:radial-gradient(circle at 32% 25%,#fff9 0 9%,#f6a793 14%,#e66d55 45%,#a43c2c 90%);box-shadow:2px 4px 3px #31201366;clip-path:none;transform:none;filter:none}
.wall-grid>.drawing:nth-child(4n) .fastener{background:radial-gradient(circle at 32% 25%,#fff9 0 9%,#c2a1e5 14%,#9465c5 45%,#65458d 90%)}
.podium-section{padding-bottom:55px}.podium{border-bottom:0;box-shadow:none;padding:50px 40px 0;gap:7px;margin:0 22px;isolation:isolate}.podium:after{height:14px;left:-18px;right:-18px;bottom:-13px;background:linear-gradient(#b2926b66,#5a402035 35%,transparent);filter:blur(3px);z-index:-2;border-radius:50%}
.podium-place{width:31%;max-width:255px}.podium-place.place-1{z-index:3}.podium-place.place-2{z-index:2}.podium-place.place-3{z-index:1}.podium-place .drawing{margin-bottom:25px;box-shadow:4px 9px 10px #49342335;transform:rotate(-5deg)}.podium-place.place-2 .drawing{transform:rotate(5deg)}.podium-place.place-3 .drawing{transform:rotate(2deg)}
.cardboard-step{height:170px;width:100%;border:0;border-radius:1px 2px 0 0;background:linear-gradient(90deg,#36211024,transparent 8%,#fff1 46%,#422a1640 100%),url('/mur/cardboard.png');background-size:auto,430px auto;box-shadow:inset -3px 0 2px #6542195c,inset 2px 1px 0 #efd8aa,4px 7px 7px #412a212b;transform:rotate(-.9deg);position:relative;isolation:isolate}
.place-2 .cardboard-step{height:119px;background-color:#b99b75;transform:rotate(1.3deg);background-position:0 0,60px 140px}.place-3 .cardboard-step{height:83px;background-color:#ba9867;transform:rotate(.6deg);background-position:0 0,180px 60px}
.cardboard-step:before{content:'';height:15px;left:0;right:-5px;top:-14px;border:1px solid #95754e;border-bottom:2px solid #8f6c41;transform:skewX(-19deg);transform-origin:bottom left;background:radial-gradient(ellipse at 50% 60%,#e9d2a8 0 32%,#8b6b43 36% 47%,#d0ad7d 52% 75%,#a48456 80%) 0 0/10px 10px,#d2b182;box-shadow:inset 0 3px 1px #f0d9ad,inset 0 -2px 1px #795330;z-index:1}
.cardboard-step:after{content:'';position:absolute;left:auto;right:-11px;top:-8px;bottom:0;width:12px;height:auto;border:0;transform:skewY(-30deg);transform-origin:left bottom;background:linear-gradient(90deg,#442c204d,#6e4b2380),url('/mur/cardboard.png');background-size:auto,430px auto;box-shadow:inset 1px 0 0 #6244205c;z-index:-1}
.box-tape{left:21px;top:0;bottom:0;width:29px;transform:rotate(-1.7deg);background:linear-gradient(90deg,#d2b78e80,#e9d2aaa6 30%,#ead7b0ad 63%,#b49a7273);border-left:1px solid #f7e2b14d;border-right:1px solid #9c7f5545;box-shadow:1px 0 1px #7a5b2921}
.cardboard-step .box-tape:before{content:'';position:absolute;left:74px;right:-125px;top:35%;height:1px;background:#684a2538;box-shadow:0 2px 0 #f0d6ab45;transform:rotate(2deg)}
.paper-number{background:#fff3bd;color:#785428;box-shadow:2px 4px 4px #4933234d;transform:rotate(-8deg);border-radius:0 1px 5px 1px;width:74px;height:83px;font-size:68px}.paper-number:after{background:linear-gradient(90deg,#dac28c7d,#eddfb9b5,#d2b27e75);border-left:2px dashed #c8ac76;border-right:2px dashed #c8ac76;height:23px;top:-11px;left:17px;right:17px;transform:rotate(5deg)}.place-2 .paper-number{color:#6b4a76;background:#ebdded}.place-3 .paper-number{color:#416c60;background:#e0ebd8}
.podium-placeholder{background:#fffdf6;box-shadow:3px 6px 7px #4733232e;border:1px solid #e1d8c9;transform:rotate(-5deg);margin-bottom:25px}.place-2 .podium-placeholder{transform:rotate(5deg)}.place-3 .podium-placeholder{transform:rotate(2deg)}
.upload-section{background:#f2e8f7e6;box-shadow:6px 9px 12px #58462715}.preview-note{background:#fff4d9ed}
@media(max-width:900px){.wall-grid{padding:28px 20px 40px;row-gap:40px}.wall-grid .artwork{height:190px}.wall-grid>.drawing:nth-child(4n) .artwork{height:215px}.wall-grid>.drawing:nth-child(5n) .artwork{height:175px}.podium{padding:45px 16px 0;margin:0 12px}.podium-place .artwork{height:145px}.cardboard-step{height:146px}.place-2 .cardboard-step{height:104px}.place-3 .cardboard-step{height:76px}}
@media(max-width:620px){body{background-size:700px auto}.wall-heading{margin-bottom:30px;gap:8px}.wall-heading>div{padding:10px 12px;max-width:66%}.wall-heading h2{font-size:23px}.wall-heading .eyebrow{font-size:8px}.sort{padding:5px 6px;font-size:9px}.sort select{font-size:10px;max-width:122px}.wall-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:20px 12px 35px;row-gap:35px}.wall-grid>.drawing{--shift-x:-4px;--shift-y:5px;--turn:-4deg;--sheet-width:calc(100% + 10px);padding:9px}.wall-grid>.drawing:nth-child(6n+2){--shift-x:-4px;--shift-y:-12px;--turn:5deg;--sheet-width:calc(100% + 6px)}.wall-grid>.drawing:nth-child(6n+3){--shift-x:2px;--shift-y:9px;--turn:3deg;--sheet-width:97%}.wall-grid>.drawing:nth-child(6n+4){--shift-x:-7px;--shift-y:-5px;--turn:-5deg;--sheet-width:calc(100% + 12px)}.wall-grid>.drawing:nth-child(6n+5){--shift-x:-3px;--shift-y:8px;--turn:-3deg;--sheet-width:calc(100% + 10px)}.wall-grid>.drawing:nth-child(6n){--shift-x:-4px;--shift-y:-7px;--turn:4deg;--sheet-width:100%}.wall-grid .artwork{height:150px}.wall-grid>.drawing:nth-child(4n) .artwork{height:175px}.wall-grid>.drawing:nth-child(5n) .artwork{height:140px}.wall-grid .drawing-meta{padding:10px 10px 0 0}.wall-grid .report{padding-right:12px}.fastener{width:57px;height:25px;left:calc(50% - 28px);top:-12px}.wall-grid>.drawing:nth-child(even) .fastener{width:13px;height:13px;top:-5px;left:calc(50% - 6px)}.podium-section{padding-left:12px;padding-right:12px;padding-bottom:40px}.podium{gap:5px;padding:39px 7px 0;margin:0 3px}.podium-place{width:31.5%}.podium-place .drawing{padding:6px;margin-bottom:18px}.podium-place .artwork{height:105px}.cardboard-step{height:115px}.place-2 .cardboard-step{height:83px}.place-3 .cardboard-step{height:56px}.cardboard-step:before{height:10px;top:-9px;background-size:7px 7px}.cardboard-step:after{right:-7px;width:8px;top:-5px}.box-tape{left:9px;width:17px}.paper-number{width:48px;height:62px;font-size:48px}.paper-number:after{height:17px;top:-9px;left:10px;right:10px}.place-2 .paper-number{width:43px;height:49px;font-size:38px}.place-3 .paper-number{width:37px;height:38px;font-size:31px}.podium-placeholder{min-height:120px;padding:14px 5px;margin-bottom:19px}.podium:after{left:-5px;right:-5px;bottom:-10px}.wall-section{margin-top:20px;padding-bottom:60px}}
@media(prefers-reduced-motion:reduce){.wall-grid>.drawing{transition:none}}
.wall-grid{display:block;position:relative;padding:0;min-height:0;isolation:isolate}.wall-grid>.drawing{position:absolute;margin:0;align-self:auto;max-width:none}.wall-grid>.empty{position:relative;margin:45px 15px;padding:55px 20px}.wall-heading{margin-bottom:12px}.wall-grid>.drawing:nth-child(6n+1){--turn:-7deg;--shift-x:-6px;--shift-y:3px}.wall-grid>.drawing:nth-child(6n+2){--turn:5deg;--shift-x:4px;--shift-y:0px}.wall-grid>.drawing:nth-child(6n+3){--turn:-3deg;--shift-x:-8px;--shift-y:8px}.wall-grid>.drawing:nth-child(6n+4){--turn:7deg;--shift-x:6px;--shift-y:-4px}.wall-grid>.drawing:nth-child(6n+5){--turn:-5deg;--shift-x:-4px;--shift-y:12px}.wall-grid>.drawing:nth-child(6n){--turn:3deg;--shift-x:7px;--shift-y:-6px}
.wall-grid .drawing-meta{padding:13px 13px 3px 8px;background:#fffdf6;min-height:55px}.wall-grid .drawing-meta h3{line-height:1.3}.wall-grid .report{padding-right:13px}.wall-grid>.drawing{padding-bottom:12px}.wall-grid .like{flex:none}.wall-grid .place{line-height:1.4}

/* Le papier suit les proportions du dessin, sans bandes ajoutées. */
body.wall-page #wall > .drawing .artwork{height:auto;aspect-ratio:auto}
body.wall-page #wall > .drawing .artwork img{display:block;width:100%;height:auto;max-height:none}
/* Les informations passent sous le dessin dès que la carte devient étroite. */
body.wall-page #wall > .drawing .drawing-meta{flex-wrap:wrap;gap:8px 10px}
body.wall-page #wall > .drawing .drawing-meta>div:first-child{flex:1 1 135px;min-width:0}
body.wall-page #wall > .drawing .drawing-reactions{max-width:100%;flex-wrap:wrap}
/* Les feuilles restent espacées lorsque le mur passe à deux ou une colonne. */
body.wall-page #wall:is([data-layout="compact"],[data-layout="single"]) > .drawing{--turn:-3deg;--shift-x:0px;--shift-y:0px}
body.wall-page #wall:is([data-layout="compact"],[data-layout="single"]) > .drawing:nth-child(even){--turn:3deg}
@media(max-width:900px){
 body.wall-page #podium .drawing-meta{display:flex;flex-direction:column;align-items:flex-start;gap:7px}
 body.wall-page #podium .drawing-meta>div:first-child{width:100%}
 body.wall-page #podium .drawing-reactions{max-width:100%;flex-wrap:wrap}
 body.wall-page #podium .box-tape:before{display:none}
}
/* De grandes feuilles décalées sur téléphone, posées les unes derrière les autres. */
body.wall-page #wall:is([data-layout="collage"],[data-layout="collage-tablet"]) > .drawing{--shift-x:0px;--shift-y:0px;padding:10px 10px 11px;transform:rotate(var(--wall-angle,-5deg));z-index:var(--wall-layer,2)}
body.wall-page #wall:is([data-layout="collage"],[data-layout="collage-tablet"]) > .drawing .drawing-meta{display:block;min-height:0;padding:12px 4px 0}
body.wall-page #wall:is([data-layout="collage"],[data-layout="collage-tablet"]) > .drawing h3{font-size:14px;line-height:1.3}
body.wall-page #wall:is([data-layout="collage"],[data-layout="collage-tablet"]) > .drawing .place{font-size:11px}
body.wall-page #wall:is([data-layout="collage"],[data-layout="collage-tablet"]) > .drawing .drawing-reactions{margin-top:9px;gap:5px}
body.wall-page #wall:is([data-layout="collage"],[data-layout="collage-tablet"]) > .drawing .report{margin-top:4px;padding:4px 4px 0}
body.wall-page #wall:is([data-layout="collage"],[data-layout="collage-tablet"]) > .drawing .fastener{left:18px;right:auto}
body.wall-page #wall:is([data-layout="collage"],[data-layout="collage-tablet"]) > .drawing:nth-child(even) .fastener{left:auto;right:17px}
body.wall-page #wall:is([data-layout="collage"],[data-layout="collage-tablet"]) > .drawing:active,body.wall-page[data-wall-input="keyboard"] #wall:is([data-layout="collage"],[data-layout="collage-tablet"]) > .drawing:focus-within{z-index:100;transform:translateY(-6px) rotate(calc(var(--wall-angle) * .5));box-shadow:5px 13px 19px #43352240}
@media(hover:hover){body.wall-page #wall:is([data-layout="collage"],[data-layout="collage-tablet"]) > .drawing:hover{z-index:100;transform:translateY(-6px) rotate(calc(var(--wall-angle) * .5));box-shadow:5px 13px 19px #43352240}}
