/* =====================================================================
   Messor Thesaurus — couche « rendu pro » (proposition, non intégrée)
   Tout est préfixé par html.pro : sans cette classe, le site est inchangé.
   ===================================================================== */
html.pro{--pro-ease:cubic-bezier(.2,.7,.2,1);--pro-ease-out:cubic-bezier(.16,1,.3,1);}

/* ---------- 1. Corrections de rendu ---------- */

/* Illustration du hero : plus de rectangle blanc en mode sombre */
/* (l'image est redessinée sur fond transparent : fichier hero-fourmi.webp) */
html.pro:not([data-theme="light"]) .hero-illustration img{filter:invert(1) hue-rotate(180deg) brightness(1.1) saturate(1.15);}
html.pro .hero-illustration img{-webkit-mask-image:none;mask-image:none;}
html.pro .breadcrumb:has(+ .article-page){max-width:760px;margin-left:auto;margin-right:auto;}
html.pro .hero-illustration{max-width:560px;}

/* Halos dorés : plus de bord net à gauche et à droite */
html.pro .hero{overflow:visible;}
html.pro .hero-aura{inset:-6% -30vw;filter:blur(70px);opacity:.5;}
html.pro #accueil{overflow-x:clip;}

/* Pages outils : le titre respire sous la barre de navigation */
html.pro section.page.wrap{padding-top:64px;}
html.pro section.page.wrap > .breadcrumb{margin-top:-24px;}
@media(max-width:700px){html.pro section.page.wrap{padding-top:40px;}}

/* Logo sur une seule ligne sur téléphone */
html.pro .logo{white-space:nowrap;}
@media(max-width:520px){html.pro .logo{font-size:17px;}}

/* ---------- 2. Barre de navigation ---------- */
html.pro header{transition:box-shadow .4s var(--pro-ease),background-color .4s var(--pro-ease);}
html.pro header nav{transition:padding .4s var(--pro-ease);}
html.pro header.pro-scrolled{box-shadow:0 10px 40px -18px rgba(0,0,0,.55);}
html.pro[data-theme="light"] header.pro-scrolled{box-shadow:0 10px 30px -20px rgba(60,45,10,.35);}
html.pro header.pro-scrolled nav{padding-top:12px;padding-bottom:12px;}
html.pro .pro-progress{position:absolute;left:0;right:0;bottom:-1px;height:2px;transform-origin:0 50%;transform:scaleX(0);
  background:linear-gradient(90deg,var(--gold-soft),var(--gold-bright));pointer-events:none;opacity:.9;}
html.pro .nav-links > a{position:relative;}
html.pro .nav-links > a::after{content:"";position:absolute;left:0;right:0;bottom:-6px;height:1px;background:var(--gold-bright);
  transform:scaleX(0);transform-origin:100% 50%;transition:transform .45s var(--pro-ease-out);}
html.pro .nav-links > a:hover::after,html.pro .nav-links > a.active::after{transform:scaleX(1);transform-origin:0 50%;}

/* Menu « Outils » : ouverture en cascade */
html.pro .nav-dropdown-panel{transform-origin:50% 0;transition:opacity .28s var(--pro-ease),translate .38s var(--pro-ease-out),scale .38s var(--pro-ease-out),visibility .28s;scale:.975;}
html.pro .nav-dropdown.open .nav-dropdown-panel{scale:1;}
html.pro .nav-dropdown-panel .nav-cat{opacity:0;translate:0 8px;transition:opacity .2s,translate .2s;}
html.pro .nav-dropdown.open .nav-cat{opacity:1;translate:0 0;transition:opacity .45s var(--pro-ease) calc(var(--i,0)*45ms + 60ms),translate .55s var(--pro-ease-out) calc(var(--i,0)*45ms + 60ms);}
html.pro .nav-dropdown-panel a{transition:background-color .2s,color .2s,padding-left .3s var(--pro-ease-out);}
html.pro .nav-dropdown-panel a:hover{padding-left:16px;}

/* ---------- 3. Apparitions au défilement ---------- */
html.pro.pro-js .pro-rv{opacity:0;transform:translateY(26px) scale(.985);}
html.pro.pro-js .pro-rv.pro-in{opacity:1;transform:none;
  transition:opacity .8s var(--pro-ease) calc(var(--i,0)*70ms),transform .95s var(--pro-ease-out) calc(var(--i,0)*70ms);}
