/* R3 — scoped to the student's journal; home and parent console keep their layout. */
.journal-redesign{color:#eef6ff}
.journal-redesign .constellation-zone{background:#101c35;border:1px solid #49647d66;border-radius:20px;padding:22px;margin-bottom:24px}
.journal-redesign .journal-section-title{display:flex;align-items:center;gap:12px;color:#f1e1bc;line-height:1.25;flex-wrap:nowrap}
.journal-redesign .journal-section-title img{object-fit:contain;flex-shrink:0}
.journal-redesign .journal-profile-card{margin-bottom:22px}
.journal-redesign .journal-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.journal-redesign .journal-card{min-width:0}
.journal-redesign .journal-card-title,.journal-redesign .journal-card-subtitle{overflow-wrap:anywhere}
.journal-redesign .reward-grid:not(.chrono-rewards){grid-template-columns:repeat(5,minmax(0,1fr));gap:11px}
.journal-redesign .reward-card{min-width:0;min-height:145px;padding:12px 7px;border-color:#668aa877;border-radius:14px}
.journal-redesign .reward-card.earned{border-color:#e2c57f;background:#24374a}
.journal-redesign .reward-card b{font-size:13px;line-height:1.3;overflow-wrap:anywhere}
html body .journal-redesign .reward-art{width:83px;height:83px}
html body .journal-redesign .reward-card .reward-art .reward-lock{width:38px;height:38px}
.journal-redesign .chrono-rewards{grid-template-columns:repeat(3,minmax(0,1fr))}
.journal-redesign .journal-chrono-records{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.journal-redesign .journal-chrono-records p{margin:0;padding:9px 12px;background:#1a314b;border-radius:9px;color:#d4e9f7;font-size:13px}
.journal-redesign .journal-chrono-records strong{color:#f2d290}
.journal-redesign .journal-chronos>p{font-size:14px;line-height:1.5;color:#c7dcee}
.journal-redesign .journal-chronos .journal-section-title img{width:80px;height:80px}
.journal-sky{color:#ecf5ff;padding:20px;border-radius:18px;background-color:#090f24;background-image:radial-gradient(ellipse at 8% 38%,#244b7460,transparent 42%),radial-gradient(ellipse at 94% 61%,#54386f50,transparent 40%),radial-gradient(circle at 17px 31px,#d5e9fa85 .8px,transparent 1.5px),radial-gradient(circle at 93px 69px,#9eb6df65 .7px,transparent 1.4px);background-size:100% 100%,100% 100%,193px 211px,271px 237px}
.journal-sky *{box-sizing:border-box}
.journal-sky-disc{position:relative;width:94%;aspect-ratio:1;border-radius:50%;margin:12px auto 22px;border:1px solid #8bbad45c;background-color:#0b1830;background-image:radial-gradient(ellipse at 25% 25%,#25597775,transparent 48%),radial-gradient(ellipse at 78% 65%,#46336670,transparent 46%),radial-gradient(circle at 12px 21px,#b8d6e580 .8px,transparent 1.5px);background-size:100% 100%,100% 100%,103px 117px;box-shadow:0 0 35px #668bc012}
.journal-sky-disc:before{content:'';position:absolute;inset:1.6%;border:1px solid #52759726;border-radius:50%;pointer-events:none}
.journal-sky-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.journal-sky-lines path{fill:none;vector-effect:non-scaling-stroke}
.journal-sky .sky-link{stroke:#7094b5;stroke-width:.7;opacity:.4}
.journal-sky .sky-link.lit{stroke:#f1d59a;stroke-width:1.1;opacity:.85}
.journal-sky .sky-voyage{stroke-width:.8;opacity:.38}
.journal-sky .sky-voyage.latest{stroke-width:1.4;opacity:.8}
.journal-sky .sky-voyage.related{stroke-width:1.65;opacity:1}
html body .journal-sky .sky-planet{position:absolute;transform:translate(-50%,-22px);width:44px;height:44px;min-height:44px;min-width:0;padding:0;border:0;border-radius:50%;box-shadow:none;background:transparent;color:#d1e4f5;font:inherit;display:grid;place-items:center;cursor:pointer;overflow:visible}
.journal-sky .sky-orb{width:18px;height:18px;border-radius:50%;background:radial-gradient(circle at 32% 24%,#c2d6e6,#7a94b2 55%,#2d4766);position:relative;display:block;pointer-events:none}
.journal-sky .explored .sky-orb{background:radial-gradient(circle at 32% 24%,#fffdec,#f3d99b 55%,#a77d3f);box-shadow:0 0 10px #f4d28c55}
.journal-sky .sky-planet[aria-pressed=true] .sky-orb{outline:1px solid #9de5f2;outline-offset:17px}
html body .journal-sky .sky-planet:focus-visible{outline:2px solid #fff0b6;outline-offset:5px}
.journal-sky .sky-label{position:absolute;top:48px;left:50%;transform:translateX(-50%);font-size:11px;font-family:Nunito,system-ui,sans-serif;line-height:1.3;color:#c4d6e8;white-space:nowrap;pointer-events:none}
.journal-sky .explored .sky-label{color:#f2dba8}
.journal-sky .sky-planet:hover .sky-label{color:#b5f0fb}
.journal-sky .sky-label .short{display:none}
.journal-sky .sky-domain{position:absolute;transform:translate(-50%,-50%);font-size:11px;letter-spacing:1.5px;font-family:Nunito,system-ui,sans-serif;font-weight:700;color:#a7c3db;pointer-events:none}
.journal-sky .sky-domain.arith{left:35%;top:5.7%;transform:translate(-50%,-50%) rotate(-19deg)}
.journal-sky .sky-domain.geo{left:90%;top:28%;transform:translate(-50%,-50%) rotate(58deg)}
.journal-sky .sky-domain.mes{left:25%;top:88%;transform:translate(-50%,-50%) rotate(28deg)}
.journal-sky .sky-domain.stat{left:73%;top:89%;transform:translate(-50%,-50%) rotate(-30deg)}
.journal-sky-disc{margin-top:32px;margin-bottom:40px}
.journal-sky .sky-domain.arith{left:29%;top:3%;transform:translate(-50%,-50%) rotate(-25deg)}
.journal-sky .sky-domain.geo{left:99%;top:36%;transform:translate(-50%,-50%) rotate(70deg)}
.journal-sky .sky-domain.mes{left:18%;top:89%;transform:translate(-50%,-50%) rotate(39deg)}
.journal-sky .sky-domain.stat{left:75%;top:94%;transform:translate(-50%,-50%) rotate(-31deg)}
.journal-sky .sky-centre{position:absolute;left:49%;top:53%;transform:translate(-50%,-50%);text-align:center;pointer-events:none;line-height:1.4}
.journal-sky .sky-centre strong{display:block;font-size:19px;font-weight:600;color:#f3d598}
.journal-sky .sky-centre span{font-size:9px;letter-spacing:.6px;color:#a7bfd3}
.journal-sky .sky-legend{display:flex;flex-wrap:wrap;gap:16px;font-size:12px;color:#bbd0e3}
.journal-sky .sky-legend span{display:flex;align-items:center;gap:7px}
.journal-sky .sky-legend i{width:8px;height:8px;border-radius:50%;background:#7e9cb7}
.journal-sky .sky-legend i.lit{background:#f3d28c}
.journal-sky .sky-description{margin-top:14px;border-top:1px solid #6f92af30;padding-top:14px;min-height:77px}
.journal-sky .sky-description strong{display:block;font-size:15px;margin-bottom:5px;color:#f0e6ca}
.journal-sky .sky-description p,.journal-sky .sky-travel-note{font-size:13px;line-height:1.5;color:#bbd0e3;margin:0}
.journal-sky .sky-travel-note{margin-top:8px;font-size:12px}
.journal-sky .latest-planet .sky-orb{animation:sky-return 1.4s ease-out 1}
@keyframes sky-return{45%{box-shadow:0 0 20px #f5d999aa}}
@media(max-width:700px){.journal-redesign .journal-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.journal-redesign .reward-grid:not(.chrono-rewards){grid-template-columns:repeat(4,minmax(0,1fr))}.journal-redesign .constellation-zone{padding:14px}.journal-sky{padding:13px}.journal-sky-disc{width:96%}}
@media(max-width:520px){.journal-redesign .reward-grid:not(.chrono-rewards){grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.journal-redesign .reward-card{padding:10px 5px;min-height:132px}.journal-redesign .reward-card b{font-size:12px}html body .journal-redesign .reward-art{width:68px;height:68px}.journal-redesign .journal-cards{grid-template-columns:1fr}.journal-redesign .constellation-zone{padding:12px}.journal-redesign .journal-section-title{font-size:20px;gap:8px}.journal-sky{padding:12px 5px}.journal-sky .sky-label .full{display:none}.journal-sky .sky-label .short{display:inline}.journal-sky .sky-label{top:36px;font-size:11px}.journal-sky .sky-orb{width:10px;height:10px}.journal-sky .sky-planet[aria-pressed=true] .sky-orb{outline-offset:9px}html body .journal-sky .sky-planet{width:32px;height:32px;min-height:32px;transform:translate(-50%,-16px)}.journal-sky .sky-domain{font-size:10px;letter-spacing:.3px}.journal-sky .sky-centre strong{font-size:15px}.journal-sky .sky-centre span{display:none}.journal-sky .sky-description{min-height:100px}.journal-redesign .journal-chronos .journal-section-title img{width:64px;height:64px}}
.journal-sky.reduced *{animation:none!important}
@media(prefers-reduced-motion:reduce){.journal-sky *{animation:none!important}}

/* Les parchemins de découverte et les infobulles gardent leur contour doré. */
/* Panneaux de domaines et petites cartes, selon la maquette validée. */
.journal-domain-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.journal-redesign .journal-domain-grid .journal-section{margin:0;padding:18px;border:1px solid #35536b;border-radius:17px;background:rgba(16,38,59,.94);min-width:0}
.journal-domain-arithmetique,.journal-satellites{grid-column:1/-1}
.journal-group-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.journal-redesign .journal-group-heading .journal-section-title{color:#78e3f5;margin:0;font-size:17px}
.journal-redesign .journal-group-heading img{width:42px;height:42px}
.journal-group-count{color:#f1d18a;font-size:12px;white-space:nowrap}
.journal-redesign .journal-domain-grid .journal-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.journal-redesign .journal-domain-arithmetique .journal-cards,.journal-redesign .journal-satellites .journal-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
html body .journal-redesign .journal-card{display:grid;grid-template-columns:36px minmax(0,1fr);column-gap:10px;row-gap:3px;padding:12px 10px;background:#192f46;border:1px solid #304b61;border-radius:11px;box-shadow:none;min-width:0;opacity:1}
html body .journal-redesign .journal-card-explored{background:#193e4d;border-color:#598d9b}
html body .journal-redesign .journal-card-icon{width:36px;height:36px;grid-row:1/3}
html body .journal-redesign .journal-card-title{font-size:13px;line-height:1.3;margin:0}
.journal-redesign .journal-card-result{grid-column:2}
html body .journal-redesign .journal-card-score{display:block;color:#c5e9fa;font-size:12px;font-weight:500;line-height:1.4}
.journal-redesign .journal-card-explored .journal-card-score{color:#8eecf2}
.journal-redesign .journal-card-subtitle,.journal-redesign .journal-card-date,.journal-redesign .journal-card-appreciation{display:none}
.journal-planets-heading{font-size:21px;color:#eef6ff;margin:24px 0 16px}
@media(max-width:620px){.journal-domain-grid{grid-template-columns:minmax(0,1fr)}.journal-redesign .journal-domain-grid .journal-section{padding:13px}.journal-redesign .journal-domain-grid .journal-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.journal-group-heading{gap:8px}.journal-redesign .journal-group-heading .journal-section-title{font-size:16px}.journal-group-count{font-size:11px}}
@media(max-width:360px){html body .journal-redesign .journal-card{grid-template-columns:28px minmax(0,1fr);column-gap:7px;padding:10px 7px}html body .journal-redesign .journal-card-icon{width:28px;height:28px}}
html body .discovery-parchment{--discovery-edge:#d7b66b;--discovery-roll:linear-gradient(rgba(226,246,255,.96),rgba(166,210,234,.94),rgba(203,233,248,.96));background:rgba(192,225,242,.94);color:#163650}
html body .discovery-parchment:before,html body .discovery-parchment:after{box-shadow:0 3px 8px #102f4926}
/* Conserver la silhouette dentelée, les dimensions et le contour d'origine. */

/* Noms des quatre groupes dorés, sans modifier les noms des planètes. */
.journal-sky .sky-domain{color:#efd18c}

/* Les titres suivent un arc extérieur, centré sur le barycentre de leur groupe. */
.journal-sky-disc{width:82%;margin-top:38px;margin-bottom:48px}
.sky-domain-labels{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.sky-domain-labels text{fill:#efd18c;font-family:Nunito,system-ui,sans-serif;font-size:1.7px;font-weight:700;letter-spacing:.16px}
@media(max-width:700px){.sky-domain-labels text{font-size:2.4px;letter-spacing:.1px}}
@media(max-width:520px){.journal-sky-disc{width:82%;margin-top:30px;margin-bottom:38px}.sky-domain-labels text{font-size:3px;letter-spacing:.08px}}

/* Version validée : Cinzel locale, couronne régulière et texte mobile proportionné. */
@font-face{font-family:Cinzel;src:url('../../assets/fonts/cinzel.ttf') format('truetype');font-weight:400 900;font-display:swap}
.journal-sky-disc{width:70%;margin:12% auto 14%;container-type:inline-size}
.sky-domain-labels text{font-family:Cinzel,Georgia,serif;font-size:2.3px;font-weight:600;letter-spacing:.15px}
.zodiac-symbols{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.zodiac-symbols circle{fill:none;stroke:#d6b76c;stroke-width:.1;opacity:.27}
.zodiac-symbols text{fill:#d4b978;font-family:'Segoe UI Symbol','DejaVu Sans',serif;font-size:4.3px;text-anchor:middle;dominant-baseline:central;opacity:.8}
@media(max-width:520px){.journal-sky-disc{width:70%;margin:12% auto 14%}.sky-domain-labels text{font-size:3.7px;letter-spacing:.08px}.zodiac-symbols text{font-size:5.5px}.journal-sky .sky-label{font-size:8px;font-size:3.2cqw;top:32px}.journal-sky .sky-centre strong{font-size:12px}}

/* Compteur plus discret, à la demande de l’utilisateur. */
.journal-sky .sky-centre strong{font-size:16px}
@media(max-width:520px){.journal-sky .sky-centre strong{font-size:10px}}

/* Trajets R6 : les noms restent dégagés et les passages répétés restent fins. */
.journal-sky .sky-label{top:calc(50% + 3cqw);font-size:min(11px,3.2cqw)}
.journal-sky .sky-link{opacity:.22;stroke-width:.65}
.journal-sky .sky-route-halo{stroke:#101b31;stroke-width:3;opacity:.8;pointer-events:none}
.journal-sky .sky-voyage{opacity:.22;stroke-width:.8;pointer-events:stroke;cursor:pointer}
.journal-sky .sky-voyage.related{opacity:.65;stroke-width:1}
.journal-sky .sky-voyage.latest,.journal-sky .sky-voyage.selected-route{opacity:1;stroke-width:1.25}
.journal-sky .sky-travel-light{pointer-events:none}

.journal-sky.busy .sky-voyage{opacity:.09}
.journal-sky.busy .sky-voyage.related{opacity:.35}
.journal-sky.busy .sky-voyage.latest{opacity:1}

/* Encyclopédie du carnet : planète légèrement réduite (environ 15 %). */
.journal-redesign .discovery-art{width:96px;height:96px}
@media(max-width:550px){.journal-redesign .discovery-art{width:76px;height:76px}}

/* R9 : la planète choisie prime sur le dernier trajet, même dans une carte chargée. */
/* Consultation directe par planète, retour à la vue générale. */
.journal-sky .sky-voyage{pointer-events:none;cursor:default}
.journal-sky.planet-focus .sky-voyage:not(.related){opacity:.09;stroke-width:.8}
.journal-sky.planet-focus .sky-voyage.related{opacity:1;stroke-width:1.25}
.journal-sky.planet-focus .sky-route-halo{opacity:.15}
.journal-sky.planet-focus g:has(.related) .sky-route-halo{opacity:.95}
.journal-sky:not(.planet-focus) .sky-voyage{opacity:.75;stroke-width:.8}
.journal-sky .sky-selection-hint{font-size:13px;line-height:1.5;color:#bbd0e3;margin:8px 0 0}

/* Impulsion visible sur les trajets de la planète sélectionnée. */
.journal-sky .sky-travel-light{filter:drop-shadow(0 0 2px #fff1b8)}
