/* La page « Les Jardins du Royaume » (25/11/2026). Modèle : test/jardins-maquette/apercu-premiere-utilisation-2.html. Fiche : logique/jardins-premiere-visite.md */
/* La page est un dessin d'un seul bloc (1080 de large) : elle prend toute la largeur du panneau, et son texte ne s'agrandit pas (Christophe, 24/11) */
#panneau > #jpPage{zoom:1}   /* « Grands caractères » ne s'applique pas à cette page (Christophe, 24/11) */
#panneau #jpPage{position:relative;width:1080px;margin:-40px -60px 0;color:#F3E9D2;font-family:system-ui,'Segoe UI',sans-serif;-webkit-text-size-adjust:100%;text-size-adjust:100%}
#jpPage #jpTete{padding:36px 20px 0}
#jpPage h1{margin:0 0 26px;text-align:center;font:600 64px system-ui,sans-serif;position:relative}
#jpPage #jpInfo{position:absolute;right:24px;top:50%;transform:translateY(-50%);width:64px;height:64px;border-radius:50%;border:3px solid #D4AF37;background:none;color:#D4AF37;font:italic 700 40px Georgia,serif;cursor:pointer;padding:0}
#jpPage .jpCadre{border:3px solid rgba(255,147,78,.65);border-radius:28px;box-sizing:border-box}
#jpPage .jpAbs{position:absolute}
#jpPage .jpCadre.jpAbs{pointer-events:none}
#jpPage #jpCadreLabo{position:relative;padding:26px 24px 50px;margin:0}
#jpPage #jpCadreLabo.doux{animation:jpDoux 3.2s ease-in-out infinite}
#jpPage .jpLegende{position:absolute;left:50%;top:0;transform:translate(-50%,-55%);background:#243A47;padding:0 22px;font:500 32px system-ui,sans-serif;font-variant:small-caps;letter-spacing:.14em;color:#F3E9D2;white-space:nowrap}
#jpPage .jpLegende.bas{top:auto;bottom:0;transform:translate(-50%,55%)}
#jpPage #jpSerre{display:block;margin:0 auto;width:760px}
#jpPage #jpSerre.touchable{cursor:pointer}
#jpPage .jpToc{position:absolute;left:50%;top:38%;transform:translate(-50%,-50%);font:700 64px Georgia,serif;color:#F3E9D2;background:rgba(25,31,37,.88);padding:10px 30px;border-radius:22px;pointer-events:none;white-space:nowrap}
#jpPage #jpScene{position:relative;width:1080px;height:1780px;margin-top:-60px}
#jpPage .jpJardin{position:absolute;width:300px;height:300px;top:200px;transition:opacity .5s,filter .5s}
#jpPage .jpEteint{opacity:.3;filter:saturate(.4)}
#jpPage .jpJbtn{position:absolute;top:525px;width:250px;height:96px;margin-left:25px;border:4px solid;border-radius:20px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;text-align:center;font:29px/1.15 system-ui,sans-serif;color:#F3E9D2;background:none;padding:0;cursor:pointer}
#jpPage .jpJbtn svg{position:absolute;left:12px;top:10px;width:34px;height:22px;fill:none;stroke:currentColor;stroke-width:6}
#jpPage .jpJbtn.jpEteint{cursor:default}
#jpPage .jpTitre2{position:absolute;top:1215px;font:600 36px system-ui,sans-serif;transform:translateX(-50%);white-space:nowrap}
#jpPage #jpPot{left:240px;top:1265px;height:230px}
#jpPage #jpFrigo{left:40px;top:1265px;height:230px}
#jpPage #jpCahier{left:430px;top:1262px;width:620px}
#jpPage #jpDe{left:252px;top:1512px;width:120px;height:120px}
#jpPage #jpSelecteur{left:202px;top:1648px;width:220px;height:58px}
#jpPage #jpCompte{left:53px;top:1534px;width:120px;height:76px;border-radius:14px;background:#F3E9D2;color:#243A47;font:700 40px system-ui;display:flex;align-items:center;justify-content:center}
#jpPage .jpTitreCahier{position:absolute;top:1312px;transform:translateX(-50%);font:600 44px Georgia,serif;color:#4B2C7A;z-index:4;pointer-events:none}
#jpPage #jpMarques{position:absolute;left:527px;top:1368px;width:190px;display:flex;justify-content:space-between;z-index:4;pointer-events:none}
#jpPage .jpLigneM{display:flex;align-items:baseline;gap:4px;height:40px}
#jpPage .jpLigneM b{font:700 34px Georgia,serif}
#jpPage .jpLigneM span{font:700 32px system-ui,sans-serif;color:#3A3226;transition:transform .3s;display:inline-block}
#jpPage .jpLigneM span.saute{transform:scale(1.5)}
#jpPage .jpLigneM.q b{color:#C0392B} #jpPage .jpLigneM.v b{color:#E67E22} #jpPage .jpLigneM.f b{color:#2E9E55}
/* le cadre de Devî : un texte trop long défile, et le bas s'estompe tant qu'il reste à lire (decisions/interface.md) */
/* Cadre plus grand, hauteur fixe (de 400 à 445), et une barre de défilement à droite à la place de la flèche ▾ (Christophe, 29/11) : il remplit l'espace libre entre les deux grands cadres de la page */
#jpPage #jpDialogue{left:40px;top:705px;width:1000px;height:445px;border:3px solid #AFC3D6;border-radius:24px;box-sizing:border-box;display:flex;align-items:center;gap:24px;padding:18px 20px 18px 24px;z-index:12;background:#243A47}
#jpPage #jpDialogue img{height:150px;border-radius:16px}
#jpPage #jpDcol{flex:1;display:flex;flex-direction:column;gap:22px;max-height:403px;min-height:0}
#jpPage #jpDzone{display:flex;gap:16px;min-height:0;overflow:hidden}
#jpPage #jpDtexte{flex:1;font:46px/1.25 system-ui,sans-serif;overflow-y:auto;min-height:0;scrollbar-width:none}
#jpPage #jpDtexte::-webkit-scrollbar{display:none}   /* la barre du navigateur reste cachée : sur Android, elle est trop fine et disparaît ; la barre jpBarre, faite par la page, la remplace */
#jpPage #jpDtexte.reste{-webkit-mask-image:linear-gradient(#000 75%,transparent);mask-image:linear-gradient(#000 75%,transparent)}
#jpPage #jpBarre{flex:none;width:40px;position:relative;border-radius:20px;background:rgba(175,195,214,.22);cursor:pointer;touch-action:none}
#jpPage #jpBarre[hidden]{display:none}
#jpPage #jpPouce{position:absolute;left:4px;right:4px;top:0;min-height:80px;border-radius:16px;background:#E8C873;touch-action:none}
#jpPage #jpSuiteLigne{font:46px/1.25 system-ui,sans-serif}
#jpPage #jpSuiteLigne:empty{display:none}
#jpPage .jpSuite{color:#FFE27A}
#jpPage #jpDbtns{display:flex;gap:20px}
#jpPage #jpDbtns:empty{display:none}
#jpPage .jpBtn{flex:1 1 auto;height:90px;padding:0 26px;white-space:nowrap;border:4px solid #FF934E;border-radius:20px;background:#243A47;color:#F3E9D2;font:500 42px system-ui,sans-serif;cursor:pointer}
#jpPage .jpBtn.bat{animation:jpBatBtn 1.2s ease-in-out infinite}
@keyframes jpBatBtn{0%,100%{box-shadow:0 0 0 0 rgba(255,226,122,.75)}50%{box-shadow:0 0 0 12px rgba(255,226,122,0)}}
/* À l'arrivée : « Première utilisation », finement souligné, et le cadre qui pulse très doucement (Christophe, 25/11) */
#jpPage #jpDialogue.doux{animation:jpDoux 3.2s ease-in-out infinite;cursor:pointer}
@keyframes jpDoux{0%,100%{box-shadow:0 0 0 0 rgba(255,226,122,0);border-color:#AFC3D6}50%{box-shadow:0 0 26px 6px rgba(255,226,122,.32);border-color:#E8C873}}
#jpPage #jpTitreDoux{width:max-content;margin:0 auto 14px;padding:0 0 6px;border-bottom:2px solid #D4AF37;font:600 52px system-ui,sans-serif}
#jpPage #jpQuandTuVeux{text-align:center;font:44px/1.25 system-ui,sans-serif}
/* le jardin ouvert en grand */
#jpPage #jpFondGrand{left:0;top:110px;width:1080px;height:585px;background:#243A47;display:none}
#jpPage #jpSousTitre{left:60px;top:62px;width:960px;text-align:center;white-space:nowrap;font:40px system-ui;color:#FF9EA8;display:none}
#jpPage #jpGrand{left:280px;top:172px;width:520px;height:520px;display:none;transition:opacity 1.5s}
#jpPage #jpCercle{left:280px;top:172px;width:520px;height:520px;border:32px solid #4DA8FF;border-radius:50%;box-sizing:border-box;display:none}
#jpPage #jpSphere{left:504px;top:520px;width:69px;height:67px;display:none;transition:all 1.8s ease-in-out}
#jpPage #jpSphere.grande{left:325px;top:218px;width:429px;height:415px}
/* les Bestioles et leurs étiquettes */
#jpPage .jpBest{position:absolute;pointer-events:none;transition:left 2s ease-in-out,top 2s ease-in-out,width 2s,opacity .6s;cursor:pointer;filter:drop-shadow(0 0 6px rgba(0,0,0,.6));z-index:3}
#jpPage .jpBest.choisir,#jpPage .jpBest.touchable{padding:45px;margin:-45px 0 0 -45px}
#jpPage .jpBest.choisir{animation:jpBatBest 1.2s ease-in-out infinite}
@keyframes jpBatBest{0%,100%{filter:drop-shadow(0 0 0 rgba(255,226,122,.9))}50%{filter:drop-shadow(0 0 18px rgba(255,226,122,.95))}}
#jpPage .jpEtiq{position:absolute;width:86px;height:52px;background:#F3E9D2;border:3px solid #D4AF37;box-sizing:border-box;cursor:pointer;z-index:5;clip-path:polygon(22% 0,100% 0,100% 100%,22% 100%,0 50%);transform:rotate(-12deg);transform-origin:0 50%;transition:left 2s ease-in-out,top 2s ease-in-out,transform 2s}
#jpPage .jpEtiq::before{content:'';position:absolute;left:14px;top:18px;width:11px;height:11px;border-radius:50%;background:#243A47}
#jpPage .jpEtiq::after{content:'';position:absolute;left:36px;top:21px;width:36px;height:5px;border-radius:3px;background:#B8A88A;box-shadow:0 10px 0 #CFC2A6}
/* vu de loin : une seule étiquette, posée sur la sphère rose, un peu de travers (Christophe, 26/11) */
/* la zone qu'on touche est plus grande que le dessin (testeur, 27/11 : 21 × 15 px à l'écran, trop petit pour le doigt) ; le dessin reste au même endroit */
#jpPage #jpEtiqUne{position:absolute;left:112px;top:375px;width:134px;height:90px;z-index:6;cursor:pointer;display:none;align-items:center;justify-content:center;-webkit-tap-highlight-color:transparent}
#jpPage #jpEtiqUne b{position:relative;display:flex;width:54px;height:32px;background:#F3E9D2;border:3px solid #D4AF37;box-sizing:border-box;clip-path:polygon(24% 0,100% 0,100% 100%,24% 100%,0 50%);transform:rotate(-14deg);align-items:center;justify-content:flex-end;padding-right:7px;font:700 22px system-ui,sans-serif;color:#243A47}
#jpPage #jpEtiqUne span{position:absolute;left:8px;top:10px;width:7px;height:7px;border-radius:50%;background:#243A47}
#jpPage #jpTableau{position:absolute;left:150px;top:200px;width:780px;z-index:7;background:rgba(25,31,37,.96);border:3px solid #D4AF37;border-radius:24px;padding:18px 26px;box-sizing:border-box;display:none;cursor:pointer}
#jpPage #jpTableau h3{margin:0 0 10px;text-align:center;font:600 40px system-ui}
#jpPage .jpRang{display:flex;align-items:center;gap:22px;min-height:96px;border-top:1px solid rgba(243,233,210,.25)}
#jpPage .jpRang img{width:80px;flex:none}
#jpPage .jpRang span{font:42px/1.2 system-ui}
#jpPage .jpRang span.vide{color:#AFC3D6;font-style:italic}
#jpPage .jpFermerT{display:block;margin:12px auto 0;text-align:center;font:36px system-ui;color:#AFC3D6}
/* le guidage : ce qui clignote répond ; ce qui est seulement montré a un cadre fixe en pointillés */
#jpPage #jpAnneau{position:absolute;display:none;border:8px solid #FFE27A;border-radius:30px;pointer-events:none;z-index:19;animation:jpBat 1.2s ease-in-out infinite}
#jpPage #jpAnneau.fixe{animation:none;border:6px dashed rgba(243,233,210,.8)}
@keyframes jpBat{0%,100%{box-shadow:0 0 0 0 rgba(255,226,122,.7);opacity:1}50%{box-shadow:0 0 0 22px rgba(255,226,122,0);opacity:.75}}
/* le cadre « Nommer » */
#jpPage #jpVoile{position:absolute;inset:0;background:rgba(10,15,20,.6);display:none;z-index:10}
#jpPage #jpNommer{left:110px;top:20px;width:860px;z-index:11;background:#243A47;border:5px solid #FF934E;border-radius:30px;box-sizing:border-box;display:none;flex-direction:column;align-items:center;padding:30px}
#jpPage #jpNommer h2{margin:0 0 10px;font:600 56px system-ui}
#jpPage #jpNommer img{height:120px;margin:4px 0 12px}
#jpPage #jpNommer.liste #jpNlabel{display:none}
#jpPage #jpNommer.liste img{height:70px;margin:0 0 8px}   /* liste ouverte : la Bestiole reste visible, en petit (testeur, 29/11) */
#jpPage #jpNommerFermer{position:absolute;right:18px;top:18px;width:70px;height:70px;border-radius:50%;border:3px solid rgba(243,233,210,.7);background:none;padding:14px;cursor:pointer}
#jpPage #jpNommerFermer svg{width:100%;height:100%;fill:none;stroke:#F3E9D2;stroke-width:5;stroke-linecap:round}
#jpPage #jpNommer{position:absolute}
#jpPage #jpNlabel{font:44px system-ui;margin:0 0 16px;align-self:flex-start;margin-left:30px}
#jpPage #jpChamp{width:740px;height:150px;font:50px/1.2 system-ui;resize:none;padding:12px 24px 0;background:#191F25;color:#F3E9D2;border:3px solid #FF934E;border-radius:18px;box-sizing:border-box}
#jpPage #jpSuggerer{margin-top:18px;font:40px system-ui;padding:12px 26px;border:3px dashed #AFC3D6;border-radius:40px;background:transparent;color:#F3E9D2;cursor:pointer}
#jpPage #jpExemples{display:none;flex-wrap:wrap;gap:14px;width:740px;margin-top:14px;max-height:470px;overflow-y:auto;padding-bottom:40px;-webkit-mask-image:linear-gradient(#000 80%,transparent);mask-image:linear-gradient(#000 80%,transparent)}
#jpPage #jpExemples button{font:40px system-ui;padding:12px 22px;border:3px solid #AFC3D6;border-radius:40px;background:#191F25;color:#F3E9D2;cursor:pointer}
#jpPage #jpValider{margin-top:30px;width:320px;flex:none}
/* l'infobulle à droite du titre */
#jpPage #jpBulleInfo{position:absolute;left:60px;top:-30px;width:960px;z-index:25;background:#191F25;border:3px solid #D4AF37;border-radius:24px;padding:26px 30px;box-sizing:border-box;display:none}
#jpPage #jpBulleInfo p{margin:0 0 24px;font:44px/1.3 system-ui}
#jpPage #jpBulleInfo .jpBtn{display:block;width:100%;white-space:normal;height:auto;padding:18px 20px}
/* le Portail : l'animation par-dessus l'Application ; à la fin, « Retourner au jardin » */
#jpPortailVue{position:fixed;inset:0;z-index:300;background:#191F25;display:flex;flex-direction:column}
#jpPortailVue iframe{flex:1;border:0;width:100%}
#jpTitrePortail{flex:none;padding:calc(14px + env(safe-area-inset-top,0px)) 64px 10px;text-align:center;font:500 17px system-ui,sans-serif;font-variant:small-caps;letter-spacing:.12em;color:#F3E9D2;background:#191F25;border-bottom:1px solid rgba(255,147,78,.45)}   /* au-dessus de l'animation, sans la recouvrir */
#jpCroixPortail{position:absolute;right:10px;top:calc(10px + env(safe-area-inset-top,0px));width:44px;height:44px;border-radius:50%;border:2px solid rgba(243,233,210,.7);background:rgba(25,31,37,.75);padding:9px;cursor:pointer}
#jpCroixPortail svg{width:100%;height:100%;fill:none;stroke:#F3E9D2;stroke-width:5;stroke-linecap:round}
/* Confort « aucune animation » */
body.anim-aucune #jpPage #jpDialogue.doux, body.anim-aucune #jpPage #jpCadreLabo.doux, body.anim-aucune #jpPage .jpBtn.bat, body.anim-aucune #jpPage .jpBest.choisir, body.anim-aucune #jpPage #jpAnneau{animation:none}
body.anim-aucune #jpPage #jpDialogue.doux, body.anim-aucune #jpPage #jpCadreLabo.doux{border-color:#E8C873}
@media (prefers-reduced-motion: reduce){ #jpPage #jpDialogue.doux, #jpPage #jpCadreLabo.doux{animation-duration:6s} }
/* la liste des Missions : la deuxième phase de « Une ombre sur le Royaume » */
#panneau .jpSouffle{display:flex;align-items:center;gap:22px;margin:-10px 0 30px;padding:10px 0 0 20px;border-top:1px solid rgba(212,175,55,.35)}
#panneau .jpSouffle img{width:80px;flex:none;animation:jpRespire 1.9s ease-in-out infinite}   /* Luce de profil respire doucement (maquette validée) */
@keyframes jpRespire{0%,100%{transform:scale(1)}50%{transform:scale(1.12)}}
body.anim-aucune #panneau .jpSouffle img{animation:none}
#panneau .jpSouffle i{flex:1;text-align:right;color:#E8C873;font-size:36px}
/* La formule sous le texte de Devî quand la suite n'est pas encore construite (Christophe, 26/11 ; mise en forme : choix de Claude) */
#jpPage .jpBientot{display:block;margin-top:18px;color:#AFC3D6;font-style:italic}
#panneau .jpBientotListe{margin:6px 0 24px;color:#AFC3D6;font-style:italic;text-align:right}