html.pro.pro-js .pro-rv.pro-done{transition:none;}
/* le conteneur ne fait plus son propre fondu : les cartes arrivent une à une */
html.pro.pro-js .home-tools-grid.reveal{opacity:1;transform:none;}

/* ---------- 4. Hero : entrée en scène ---------- */
html.pro.pro-js .hero-illustration img{opacity:0;transform:scale(.94) translateY(14px);animation:proHeroArt 1.3s var(--pro-ease-out) .05s forwards;}
html.pro.pro-js .hero .eyebrow{opacity:0;animation:proFade .9s var(--pro-ease) .35s forwards;}
html.pro .pro-w{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.14em;margin-bottom:-.14em;}
html.pro .pro-w > span{display:inline-block;transform:translateY(105%);animation:proRise 1s var(--pro-ease-out) calc(.45s + var(--i,0)*85ms) forwards;}
html.pro.pro-js .hero h1 em{display:inline-block;opacity:0;transform:translateY(18px);animation:proUp 1.1s var(--pro-ease-out) .95s forwards;}
html.pro.pro-js .hero-curve{opacity:0;animation:proFade 1s var(--pro-ease) 1.2s forwards;}
@keyframes proHeroArt{to{opacity:1;transform:none;}}
@keyframes proFade{to{opacity:1;}}
@keyframes proRise{to{transform:none;}}
@keyframes proUp{to{opacity:1;transform:none;}}

/* ---------- 5. Cartes d'outils ---------- */
html.pro .home-tool-card{position:relative;overflow:hidden;border-radius:14px;
  transition:transform .5s var(--pro-ease-out),border-color .35s,background-color .35s,box-shadow .5s var(--pro-ease-out);}
html.pro .home-tool-card::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity .45s;
  background:radial-gradient(340px circle at var(--mx,50%) var(--my,0%),color-mix(in srgb,var(--gold) 20%,transparent),transparent 65%);}
html.pro .home-tool-card:hover::before{opacity:1;}
html.pro .home-tool-card:hover{transform:perspective(900px) translateY(-6px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));box-shadow:0 26px 50px -30px rgba(0,0,0,.7),0 0 0 1px color-mix(in srgb,var(--gold) 35%,transparent);}
html.pro[data-theme="light"] .home-tool-card:hover{box-shadow:0 24px 44px -28px rgba(90,70,20,.45);}
html.pro .home-tool-card:active{transform:translateY(-2px) scale(.99);transition-duration:.12s;}
html.pro .home-tool-card > *{position:relative;}
html.pro .home-tool-icon{width:52px;height:52px;display:grid;place-items:center;font-size:24px;border-radius:14px;
  background:color-mix(in srgb,var(--gold) 9%,transparent);border:1px solid var(--border);
  transition:transform .6s var(--pro-ease-out),background-color .35s,border-color .35s;}
html.pro .home-tool-card:hover .home-tool-icon{transform:translateY(-3px) rotate(-6deg) scale(1.08);background:color-mix(in srgb,var(--gold) 18%,transparent);border-color:var(--border-strong);}
html.pro .home-tool-card::after{content:"→";position:absolute;right:22px;top:26px;color:var(--gold-bright);font-size:18px;opacity:0;transform:translateX(-10px);
  transition:opacity .35s,transform .5s var(--pro-ease-out);}
html.pro .home-tool-card:hover::after{opacity:1;transform:none;}
html.pro .home-tool-card.fuites-card::after{color:var(--red);}

/* Filtres par catégorie + recherche */
html.pro .pro-filter{display:flex;flex-direction:column;align-items:center;gap:18px;margin:-24px 0 36px;}
html.pro .pro-search{width:min(420px,100%);position:relative;}
html.pro .pro-search input{width:100%;padding:13px 18px 13px 44px;border-radius:999px;border:1px solid var(--border);background:var(--panel);color:var(--cream);
  font:500 14.5px 'Manrope',sans-serif;outline:none;transition:border-color .3s,box-shadow .4s var(--pro-ease);}
