/* Espace auteur : reprend la suite, avec quelques ajouts */
.espace-auteur main { max-width: 900px; }
.carte-connexion .aide.centre { text-align: center; margin: -.4rem 0 1rem; }
/* ---------- Jalons magiques ---------- */
.jalons { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; padding-top: .4rem; }
.jalons-chemin { position: absolute; left: 10%; right: 10%; top: calc(.4rem + 34px); height: 4px; border-radius: 4px; background: rgba(201,167,77,.2); }
.jalons-chemin i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, #b8913a, #f0d27e, #fff3c4, #f0d27e); background-size: 200% 100%; box-shadow: 0 0 12px rgba(240,210,126,.8); transition: width 1.6s cubic-bezier(.2,.8,.2,1); animation: chemin-brille 3s linear infinite; }
.jalon { all: unset; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .25rem; padding: .2rem 0 .4rem; color: #9a9486; animation: jalon-entre .7s cubic-bezier(.2,1.4,.4,1) both; }
button.jalon { cursor: pointer; }
.jalon .sceau { position: relative; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: #f3eee2; border: 1px solid rgba(201,167,77,.3); transition: transform .3s; }
.jalon .coeur { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #fffdf8; font-size: 1.15rem; font-weight: 700; color: #b0a58a; }
.jalon strong { font-size: 1.05rem; color: inherit; }
.jalon .j-nom { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
/* atteint : medaillon dore qui respire et scintille */
.jalon.atteint { color: var(--or-fonce); }
.jalon.atteint .sceau { background: radial-gradient(circle at 35% 30%, #fff6d0, #f0d27e 45%, #b8913a 100%); border: 0; box-shadow: 0 0 0 3px rgba(240,210,126,.35), 0 8px 22px rgba(184,145,58,.45); animation: sceau-respire 3.2s ease-in-out infinite; overflow: hidden; }
.jalon.atteint .sceau::after { content: ""; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.75) 50%, transparent 60%); transform: translateX(-120%); animation: reflet 4.5s ease-in-out infinite; }
.jalon.atteint .coeur { background: var(--nuit-degrade); color: #f0d27e; font-size: 1.6rem; text-shadow: 0 0 10px rgba(240,210,126,.9); }
.jalon.atteint strong { color: var(--nuit); }
.jalon.atteint:hover .sceau, .jalon.atteint:focus-visible .sceau { transform: translateY(-4px) scale(1.06) rotate(-4deg); }
.jalon.atteint:focus-visible { outline: 2px solid var(--nuit); outline-offset: 4px; border-radius: 12px; }
.jalon .eclat { position: absolute; color: #f0d27e; font-style: normal; font-size: .8rem; pointer-events: none; animation: scintille 2.4s ease-in-out infinite; text-shadow: 0 0 6px rgba(240,210,126,.9); }
.jalon .eclat.e0 { top: 0; left: 14%; animation-delay: .2s; }
.jalon .eclat.e1 { top: 22px; right: 10%; font-size: .6rem; animation-delay: 1s; }
.jalon .eclat.e2 { top: 52px; left: 20%; font-size: .55rem; animation-delay: 1.7s; }
/* prochain : anneau de progression qui pulse */
.jalon.prochain { color: var(--or-fonce); }
.jalon.prochain .sceau { border: 0; animation: anneau-pulse 2s ease-in-out infinite; }
.jalon.prochain .coeur { color: var(--or-fonce); font-size: 1.3rem; }
.jalon.prochain .j-nom { font-weight: 700; }
/* a venir */
.jalon.verrou { opacity: .55; }
.jalon.verrou .coeur { font-size: 1.2rem; }
@media (max-width: 560px) {
  .jalons { gap: .1rem; }
  .jalon .sceau { width: 54px; height: 54px; } .jalon .coeur { width: 42px; height: 42px; font-size: 1rem; }
  .jalon.atteint .coeur { font-size: 1.25rem; }
  .jalons-chemin { top: calc(.4rem + 27px); }
  .jalon .j-nom { font-size: .6rem; letter-spacing: .02em; }
}
/* pluie d'etoiles */
.etincelle { position: fixed; z-index: 1000; pointer-events: none; color: #f0d27e; text-shadow: 0 0 8px rgba(255,230,150,.95); transform: translate(-50%, -50%); animation: etincelle-vole 1.2s cubic-bezier(.15,.7,.3,1) forwards; }
/* celebration d'un nouveau jalon */
.celebration { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 1.2rem; background: rgba(10,18,36,.72); backdrop-filter: blur(3px); animation: fondu .4s ease both; }
.cel-carte { position: relative; max-width: 360px; width: 100%; text-align: center; padding: 2rem 1.5rem 1.5rem; border-radius: 26px; background: var(--nuit-degrade); color: #fff; box-shadow: 0 0 0 1px rgba(240,210,126,.4), 0 30px 80px rgba(0,0,0,.5), 0 0 80px rgba(240,210,126,.25); animation: carte-surgit .7s cubic-bezier(.2,1.5,.4,1) both; overflow: hidden; }
.cel-carte::before { content: ""; position: absolute; inset: -50%; background: conic-gradient(from 0deg, transparent, rgba(240,210,126,.18), transparent 30%); animation: tourne 6s linear infinite; }
.cel-carte > * { position: relative; }
.cel-glyphe { font-size: 4.2rem; line-height: 1; color: #f0d27e; text-shadow: 0 0 24px rgba(240,210,126,1); animation: glyphe-danse 2.4s ease-in-out infinite; }
.cel-titre { font-size: 1.6rem; font-weight: 700; margin: .8rem 0 .3rem; color: #fff; }
.cel-sous { color: #f0d27e; margin: 0 0 1.2rem; }
@keyframes jalon-entre { from { opacity: 0; transform: translateY(14px) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes sceau-respire { 0%, 100% { box-shadow: 0 0 0 3px rgba(240,210,126,.35), 0 8px 22px rgba(184,145,58,.45); } 50% { box-shadow: 0 0 0 6px rgba(240,210,126,.18), 0 8px 30px rgba(240,210,126,.75); } }
@keyframes reflet { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes scintille { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 50% { opacity: 1; transform: scale(1.2) rotate(45deg); } }
@keyframes anneau-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(201,167,77,.45); } 50% { box-shadow: 0 0 0 9px rgba(201,167,77,0); } }
@keyframes chemin-brille { from { background-position: 200% 0; } to { background-position: 0 0; } }
@keyframes etincelle-vole { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.3); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + 40px)) scale(1) rotate(160deg); } }
@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }
@keyframes carte-surgit { from { opacity: 0; transform: scale(.6) translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes tourne { to { transform: rotate(360deg); } }
@keyframes glyphe-danse { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.12) rotate(8deg); } }
@media (prefers-reduced-motion: reduce) {
  .jalon, .jalon.atteint .sceau, .jalon.atteint .sceau::after, .jalon.prochain .sceau, .jalons-chemin i, .cel-carte, .cel-carte::before, .cel-glyphe, .celebration { animation: none !important; transition: none !important; }
}

.tableau tr.total td { font-weight: 700; border-top: 2px solid var(--or); color: var(--nuit); }
.tableau td:first-child { white-space: nowrap; vertical-align: top; }

.hero-graphe svg.graphe-net { width: 100%; height: auto; max-height: 260px; margin-top: .8rem; }
