*{box-sizing:border-box}body{margin:0;background:#17130e;color:#25180c;font-family:Georgia,'Times New Roman',serif}main{overflow:auto}.scene{width:100%;min-width:1000px;min-height:66.6667cqw;container-type:inline-size;position:relative;background:#21180f url('assets/jeu.png') center top/100% auto no-repeat;padding-top:13.74%;padding-bottom:2.1%;}header{position:absolute;top:0;left:0;width:100%;height:13.7cqw}header h1,header p{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}nav{width:55.99%;margin-left:22.13%;background:#201a12}.categorie{margin:0 0 .39cqw}.categorie:last-child{margin-bottom:0}.bandeau{position:relative;display:block;width:100%;aspect-ratio:860/82;border:0;padding:0;background-color:#c89e66;background-image:url('assets/jeu.png');background-size:178.605% 1248.78%;background-position-x:50.296%;cursor:pointer}.bandeau:focus-visible{outline:3px solid #ffe29a;outline-offset:-5px}.libelle{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.bandeau[aria-expanded=true]{box-shadow:inset 0 0 0 2px #bad7e399}.bandeau[aria-expanded=true]::after{content:'';position:absolute;inset:7% .8%;background:rgba(125,184,218,.16);box-shadow:inset 0 0 12px rgba(166,211,240,.24);pointer-events:none}.contenu{padding:1.2cqw 2cqw;background:#cba56f;color:#24170c;border:2px solid #9e772f;border-top:0}.contenu details{border-bottom:1px solid #80603b;padding:.7cqw 0}.contenu details:last-child{border-bottom:0}.contenu summary{font-size:1.4cqw;cursor:pointer;font-weight:bold}.contenu p{font-size:1.12cqw;line-height:1.65;white-space:pre-line}.contenu summary:focus-visible{outline:2px solid #641b12}[hidden]{display:none!important}
body.edition{background:#17130f;color:#f1dfbd;font:17px/1.6 Georgia,serif;padding:24px}main.editeur{max-width:850px;margin:auto;overflow:visible}.editeur h1{font-size:30px}.editeur label{display:block;margin:14px 0}.editeur input,.editeur textarea,.editeur select{display:block;width:100%;padding:12px;margin-top:6px;background:#f4e5c9;color:#271a0e;border:1px solid #a7834d;border-radius:5px;font:inherit}.editeur fieldset{margin:24px 0;padding:20px;border:1px solid #8c6b3c;border-radius:6px}.editeur button,.editeur a{display:inline-block;padding:10px 16px;margin:6px 8px 6px 0;color:#ffe6ac;background:#50201a;border:1px solid #bc944e;border-radius:5px;font:inherit}.editeur .actions{margin-top:24px}.editeur :focus-visible{outline:3px solid #e3b75f;outline-offset:3px}.editeur #message{color:#f9d37b;min-height:28px}

.libelle-ajoute{position:absolute;left:39%;right:6%;top:22%;height:57%;display:flex;align-items:center;text-align:left;font-family:Georgia,'Times New Roman',serif;font-variant:small-caps;font-weight:bold;font-size:1.8cqw;color:#281707;background:#d3ac76 url('assets/jeu.png');background-size:1536% 2925.71%;background-position:69.637% 24.064%;padding-left:.5cqw}
.romain-ajoute{position:absolute;left:1.8%;width:7.2%;top:18%;height:59%;display:grid;place-items:center;background:#211509;color:#d7a957;font-family:Georgia,serif;font-size:2.65cqw;text-shadow:1px 2px #080503}

/* Bandeaux réduits d’environ 18 %, avec leurs proportions d’origine. */
.scene{background-image:url('assets/decor-sans-bandeaux.png')}
.scene::before{content:'';position:absolute;top:0;left:0;width:100%;height:13.7cqw;background:url('assets/jeu.png') center top/100cqw auto no-repeat;pointer-events:none}
nav{position:relative;width:46%;margin-left:27%;background:transparent}
.libelle-ajoute{font-size:1.48cqw;padding-left:.4cqw}
.romain-ajoute{font-size:2.18cqw}

/* Noms de tous les bandeaux en texte modifiable. */
.libelle-ajoute{z-index:1;font-size:1.4cqw;line-height:1.1;overflow:hidden;overflow-wrap:anywhere}
.bandeau[aria-expanded=true] .libelle-ajoute{color:#233d4d;background-color:#d3e4ed;background-blend-mode:soft-light;text-shadow:0 0 3px rgba(222,242,255,.4)}

/* Surbrillance bleue au survol et lors de la navigation au clavier. */
.bandeau:hover,.bandeau:focus-visible{box-shadow:inset 0 0 0 2px #bad7e399}
.bandeau:hover::after,.bandeau:focus-visible::after{content:'';position:absolute;inset:7% .8%;background:rgba(125,184,218,.16);box-shadow:inset 0 0 12px rgba(166,211,240,.24);pointer-events:none}
.bandeau:hover .libelle-ajoute,.bandeau:focus-visible .libelle-ajoute{color:#233d4d;background-color:#d3e4ed;background-blend-mode:soft-light;text-shadow:0 0 3px rgba(222,242,255,.4)}

/* Lueur discrète, sans rectangle ajouté sur le bandeau. */
.bandeau[aria-expanded=true],.bandeau:hover,.bandeau:focus-visible{box-shadow:none;filter:brightness(1.035) drop-shadow(0 0 4px rgba(147,198,229,.38))}
.bandeau[aria-expanded=true]::after,.bandeau:hover::after,.bandeau:focus-visible::after{content:none;display:none}
.bandeau[aria-expanded=true] .libelle-ajoute,.bandeau:hover .libelle-ajoute,.bandeau:focus-visible .libelle-ajoute{color:#281707;background-color:#d3ac76;background-blend-mode:normal;text-shadow:none}

/* Teinte bleue visible sur le bandeau entier, sans panneau superposé. */
.bandeau[aria-expanded=true],.bandeau:hover,.bandeau:focus-visible{box-shadow:none;filter:grayscale(.4) sepia(.3) hue-rotate(165deg) saturate(1.25) brightness(1.08) drop-shadow(0 0 5px rgba(120,187,233,.55))}

/* Le décor couvre la fenêtre, quelle que soit la hauteur des règles ouvertes. */
body:not(.edition){background:#21180f url('assets/decor-sans-bandeaux.png') center top/cover no-repeat fixed;min-height:100vh}
.scene{background:transparent}

/* Surbrillance légère : couleurs d’origine conservées. */
.bandeau[aria-expanded=true],.bandeau:hover,.bandeau:focus-visible{filter:brightness(1.055) drop-shadow(0 0 3px rgba(173,209,232,.28));box-shadow:none}

/* L’en-tête fait partie du décor fixe ; retire sa copie qui défilait. */
.scene::before{content:none;display:none}

/* Bloc des règles plus compact et lumière adoucie. */
nav{width:40%;margin-left:30%;filter:brightness(.87)}
.libelle-ajoute{font-size:1.22cqw}
.romain-ajoute{font-size:1.9cqw}
.contenu{padding:1cqw 1.6cqw}
.contenu summary{font-size:1.25cqw}
.contenu p{font-size:1.05cqw}
.retour-haut{position:fixed;right:22px;bottom:22px;z-index:10;display:flex;flex-direction:column;align-items:center;justify-content:center;width:76px;height:82px;cursor:pointer;border:3px double #a47a3c;border-radius:8px;color:#d6b577;background:linear-gradient(135deg,#29241b,#100e0b 55%,#32271b);box-shadow:inset 0 0 0 2px #100d08,inset 0 0 12px #67461d66,0 4px 12px #0009;text-shadow:0 2px #080604;font-family:Georgia,serif}
.retour-haut>span:first-child{display:block;font-size:40px;line-height:40px;transform:rotate(-45deg)}
.retour-texte{font-size:13px;font-variant:small-caps;letter-spacing:1px}
.retour-haut:hover{color:#f6dca4;border-color:#d3af65;background:linear-gradient(135deg,#392f21,#19150e)}
.retour-haut:focus-visible{outline:2px solid #f5daa2;outline-offset:4px}
body.edition .retour-haut{display:none}
@media(max-width:600px){.retour-haut{right:12px;bottom:12px;width:62px;height:70px}}

/* Retour à la page précédente, en haut à gauche. */
.retour-haut{top:20px;left:20px;right:auto;bottom:auto}
.retour-haut>span:first-child{transform:none}
/* Le nom repose directement sur la texture continue du bandeau. */
.bandeau{background-image:url('assets/bandeaux-sans-textes.png')}
.libelle-ajoute,.bandeau[aria-expanded=true] .libelle-ajoute,.bandeau:hover .libelle-ajoute,.bandeau:focus-visible .libelle-ajoute{background:none;background-blend-mode:normal}
@media(max-width:600px){.retour-haut{top:12px;left:12px;right:auto;bottom:auto}}

/* Bouton retour en acier sombre et or vieilli, aux coins ciselés. */
.retour-haut,.retour-haut:hover{width:104px;height:94px;padding:0;border:0;border-radius:0;background:none;box-shadow:none;isolation:isolate;color:#e3c589;filter:drop-shadow(0 4px 6px #000a)}
.fleche-medievale{position:absolute;inset:0;width:100%;height:100%;z-index:-1;overflow:visible}
.retour-texte{position:absolute;bottom:19px;left:0;width:100%;text-align:center;font-size:12px;letter-spacing:1.8px;font-variant:small-caps;text-shadow:0 2px 2px #000}
.retour-haut:hover{filter:brightness(1.13) drop-shadow(0 4px 7px #000a)}
.retour-haut:focus-visible{outline:2px solid #f3d69c;outline-offset:4px}
@media(max-width:600px){.retour-haut,.retour-haut:hover{width:86px;height:80px}.retour-texte{font-size:10px;bottom:16px}}

/* Retour encadré d’or. */
.retour-haut,.retour-haut:hover{width:116px;height:78px}
.retour-texte{bottom:13px;font-size:11px;letter-spacing:2px;color:#e0c28b}
@media(max-width:600px){.retour-haut,.retour-haut:hover{width:98px;height:66px}.retour-texte{bottom:11px;font-size:10px}}

/* Décor affiché comme une image fixe indépendante du contenu. */
body:not(.edition){background:#21180f}
.decor-fixe{position:fixed;inset:0;width:100%;height:100%;object-fit:cover;object-position:center top;z-index:0;pointer-events:none}
body>main{position:relative;z-index:1}
body.edition .decor-fixe{display:none}
.retour-haut,.retour-haut:hover{width:170px;height:72px;border:0;background:none;box-shadow:none;display:block;padding:0;filter:drop-shadow(0 3px 5px #0008)}
.retour-parchemin{display:block;width:100%;height:100%;object-fit:contain}
.retour-haut .retour-texte{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%)}
.retour-haut:hover{filter:brightness(1.08) drop-shadow(0 3px 6px #0008)}
@media(max-width:600px){.retour-haut,.retour-haut:hover{width:132px;height:56px}}