html.pro .pro-search input::placeholder{color:var(--muted);}
html.pro .pro-search input:focus{border-color:var(--gold);box-shadow:0 0 0 4px color-mix(in srgb,var(--gold) 18%,transparent);}
html.pro .pro-search svg{position:absolute;left:16px;top:50%;translate:0 -50%;color:var(--muted);pointer-events:none;}
html.pro .pro-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;position:relative;}
html.pro .pro-chip{position:relative;z-index:1;padding:9px 16px;border-radius:999px;border:1px solid var(--border);background:transparent;color:var(--cream-dim);
  font:600 13px 'Manrope',sans-serif;cursor:pointer;transition:color .3s,border-color .3s,transform .2s;}
html.pro .pro-chip:hover{border-color:var(--border-strong);color:var(--cream);}
html.pro .pro-chip:active{transform:scale(.96);}
html.pro .pro-chip small{font-weight:500;opacity:.6;margin-left:6px;font-size:11.5px;}
html.pro .pro-chip.on{color:#17130a;border-color:transparent;}
html.pro[data-theme="light"] .pro-chip.on{color:#fff;}
html.pro .pro-pill{position:absolute;z-index:0;left:0;top:0;border-radius:999px;background:linear-gradient(135deg,var(--gold-bright),var(--gold));
  transition:transform .55s var(--pro-ease-out),width .55s var(--pro-ease-out),height .3s;pointer-events:none;}
html.pro[data-theme="light"] .pro-pill{background:linear-gradient(135deg,var(--gold),var(--gold-bright));}
html.pro .pro-empty{grid-column:1/-1;text-align:center;color:var(--muted);padding:40px 0;font-size:14.5px;}
html.pro .home-tool-card.pro-hide{display:none;}
@media(max-width:700px){
  html.pro .pro-chips{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;width:100%;padding:2px 2px 8px;scrollbar-width:none;}
  html.pro .pro-chips::-webkit-scrollbar{display:none;}
  html.pro .pro-chip{white-space:nowrap;flex-shrink:0;}
}

/* ---------- 6. Boutons et champs ---------- */
html.pro .btn-primary{position:relative;overflow:hidden;transition:transform .35s var(--pro-ease-out),filter .3s,box-shadow .4s var(--pro-ease-out);}
html.pro .btn-primary::after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,transparent 35%,rgba(255,255,255,.45) 50%,transparent 65%);
  transform:translateX(-120%);transition:transform .9s var(--pro-ease-out);pointer-events:none;}
html.pro .btn-primary:hover::after{transform:translateX(120%);}
html.pro .btn-primary:hover{transform:translateY(-2px);box-shadow:0 14px 30px -14px color-mix(in srgb,var(--gold) 80%,transparent);}
html.pro .btn-primary:active,html.pro .app-btn-ghost:active{transform:scale(.97);transition-duration:.1s;}
html.pro .app-btn-ghost{transition:transform .3s var(--pro-ease-out),border-color .3s,color .3s,background-color .3s;}
html.pro .app-input{transition:border-color .3s,box-shadow .4s var(--pro-ease),background-color .3s;}
html.pro .app-input:focus{box-shadow:0 0 0 4px color-mix(in srgb,var(--gold) 16%,transparent);}
html.pro .app-panel{border-radius:16px;}
html.pro .budget-step.pro-step-in{animation:proStep .6s var(--pro-ease-out) both;}
@keyframes proStep{from{opacity:0;transform:translateX(28px);}to{opacity:1;transform:none;}}
html.pro .metric-value.pro-tick{animation:proTick .7s var(--pro-ease-out);}
@keyframes proTick{0%{color:var(--gold-bright);text-shadow:0 0 22px color-mix(in srgb,var(--gold) 70%,transparent);}100%{text-shadow:0 0 0 transparent;}}
html.pro .other-tools-list a{transition:border-color .3s,color .3s,transform .4s var(--pro-ease-out),background-color .3s;}
html.pro .other-tools-list a:hover{transform:translateY(-2px);background:color-mix(in srgb,var(--gold) 8%,transparent);}

/* ---------- 7. FAQ en accordéon ---------- */
html.pro .faq-item.pro-acc{padding:0;}
html.pro .pro-acc .faq-q{margin:0;padding:18px 44px 18px 0;cursor:pointer;position:relative;font-size:15.5px;transition:color .3s;}
html.pro .pro-acc .faq-q:hover{color:var(--cream);}
html.pro .pro-acc .faq-q::after{content:"";position:absolute;right:6px;top:50%;width:11px;height:11px;margin-top:-8px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;
  transform:rotate(45deg);transition:transform .5s var(--pro-ease-out);}
