/* Jeud'idées — bas de page dynamisé, aux couleurs du Bon Sens des Territoires (29/10/2026).
   Le haut de page garde sa présentation d'origine. Illustrations animées à l'apparition (classe .jx-on posée par le script),
   cartes, parcours et appel final plus vivants. Textes inchangés ; animations coupées si le visiteur réduit les animations. */
body .jd.bst-page{--jx-nuit:#080e46;--jx-bleu:#0b53e8;--jx-or:#ff4918;}

/* ---------- Cartes des rencontres ---------- */
body .jd.bst-page .cards .card{transition:transform .4s cubic-bezier(.2,.8,.25,1),box-shadow .4s}
body .jd.bst-page .cards .card:hover{transform:translateY(-8px);box-shadow:0 26px 50px rgba(8,14,70,.16)}
body .jd.bst-page .jx-ill{display:flex;justify-content:center;line-height:0;overflow:hidden;height:190px;padding:14px 0 0;background:var(--paper,#f7f9fe)}
body .jd.bst-page .jx-ill svg{display:block;height:100%;width:auto;max-width:100%;transition:transform .6s cubic-bezier(.2,.8,.25,1)}
@media(max-width:700px){body .jd.bst-page .jx-ill{height:150px}}
body .jd.bst-page .cards .card:hover .jx-ill svg{transform:scale(1.04)}

/* Illustrations : état de départ (avec script), puis animation à l'apparition */
.jx-js .jx-ill .jx-trace{stroke-dasharray:1;stroke-dashoffset:1}
.jx-js .jx-ill.jx-on .jx-trace{animation:jxTrace 1.6s .3s cubic-bezier(.4,0,.2,1) forwards}
.jx-js .jx-ill.jx-on .jx-trace.jx-d1{animation-delay:.7s}
.jx-js .jx-ill .jx-barre,.jx-js .jx-ill .jx-col{transform-box:fill-box;transform-origin:left center;transform:scaleX(0)}
.jx-js .jx-ill .jx-col{transform-origin:center bottom;transform:scaleY(0)}
.jx-js .jx-ill.jx-on .jx-barre,.jx-js .jx-ill.jx-on .jx-col{animation:jxPousse .7s .2s cubic-bezier(.2,.8,.25,1) forwards}
.jx-js .jx-ill.jx-on .jx-d1{animation-delay:.4s}
.jx-js .jx-ill.jx-on .jx-d2{animation-delay:.6s}
.jx-ill .jx-point{transform-box:fill-box;transform-origin:center}
.jx-ill.jx-on .jx-point{animation:jxPouls 2.2s 1.8s ease-in-out infinite}
.jx-ill .jx-bulle{transform-box:fill-box;transform-origin:center;animation:jxBulle 9s ease-in-out infinite alternate}
.jx-ill .jx-b2{animation-duration:11s;animation-direction:alternate-reverse}
.jx-ill .jx-p1,.jx-ill .jx-p2{transform-box:fill-box;transform-origin:center bottom;animation:jxRespire 4.2s ease-in-out infinite}
.jx-ill .jx-p2{animation-delay:-2.1s}
.jx-ill .jx-livre{transform-box:fill-box;transform-origin:center;animation:jxLivre 5s ease-in-out infinite}
.jx-ill .jx-euro{transform-box:fill-box;transform-origin:center;animation:jxEuro 6s ease-in-out infinite}
body .jd.bst-page .cards .card:hover .jx-p1{animation-duration:1.6s}
body .jd.bst-page .cards .card:hover .jx-p2{animation-duration:1.6s}

/* ---------- Parcours 01 / 02 / 03 : version chic (29/10/2026) ---------- */
body .jd.bst-page .journey{border-top:0 !important;gap:0 !important;background:#fff;border:1px solid var(--line,#e1e6f2) !important;border-radius:18px;overflow:hidden;margin-bottom:40px}
body .jd.bst-page .journey>div{background:#fff !important;border:0 !important;border-right:1px solid var(--line,#e1e6f2) !important;border-radius:0 !important;padding:34px 30px 32px !important;transition:background .35s}
body .jd.bst-page .journey>div:last-child{border-right:0 !important}
body .jd.bst-page .journey>div::before{height:3px;background:var(--jx-or)}
body .jd.bst-page .journey>div:nth-child(2)::before{transition-delay:.25s}
body .jd.bst-page .journey>div:nth-child(3)::before{transition-delay:.5s}
body .jd.bst-page .journey>div:hover{background:#f7f9fe !important}
body .jd.bst-page .jx-pic{position:relative;display:grid;place-items:center;width:58px;height:58px;border-radius:16px;background:var(--jx-nuit);color:#fff;margin-bottom:18px;box-shadow:0 12px 24px rgba(8,14,70,.18);transition:transform .4s cubic-bezier(.2,.8,.25,1)}
body .jd.bst-page .jx-pic::after{content:"";position:absolute;right:-5px;bottom:-5px;width:14px;height:14px;border-radius:4px;background:var(--jx-or)}
body .jd.bst-page .jx-pic svg{width:28px;height:28px}
body .jd.bst-page .journey>div:hover .jx-pic{transform:translateY(-4px) rotate(-4deg)}
body .jd.bst-page .journey span{display:block;font-size:12px !important;letter-spacing:.16em !important;color:var(--jx-or) !important;font-weight:800}
body .jd.bst-page .journey p{margin-top:10px !important;font-size:17px !important;line-height:1.45;color:var(--jx-nuit) !important;font-weight:600}
.jd-js body .jd.bst-page .journey .jx-t,.jd-js .jd.bst-page .journey .jx-t{stroke-dasharray:1;stroke-dashoffset:1}
.jd-js .jd.bst-page .journey>div.in .jx-t{animation:jxTrace 1.4s .35s cubic-bezier(.4,0,.2,1) forwards}
.jd-js .jd.bst-page .journey>div:nth-child(2).in .jx-t{animation-delay:.6s}
.jd-js .jd.bst-page .journey>div:nth-child(3).in .jx-t{animation-delay:.85s}
@media(max-width:900px){body .jd.bst-page .journey>div{border-right:0 !important;border-bottom:1px solid var(--line,#e1e6f2) !important} body .jd.bst-page .journey>div:last-child{border-bottom:0 !important}}

/* ---------- Appel final « La parole est à vous » : version chic ---------- */
body .jd.bst-page .callout{position:relative;overflow:hidden;background:linear-gradient(120deg,#0a1636,var(--jx-nuit) 55%,#142c74) !important;border-radius:20px !important;border:0 !important;padding:48px 300px 48px 48px !important;box-shadow:0 30px 60px rgba(8,14,70,.18)}
body .jd.bst-page .callout::after{display:none}
body .jd.bst-page .callout>div{position:relative;z-index:1}
body .jd.bst-page .callout h3{position:relative;display:inline-block;font-size:clamp(26px,3vw,36px) !important;letter-spacing:-.5px}
body .jd.bst-page .callout h3::after{content:"";position:absolute;left:0;bottom:-10px;height:3px;width:0;background:var(--jx-or);transition:width 1s .4s cubic-bezier(.2,.8,.25,1)}
body .jd.bst-page .callout.in h3::after{width:56px}
body .jd.bst-page .callout p{margin-top:22px !important;font-size:17px;max-width:520px}
body .jd.bst-page .callout .btn{position:relative;overflow:hidden}
body .jd.bst-page .jx-deco{position:absolute;right:-10px;top:50%;transform:translateY(-50%);width:300px;height:auto;pointer-events:none}
body .jd.bst-page .jx-deco path:nth-child(1){transform-box:fill-box;transform-origin:center;animation:jxBulle 9s ease-in-out infinite alternate}
body .jd.bst-page .jx-deco path:nth-child(2){transform-box:fill-box;transform-origin:center;animation:jxBulle 11s ease-in-out infinite alternate-reverse}
.jd-js .jd.bst-page .callout .jx-t{stroke-dasharray:1;stroke-dashoffset:1}
.jd-js .jd.bst-page .callout.in .jx-t{animation:jxTrace 1.4s .5s cubic-bezier(.4,0,.2,1) forwards}
@media(max-width:900px){body .jd.bst-page .callout{padding:36px 28px 150px !important} body .jd.bst-page .jx-deco{top:auto;bottom:-30px;transform:none;width:200px}}

/* Visuels des pages Éducation / Pouvoir d'achat, même principe que les cartes */
body .jd.bst-page .jx-hero-ill{border-radius:18px !important;box-shadow:0 24px 50px rgba(8,14,70,.2) !important;background:#17285e}

@keyframes jxTrace{to{stroke-dashoffset:0}}
@keyframes jxPousse{to{transform:none}}
@keyframes jxPouls{0%,100%{transform:scale(1)}50%{transform:scale(1.45)}}
@keyframes jxBulle{from{transform:translate(0,0) scale(1)}to{transform:translate(-14px,10px) scale(1.08)}}
@keyframes jxRespire{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@keyframes jxLivre{0%,100%{transform:rotate(0)}50%{transform:rotate(-4deg) translateY(-6px)}}
@keyframes jxEuro{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-14px) rotate(8deg)}}
@keyframes jxHalo{0%{box-shadow:0 0 0 0 rgba(255,73,24,.5)}70%{box-shadow:0 0 0 12px rgba(255,73,24,0)}100%{box-shadow:0 0 0 0 rgba(255,73,24,0)}}
@keyframes jxLumiere{from{background-position:0% 0%,0 0}to{background-position:100% 100%,0 0}}
@keyframes jxReflet{0%{left:-60%}35%,100%{left:130%}}

@media(prefers-reduced-motion:reduce){
  .jx-ill *,body .jd.bst-page .callout,body .jd.bst-page .jx-deco path,body .jd.bst-page .journey .jx-t,body .jd.bst-page .callout .jx-t{animation:none !important;stroke-dashoffset:0 !important}
  .jx-js .jx-ill .jx-trace{stroke-dashoffset:0}
  .jx-js .jx-ill .jx-barre,.jx-js .jx-ill .jx-col{transform:none}
}
/* Illustrations institutionnelles (29/10/2026) : le bleu nuit occupe toute la largeur de la carte */
body .jd.bst-page .jx-ill{padding:0;background:#17285e}
body .jd.bst-page .jx-ill svg{width:100%;height:100%}