html.pro .pro-acc.open .faq-q::after{transform:translateY(5px) rotate(225deg);}
html.pro .pro-acc .pro-acc-body{display:grid;grid-template-rows:0fr;transition:grid-template-rows .55s var(--pro-ease-out);}
html.pro .pro-acc.open .pro-acc-body{grid-template-rows:1fr;}
html.pro .pro-acc .pro-acc-body > div{overflow:hidden;}
html.pro .pro-acc .faq-a{padding:0 44px 20px 0;opacity:0;transform:translateY(-6px);transition:opacity .35s,transform .5s var(--pro-ease-out);}
html.pro .pro-acc.open .faq-a{opacity:1;transform:none;transition-delay:.12s;}

/* ---------- 8. Articles : confort de lecture ---------- */
html.pro .article-page{max-width:760px;padding:44px 52px 48px;border-radius:18px;}
html.pro .article-detail-head{display:block;text-align:center;padding-bottom:28px;margin-bottom:8px;border-bottom:1px solid var(--border);}
html.pro .article-detail-head h1{font-size:clamp(28px,4.2vw,40px);line-height:1.2;letter-spacing:-.01em;text-wrap:balance;}
html.pro .article-detail-head .article-date{display:block;margin-top:16px;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--gold);}
html.pro .article-detail-body{font-size:16.5px;line-height:1.85;}
html.pro .article-detail-body p{margin-bottom:20px;}
html.pro .article-detail-body > p:first-child{font-size:18.5px;color:var(--cream);line-height:1.75;}
html.pro .article-detail-body p.pro-sub{font-family:'Fraunces',serif;font-size:23px;line-height:1.3;color:var(--gold-bright);margin:44px 0 14px;padding-top:0;}
html.pro .article-detail-body p.pro-sub strong{font-weight:400;}
html.pro .article-detail-body p.pro-sub::before{content:"";display:block;width:34px;height:2px;background:var(--gold);margin-bottom:16px;border-radius:2px;}
html.pro .article-detail-body a{text-decoration:none;background:linear-gradient(currentColor,currentColor) 0 100%/100% 1px no-repeat;transition:background-size .4s var(--pro-ease-out);}
html.pro .article-detail-body a:hover{background-size:0 1px;background-position:100% 100%;}
@media(max-width:700px){html.pro .article-page{padding:28px 20px 32px;}html.pro .article-detail-body{font-size:16px;}}

/* ---------- 9. Pied de page en colonnes ---------- */
html.pro footer .foot-row{display:block;}
html.pro footer .foot-links.pro-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:36px 28px;margin-top:36px;}
html.pro .pro-foot-col{display:flex;flex-direction:column;gap:9px;align-items:flex-start;}
html.pro .pro-foot-col p{font:700 11.5px 'Manrope',sans-serif;letter-spacing:.14em;text-transform:uppercase;color:var(--gold);margin-bottom:6px;}
html.pro .foot-links a{transition:color .25s,transform .35s var(--pro-ease-out);}
html.pro .foot-links a:hover{color:var(--gold-bright);transform:translateX(3px);}
html.pro footer .disclaimer{max-width:none;}
html.pro footer .foot-copy{margin-top:44px;}

/* ---------- 10. Bouton retour en haut ---------- */
html.pro .pro-top{position:fixed;right:22px;bottom:22px;z-index:40;width:46px;height:46px;border-radius:50%;border:1px solid var(--border-strong);
  background:var(--header-bg);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);color:var(--gold-bright);cursor:pointer;display:grid;place-items:center;
  opacity:0;transform:translateY(16px) scale(.9);pointer-events:none;transition:opacity .4s,transform .5s var(--pro-ease-out),border-color .3s;}
html.pro .pro-top.show{opacity:1;transform:none;pointer-events:auto;}
html.pro .pro-top:hover{border-color:var(--gold);transform:translateY(-3px);}

/* ---------- 11. Bascule clair / sombre en cercle ---------- */
html.pro.pro-vt::view-transition-old(root),html.pro.pro-vt::view-transition-new(root){animation:none;mix-blend-mode:normal;}
html.pro.pro-vt::view-transition-new(root){animation:proCircle .75s cubic-bezier(.4,0,.2,1) both;}
@keyframes proCircle{from{clip-path:circle(0 at var(--vx,90%) var(--vy,4%));}to{clip-path:circle(150vmax at var(--vx,90%) var(--vy,4%));}}

/* ---------- Accessibilité et impression ---------- */
@media (prefers-reduced-motion:reduce){
  html.pro *,html.pro *::before,html.pro *::after{animation-duration:.01ms!important;animation-delay:0s!important;transition-duration:.01ms!important;transition-delay:0s!important;}
  html.pro.pro-js .pro-rv{opacity:1;transform:none;}
}
@media print{
  html.pro .pro-top,html.pro .pro-progress,html.pro .pro-filter{display:none!important;}
  html.pro.pro-js .pro-rv{opacity:1!important;transform:none!important;}
  html.pro .pro-acc .pro-acc-body{grid-template-rows:1fr!important;}
  html.pro .pro-acc .faq-a{opacity:1!important;transform:none!important;}
}

/* =====================================================================
   PARTIE 2 — animations pédagogiques et ludiques
   ===================================================================== */

/* Graphiques : la courbe se trace de gauche à droite à sa première apparition */
html.pro .pro-wipe-wait > svg{clip-path:inset(0 100% 0 0);}
html.pro .pro-wipe > svg{animation:proWipe 1.7s cubic-bezier(.45,0,.2,1) both;}
@keyframes proWipe{from{clip-path:inset(0 100% 0 0);}to{clip-path:inset(0 -2% 0 0);}}
html.pro .pro-pie-wait > svg{opacity:0;}
html.pro .pro-pie > svg{animation:proPie 1.1s var(--pro-ease-out) both;transform-origin:50% 50%;}
@keyframes proPie{from{opacity:0;transform:rotate(-70deg) scale(.82);}to{opacity:1;transform:none;}}

/* Versé / gagné : deux zones sous la courbe */
html.pro .pro-area-in{fill:var(--muted);opacity:.2;}
html.pro .pro-area-gain{fill:var(--gold-bright);opacity:.2;}
html.pro .pro-gain-tag{font:700 12px 'Manrope',sans-serif;fill:var(--gold-bright);}
html.pro .pro-gain-tag.in{fill:var(--cream-dim);font-weight:600;}
html.pro .pro-area-legend{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:10px;font:500 12px 'Manrope',sans-serif;color:var(--muted);}
html.pro .pro-area-legend i{display:inline-block;width:12px;height:12px;border-radius:3px;margin-right:7px;vertical-align:-2px;}
html.pro .pro-area-legend b{color:var(--cream);font-weight:700;}

/* Résultat qui vient de changer : la case s'éclaire */
html.pro .metric{transition:background-color .6s,box-shadow .6s;}
html.pro .metric.pro-hit{background:color-mix(in srgb,var(--gold) 9%,transparent);box-shadow:inset 0 -2px 0 var(--gold);}

/* Curseurs sous les champs chiffrés */
html.pro input[type=range].pro-range{-webkit-appearance:none;appearance:none;display:block;width:100%;height:18px;margin:2px 0 0;background:transparent;cursor:pointer;--p:0%;}
html.pro .pro-range::-webkit-slider-runnable-track{height:3px;border-radius:3px;background:linear-gradient(90deg,var(--gold) var(--p),var(--border) var(--p));}
html.pro .pro-range::-moz-range-track{height:3px;border-radius:3px;background:var(--border);}
html.pro .pro-range::-moz-range-progress{height:3px;border-radius:3px;background:var(--gold);}
html.pro .pro-range::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:14px;margin-top:-5.5px;border-radius:50%;background:var(--gold-bright);border:2px solid var(--bg-0);box-shadow:0 0 0 1px var(--gold);transform:scale(.7);transition:transform .3s var(--pro-ease-out),box-shadow .3s;}
html.pro .pro-range::-moz-range-thumb{width:11px;height:11px;border-radius:50%;background:var(--gold-bright);border:2px solid var(--bg-0);box-shadow:0 0 0 1px var(--gold);}
html.pro .pro-range:hover::-webkit-slider-thumb,html.pro .pro-range:focus-visible::-webkit-slider-thumb{transform:scale(1);}
html.pro .pro-range:active::-webkit-slider-thumb{transform:scale(1.25);box-shadow:0 0 0 1px var(--gold),0 0 0 7px color-mix(in srgb,var(--gold) 22%,transparent);}
html.pro .pro-range:focus{outline:none;}

/* Budget : trois jauges en direct */
html.pro .pro-gauges{display:grid;gap:14px;margin:0 0 30px;padding:20px 22px;border:1px solid var(--border);border-radius:14px;background:color-mix(in srgb,var(--gold) 4%,transparent);
  animation:proUp .7s var(--pro-ease-out) both;}
html.pro .pro-gauges[hidden]{display:none;}
html.pro .pro-g-top{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font:600 13px 'Manrope',sans-serif;color:var(--cream);margin-bottom:8px;}
html.pro .pro-g-top span{font-weight:500;color:var(--muted);font-variant-numeric:tabular-nums;}
html.pro .pro-g-top span b{color:var(--cream);font-weight:700;}
html.pro .pro-g-track{position:relative;height:12px;border-radius:8px;background:var(--bg-2);border:1px solid var(--border);}
html.pro .pro-g-fill{height:100%;width:0;border-radius:8px;background:var(--green);transition:width .9s var(--pro-ease-out),background-color .5s;}
html.pro .pro-g.warn .pro-g-fill{background:var(--gold);}
html.pro .pro-g.bad .pro-g-fill{background:var(--red);}
html.pro .pro-g-mark{position:absolute;top:-5px;bottom:-5px;width:2px;background:var(--cream);border-radius:2px;}
html.pro .pro-g-mark::after{content:attr(data-l);position:absolute;top:-17px;left:50%;translate:-50% 0;font:700 10px 'Manrope',sans-serif;letter-spacing:.06em;color:var(--cream-dim);white-space:nowrap;}
html.pro .pro-g-hint{font:500 12px 'Manrope',sans-serif;color:var(--muted);margin-top:2px;}

/* Épargne de précaution : la bouée se remplit */
html.pro .pro-buoy{display:flex;align-items:center;gap:22px;margin-top:26px;}
html.pro .pro-buoy svg{width:112px;height:112px;flex-shrink:0;animation:proBob 4.5s ease-in-out infinite;}
html.pro .pro-buoy .ring{fill:none;stroke:var(--border);stroke-width:16;}
html.pro .pro-buoy .fill{fill:none;stroke:var(--gold-bright);stroke-width:16;stroke-linecap:butt;transform:rotate(-90deg);transform-origin:60px 60px;transition:stroke-dashoffset 1.2s var(--pro-ease-out),stroke .5s;}
html.pro .pro-buoy.full .fill{stroke:var(--green);}
html.pro .pro-buoy .band{stroke:var(--cream);stroke-width:16;fill:none;stroke-dasharray:11 45.55;opacity:.85;transform:rotate(-50deg);transform-origin:60px 60px;}
html.pro .pro-buoy text{font:700 20px 'Manrope',sans-serif;fill:var(--cream);text-anchor:middle;dominant-baseline:central;}
html.pro .pro-buoy p{font:500 13.5px/1.6 'Manrope',sans-serif;color:var(--muted);}
html.pro .pro-buoy p b{color:var(--cream);}
@keyframes proBob{0%,100%{transform:translateY(0) rotate(-3deg);}50%{transform:translateY(-6px) rotate(3deg);}}

/* Fuites budgétaires : la tirelire qui fuit */
html.pro .pro-leak{display:flex;align-items:center;gap:26px;margin:26px 0 30px;padding:18px 24px;border:1px solid rgba(181,106,95,.32);border-radius:14px;background:rgba(181,106,95,.05);}
html.pro .pro-leak svg{width:150px;height:130px;flex-shrink:0;overflow:visible;}
html.pro .pro-leak .pig{fill:color-mix(in srgb,var(--gold) 10%,transparent);stroke:var(--gold-bright);stroke-width:2.2;stroke-linejoin:round;stroke-linecap:round;}
html.pro .pro-leak .pig-l{fill:none;stroke:var(--gold-bright);stroke-width:2.2;stroke-linecap:round;}
html.pro .pro-leak .crack{fill:none;stroke:var(--red);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;opacity:0;transition:opacity .5s;}
html.pro .pro-leak.on .crack{opacity:1;}
html.pro .pro-leak .coin{fill:var(--gold-bright);stroke:var(--gold-soft);stroke-width:1;opacity:0;transform-box:fill-box;transform-origin:center;}
html.pro .pro-leak.on .coin.act{animation:proCoin var(--d,1.6s) cubic-bezier(.5,0,.9,.6) infinite;animation-delay:var(--dl,0s);}
@keyframes proCoin{0%{opacity:0;transform:translate(0,0) rotate(0);}12%{opacity:1;}85%{opacity:1;}100%{opacity:0;transform:translate(var(--dx,6px),44px);}}
html.pro .pro-leak.on .pigg{animation:proShake 2.6s ease-in-out infinite;transform-origin:75px 60px;}
@keyframes proShake{0%,100%{transform:rotate(0);}25%{transform:rotate(-1.6deg);}75%{transform:rotate(1.6deg);}}
html.pro .pro-leak p{font:500 14px/1.65 'Manrope',sans-serif;color:var(--cream-dim);}
html.pro .pro-leak p b{color:var(--red);}
html.pro .pro-leak:not(.on) p b{color:var(--green);}
@media(max-width:600px){html.pro .pro-leak,html.pro .pro-buoy{flex-direction:column;text-align:center;gap:12px;}}

/* Récompense : pluie de pièces discrète */
html.pro .pro-coins{position:fixed;inset:0;pointer-events:none;z-index:90;overflow:hidden;}
html.pro .pro-coins i{position:absolute;top:-24px;width:14px;height:14px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff3c9,var(--gold-bright) 45%,var(--gold-soft));box-shadow:0 0 0 1px rgba(120,90,30,.5);}

/* Mots expliqués */
html.pro .pro-term{border-bottom:1px dotted var(--gold);cursor:help;transition:background-color .3s,color .3s;border-radius:2px;}
html.pro .pro-term:hover,html.pro .pro-term:focus{background:color-mix(in srgb,var(--gold) 16%,transparent);color:var(--gold-bright);outline:none;}
html.pro .pro-tip{position:absolute;z-index:80;max-width:300px;padding:13px 16px;border-radius:12px;background:var(--panel-2);border:1px solid var(--border-strong);color:var(--cream);
  font:500 13px/1.55 'Manrope',sans-serif;box-shadow:0 18px 44px -18px rgba(0,0,0,.6);opacity:0;transform:translateY(8px) scale(.97);transform-origin:50% 100%;pointer-events:none;
  transition:opacity .25s,transform .4s var(--pro-ease-out);}
html.pro .pro-tip.show{opacity:1;transform:none;}
html.pro .pro-tip b{display:block;color:var(--gold-bright);font-weight:700;margin-bottom:3px;}

@media print{html.pro .pro-range,html.pro .pro-leak,html.pro .pro-coins,html.pro .pro-tip,html.pro .pro-gauges{display:none!important;}
  html.pro .pro-wipe-wait > svg,html.pro .pro-pie-wait > svg{clip-path:none!important;opacity:1!important;}}

/* Partager ma simulation */
html.pro .pro-share{max-width:760px;margin:36px auto 0;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px;}
html.pro .pro-share button{display:inline-flex;align-items:center;gap:9px;padding:12px 20px;border-radius:999px;border-color:var(--border-strong);color:var(--gold-bright);font-weight:600;}
html.pro .pro-share button:hover{border-color:var(--gold);background:color-mix(in srgb,var(--gold) 8%,transparent);transform:translateY(-2px);}
html.pro .pro-share p{font:500 12.5px/1.5 'Manrope',sans-serif;color:var(--muted);max-width:460px;}
html.pro .pro-share input{width:100%;font-size:12.5px;}
html.pro .pro-share-note{max-width:640px;margin:-28px auto 36px;padding:12px 18px;border:1px solid var(--border-strong);border-radius:12px;text-align:center;font:500 13.5px/1.5 'Manrope',sans-serif;color:var(--gold-bright);
  background:color-mix(in srgb,var(--gold) 7%,transparent);animation:proUp .7s var(--pro-ease-out) both;}
@media print{html.pro .pro-share,html.pro .pro-share-note{display:none!important;}}

/* PDF de simulation */
html.pro .pro-share-row{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;}
html.pro .pro-pdf{display:none;}
@media print{
  @page{size:A4;margin:14mm 13mm 16mm;}
  html.pro .pro-has-pdf .pro-pdf{display:block!important;}
  html.pro section.pro-has-pdf.page.wrap{padding-top:0!important;}
  html.pro .pro-has-pdf .section-head,html.pro .pro-has-pdf .seo-content,html.pro .pro-has-pdf .trust-box,html.pro .pro-has-pdf .other-tools,html.pro .pro-has-pdf .breadcrumb,html.pro .pro-has-pdf .faq-list,html.pro .pro-has-pdf .app-banner:first-child,
  html.pro .pro-has-pdf [id$="-pdf-export"],html.pro .pro-has-pdf [id$="-synthese-open"],html.pro .pro-has-pdf #sim-print-title,html.pro .pro-has-pdf #acheter-print-title{display:none!important;}
  html.pro .pro-has-pdf .pro-pdf-head{display:grid!important;grid-template-columns:1fr auto;align-items:end;gap:4px 20px;padding-bottom:12px;margin-bottom:18px;border-bottom:2px solid #8a6d1d;}
  html.pro .pro-has-pdf .pro-pdf-head b{display:block;font:500 21px 'Fraunces',Georgia,serif;color:#7a5f18;letter-spacing:.01em;}
  html.pro .pro-has-pdf .pro-pdf-head span{font:500 10.5px 'Manrope',Arial,sans-serif;color:#5c5648;letter-spacing:.08em;}
  html.pro .pro-has-pdf .pro-pdf-head .t{grid-column:1/-1;font:400 19px/1.25 'Fraunces',Georgia,serif;color:#1b1812;margin-top:10px;}
  html.pro .pro-has-pdf .pro-pdf-head .d{grid-column:1/-1;font:500 11px 'Manrope',Arial,sans-serif;color:#5c5648;}
  html.pro .pro-has-pdf .pro-pdf-recap h2{font:700 10.5px 'Manrope',Arial,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#8a6d1d;margin:0 0 9px;}
  html.pro .pro-has-pdf .pro-pdf-recap dl{display:grid;grid-template-columns:1fr 1fr;gap:0 26px;margin:0 0 20px;}
  html.pro .pro-has-pdf .pro-pdf-recap dl div{display:flex;justify-content:space-between;gap:14px;padding:6px 0;border-bottom:1px solid #e4dfd2;break-inside:avoid;}
  html.pro .pro-has-pdf .pro-pdf-recap dt{font:500 11.5px 'Manrope',Arial,sans-serif;color:#5c5648;}
  html.pro .pro-has-pdf .pro-pdf-recap dd{font:700 11.5px 'Manrope',Arial,sans-serif;color:#1b1812;text-align:right;white-space:nowrap;}
  html.pro .pro-has-pdf .pro-pdf-foot{margin-top:22px;padding-top:12px;border-top:1px solid #d8d2c2;break-inside:avoid;}
  html.pro .pro-has-pdf .pro-pdf-foot a{font:700 12px 'Manrope',Arial,sans-serif;color:#7a5f18;text-decoration:underline;}
  html.pro .pro-has-pdf .pro-pdf-foot p{font:400 9.5px/1.5 'Manrope',Arial,sans-serif;color:#5c5648;margin-top:7px;}
  html.pro .pro-has-pdf .metrics{border:1px solid #d8d2c2!important;border-radius:8px;}
  html.pro .pro-has-pdf .pro-area-legend b{color:#1b1812;}
  html.pro .pro-top,html.pro .pro-share{display:none!important;}
  html.pro .pro-has-pdf table{font-size:10.5px!important;}
  html.pro .pro-has-pdf thead th,html.pro .pro-has-pdf tbody td,html.pro .pro-has-pdf .app-table-wrap th,html.pro .pro-has-pdf .app-table-wrap td{padding:3.5px 8px!important;font-size:10.5px!important;}
  html.pro .pro-has-pdf .app-table-wrap td.num,html.pro .pro-has-pdf td .num{font-size:11px!important;}
  html.pro .pro-has-pdf #sim-synthese-block,html.pro .pro-has-pdf [id$="-synthese-block"]{padding:14px 18px!important;margin-top:16px!important;}
  html.pro .pro-has-pdf [id$="-synthese-block"] p,html.pro .pro-has-pdf [id$="-narrative"] p{font-size:11.5px!important;line-height:1.6!important;margin-bottom:8px!important;}
  html.pro .pro-has-pdf [id$="-synthese-block"] h3{font-size:15px!important;margin-bottom:8px!important;}
  html.pro .pro-has-pdf .metric{padding:9px 14px!important;}html.pro .pro-has-pdf .metric-value{font-size:20px!important;}
  html.pro .pro-has-pdf .chart-box svg,html.pro .pro-has-pdf #sim-chart svg{max-height:72mm;}
}
