/* Budget Estimator & Strategy Generator (components/com_estimator). Dark navy hero matching
   the reference-page hero gradient, light card body matching the rest of the site. Only this
   page loads this file (see $GLOBALS['hwFeuilles'] in detail.php), so nothing here is scoped
   defensively against collisions with other pages. */


.est-tool{max-width:820px;padding:3rem 0 5rem}
.est-box{background:#fff;border:1px solid var(--border);border-radius:28px;padding:2.4rem 2.6rem 2.2rem;box-shadow:0 30px 70px -40px rgba(8,20,40,.35)}
.est-progress{height:6px;border-radius:999px;background:var(--bg3);overflow:hidden;margin-bottom:2.5rem}
.est-progress-bar{height:100%;width:14.28%;background:var(--grad-primary);border-radius:999px;transition:width .45s var(--ease)}

.est-step-title{font-family:var(--fd);font-weight:400;font-size:clamp(1.4rem,3vw,1.9rem);color:var(--txt);margin:0 0 .5rem;letter-spacing:-.01em}
.est-step-sub{font-family:var(--fm);font-size:.88rem;color:var(--txt2);margin:0 0 1.6rem}
.est-step{animation:estFadeIn .4s var(--ease)}
.est-step--invalid{animation:estShake .4s}
@keyframes estFadeIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes estShake{0%,100%{transform:translateX(0)}25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}

.est-cards{display:grid;gap:1rem;margin-top:1.6rem}
.est-cards--2{grid-template-columns:1fr 1fr}
.est-cards--3{grid-template-columns:1fr 1fr 1fr}
.est-cards--grid{grid-template-columns:repeat(4,1fr)}
.est-cards--1col{grid-template-columns:1fr}

.est-card{position:relative;display:flex;flex-direction:column;gap:.4rem;padding:1.5rem 1.4rem;border:1px solid var(--border);border-radius:18px;background:var(--off);cursor:pointer;transition:border-color .25s var(--ease),box-shadow .25s var(--ease),transform .25s var(--ease)}
.est-card input{position:absolute;opacity:0;width:0;height:0}
.est-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-card)}
.est-card:has(input:checked){border-color:var(--gold2);background:#fff;box-shadow:0 0 0 2px var(--gold2) inset,var(--shadow-card)}
.est-card-icon{width:40px;height:40px;border-radius:12px;background:var(--grad-primary);color:#fff;display:flex;align-items:center;justify-content:center;font-size:1.05rem;margin-bottom:.3rem}
.est-card--sm{padding:1.1rem .9rem;align-items:center;text-align:center}
.est-card--sm .est-card-icon{margin:0 0 .5rem}
.est-card-label{font-family:var(--fm);font-weight:600;font-size:.92rem;color:var(--txt)}
.est-card--sm .est-card-label{font-size:.82rem}
.est-card-sub{font-family:var(--fm);font-size:.8rem;color:var(--txt2);line-height:1.5}
.est-card--row{flex-direction:row;align-items:center;gap:1rem;padding:1.1rem 1.3rem}
.est-card--row .est-card-icon{margin:0;flex-shrink:0}

.est-group{margin-top:1.4rem}
.est-textarea{width:100%;min-height:110px;border:1px solid var(--border);border-radius:14px;padding:1rem 1.2rem;font-family:var(--fm);font-size:.9rem;color:var(--txt);background:var(--off);resize:vertical}
.est-textarea:focus{outline:none;border-color:var(--gold2)}
.est-micro{font-family:var(--fm);font-size:.8rem;color:var(--txt2);margin-top:.7rem;line-height:1.6}

.est-svc-cat{margin-top:2rem}
.est-svc-cat:first-of-type{margin-top:1.6rem}
.est-svc-cat-title{font-family:var(--fm);font-weight:700;font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:var(--gold2);margin:0 0 .8rem}
.est-svc-list{display:flex;flex-direction:column;gap:.6rem}
.est-svc{display:flex;align-items:center;gap:.9rem;padding:.9rem 1.1rem;border:1px solid var(--border);border-radius:14px;background:var(--off);cursor:pointer;transition:border-color .2s,background .2s}
.est-svc:has(input:checked){border-color:var(--gold2);background:#fff}
.est-svc input{position:absolute;opacity:0;width:0;height:0}
.est-svc-box{width:22px;height:22px;flex-shrink:0;border-radius:6px;border:1.5px solid var(--bg3);display:flex;align-items:center;justify-content:center;color:#fff;font-size:.68rem;transition:all .2s}
.est-svc:has(input:checked) .est-svc-box{background:var(--grad-primary);border-color:transparent}
.est-svc-label{font-family:var(--fm);font-size:.88rem;color:var(--txt);flex:1 1 auto}

.est-result{padding:1rem 0 0;text-align:center}
.est-result .est-step-title{text-align:center}
.est-currency-toggle{position:relative;display:inline-flex;padding:.3rem;border-radius:999px;background:var(--off);border:1px solid var(--border);margin:1.2rem 0 1.8rem}
.est-currency-btn{position:relative;z-index:1;font-family:var(--fm);font-size:.8rem;font-weight:700;padding:.55rem 1.4rem;border-radius:999px;border:none;background:transparent;color:var(--txt2);cursor:pointer;transition:color .25s,background .25s}
.est-currency-btn.is-active{background:var(--grad-primary);color:#1a0f00}
.est-currency-sym{opacity:.8}
.est-result-empty{font-family:var(--fm);font-size:.9rem;color:var(--txt2);padding:2rem 1rem;border:1px dashed var(--bg3);border-radius:16px}

.est-result-cards{display:grid;grid-template-columns:1fr 1fr;gap:1.1rem;margin-bottom:1.4rem}
.est-result-cards:has(#est-monthly-card[hidden]){grid-template-columns:1fr}
.est-result-card{position:relative;overflow:hidden;padding:2rem 1.4rem 1.8rem;border-radius:24px;background:linear-gradient(155deg,#081428 0%,#0d2545 55%,#1a3a6b 100%);color:#fff;text-align:center;box-shadow:0 26px 50px -28px rgba(8,20,40,.7)}
.est-result-card::before{content:'';position:absolute;inset-inline-end:-60px;top:-60px;width:180px;height:180px;border-radius:50%;background:radial-gradient(circle,rgba(255,170,90,.35),transparent 70%)}
.est-result-card--alt{background:linear-gradient(155deg,#2a1608 0%,#4a2610 55%,#7a3f12 100%)}
.est-result-badge{position:relative;display:inline-flex;align-items:center;gap:.5rem;padding:.4rem .9rem;border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);font-family:var(--fm);font-size:.68rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--gold)}
.est-result-from{position:relative;margin-top:1.2rem;font-family:var(--fm);font-size:.78rem;color:rgba(255,255,255,.65)}
.est-result-value{position:relative;margin-top:.2rem;font-family:var(--fd);font-weight:300;font-size:clamp(2rem,6vw,3rem);line-height:1.1;letter-spacing:-.02em;color:#fff;font-variant-numeric:tabular-nums}
.est-result-value small{font-size:.38em;font-weight:600;letter-spacing:.1em;margin-inline-start:.4rem;color:var(--gold)}

.est-included{margin:0 0 1rem;text-align:start}
.est-included-title{font-family:var(--fm);font-size:.7rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--txt2);margin-bottom:.6rem;text-align:center}
.est-included-list{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:center}
.est-chip{display:inline-flex;align-items:center;gap:.45rem;padding:.45rem .85rem;border-radius:999px;background:var(--off);border:1px solid var(--border);font-family:var(--fm);font-size:.76rem;color:var(--txt)}
.est-chip i{color:var(--gold2)}
.est-result-note{font-family:var(--fm);font-size:.78rem;color:var(--txt2);margin:0 0 1.6rem}

.est-blueprint{position:relative;overflow:hidden;border-radius:22px;background:var(--off);border:1px solid var(--border);margin-bottom:2rem;text-align:start}
.est-blueprint-preview{padding:1.6rem 1.8rem;filter:blur(5px);opacity:.55;user-select:none}
.est-blueprint h3{font-family:var(--fm);font-weight:700;font-size:.9rem;color:var(--txt);margin:0 0 .6rem}
.est-blueprint p{font-family:var(--fm);font-size:.86rem;color:var(--txt2);line-height:1.7;margin:0}
.est-blueprint-lines{margin-top:1rem;display:grid;gap:.5rem}
.est-blueprint-lines span{display:block;height:10px;border-radius:6px;background:var(--bg3)}
.est-blueprint-lines span:nth-child(2){width:80%}
.est-blueprint-lines span:nth-child(3){width:55%}
.est-blueprint-lock{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;padding:1.2rem 1.6rem;text-align:center;font-family:var(--fm);font-size:.82rem;color:var(--txt2);line-height:1.6}
.est-blueprint-lock strong{font-family:var(--fd);font-weight:500;font-size:1.15rem;color:var(--txt)}
.est-lock-icon{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:var(--grad-primary);color:#1a0f00;font-size:1rem}

.est-lead{text-align:left;padding-top:.5rem}
[dir="rtl"] .est-lead{text-align:right}
.est-lead h3{font-family:var(--fd);font-weight:400;font-size:1.3rem;color:var(--txt);margin:0 0 .4rem;text-align:center}
.est-lead .est-micro{text-align:center;margin-bottom:1.6rem}
.est-lead-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem 1.5rem;margin-bottom:1.8rem}
.est-lead-btns{display:flex;flex-wrap:wrap;gap:1rem;justify-content:center}
.est-lead-msg{text-align:center;font-family:var(--fm);font-size:.82rem;margin-top:1rem}
.est-lead-msg--error{color:#c0392b}

.est-nav{display:flex;justify-content:space-between;align-items:center;margin-top:2.5rem;padding-top:2rem;border-top:1px solid var(--border)}
.est-btn{display:inline-flex;align-items:center;gap:.6rem;font-family:var(--fm);font-weight:600;font-size:.85rem;padding:.9rem 1.6rem;border-radius:999px;border:1px solid var(--bg3);background:#fff;color:var(--txt);cursor:pointer;transition:all .25s var(--ease)}
.est-btn:hover{border-color:var(--gold2)}
.est-btn--next{margin-inline-start:auto;background:var(--grad-primary);border-color:transparent;color:#fff}
[dir="rtl"] .est-btn--back i,[dir="rtl"] .est-btn--next i{transform:scaleX(-1)}

@media(max-width:767px){
  .est-hero{padding:5rem 0 3.5rem}
  .est-cards--2,.est-cards--3,.est-cards--grid{grid-template-columns:1fr 1fr}
  .est-lead-grid{grid-template-columns:1fr}
  .est-result-cards{grid-template-columns:1fr}
}
@media(max-width:480px){
  .est-cards--grid{grid-template-columns:1fr 1fr}
}

/* info tooltip (etape 2) */
.est-info{position:relative;display:inline-flex;vertical-align:middle;margin-inline-start:.5rem;font-size:.95rem;color:var(--gold2);cursor:help;outline:none}
.est-info-tip{position:absolute;inset-inline-start:50%;bottom:calc(100% + 10px);transform:translateX(-50%);width:260px;padding:.8rem 1rem;border-radius:12px;background:#0d2545;color:#f7f5f2;font-family:var(--fm);font-size:.78rem;font-weight:400;line-height:1.55;letter-spacing:0;opacity:0;visibility:hidden;transition:opacity .2s;z-index:5;text-align:start}
[dir="rtl"] .est-info-tip{transform:translateX(50%)}
.est-info:hover .est-info-tip,.est-info:focus .est-info-tip{opacity:1;visibility:visible}

/* avertissement > 3 objectifs */
.est-warning{display:flex;gap:.6rem;align-items:flex-start;margin:1.2rem 0 0;padding:.9rem 1.1rem;border-radius:14px;background:#fff6e5;border:1px solid #f0c36a;color:#7a4b00;font-family:var(--fm);font-size:.84rem;line-height:1.6}
.est-warning[hidden]{display:none}

/* boutons CTA du formulaire final */
.est-lead-btns{flex-direction:column;align-items:stretch}
.est-btn-cta{display:flex;align-items:center;justify-content:center;gap:.8rem;width:100%;padding:1.15rem 1.8rem;border-radius:16px;font-family:var(--fm);font-size:.95rem;font-weight:700;letter-spacing:.01em;cursor:pointer;transition:transform .25s var(--ease),box-shadow .25s var(--ease),background .25s,color .25s,border-color .25s}
.est-btn-cta:disabled{opacity:.6;cursor:wait}
.est-btn-cta--primary{border:none;background:var(--grad-primary);color:#1a0f00;box-shadow:0 18px 40px -16px rgba(255,124,70,.6)}
.est-btn-cta--primary:hover:not(:disabled){transform:translateY(-3px);box-shadow:0 24px 48px -14px rgba(255,124,70,.75)}
.est-btn-cta--primary i{transition:transform .25s var(--ease)}
.est-btn-cta--primary:hover i{transform:translateX(5px)}
[dir="rtl"] .est-btn-cta--primary i{transform:scaleX(-1)}
[dir="rtl"] .est-btn-cta--primary:hover i{transform:scaleX(-1) translateX(5px)}
.est-btn-cta--secondary{background:#fff;color:var(--txt);border:1.5px solid var(--txt)}
.est-btn-cta--secondary:hover:not(:disabled){background:var(--txt);color:#fff;transform:translateY(-2px)}
@media(min-width:768px){.est-lead-btns{flex-direction:row}.est-btn-cta{width:auto;flex:1 1 0}}
@media(max-width:767px){.est-box{padding:1.6rem 1.2rem;border-radius:22px}}
@media(prefers-reduced-motion:reduce){
  .est-step{animation:none}
  .est-card,.est-btn{transition:none}
}

/* "Book a Free Strategy Call" : vert WhatsApp */
.est-btn-cta--secondary{background:#25D366;color:#fff;border:none;box-shadow:0 18px 36px -16px rgba(37,211,102,.65)}
.est-btn-cta--secondary:hover:not(:disabled){background:#1ebe5b;color:#fff;transform:translateY(-3px);box-shadow:0 24px 44px -14px rgba(37,211,102,.8)}
.est-btn-cta--secondary i{font-size:1.25rem}
@media(max-width:767px){.est-result-cards,.est-result-cards:has(#est-monthly-card[hidden]){grid-template-columns:1fr}}

/* etape 4 : 10 objectifs, titre + description */
.est-cards--goals{grid-template-columns:1fr 1fr}
.est-cards--goals .est-card--row{align-items:flex-start}
.est-card-text{display:flex;flex-direction:column;gap:.3rem;min-width:0}
.est-cards--goals .est-card-label{font-size:.88rem;line-height:1.35}
.est-cards--goals .est-card-sub{font-size:.76rem;line-height:1.5}
@media(max-width:767px){.est-cards--goals{grid-template-columns:1fr}}

/* hero */
.est-hero{position:relative;overflow:hidden;padding:9rem 0 6rem;background:#050d1c;color:#f7f5f2;text-align:center;isolation:isolate}
.est-hero-glow{position:absolute;z-index:-1;border-radius:50%;filter:blur(90px);opacity:.55}
.est-hero-glow--a{width:520px;height:520px;top:-180px;inset-inline-start:-120px;background:#1d4f9c}
.est-hero-glow--b{width:460px;height:460px;bottom:-200px;inset-inline-end:-100px;background:#ff7c46;opacity:.35}
.est-hero-grid{position:absolute;inset:0;z-index:-1;background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);background-size:56px 56px;-webkit-mask-image:radial-gradient(ellipse at center,#000 30%,transparent 75%);mask-image:radial-gradient(ellipse at center,#000 30%,transparent 75%)}
.est-hero-inner{max-width:820px}
.est-kicker{display:inline-flex;align-items:center;gap:.55rem;padding:.5rem 1.1rem;border-radius:999px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.16);font-family:var(--fm);font-size:.72rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--gold);margin-bottom:1.6rem}
.est-h1{font-family:var(--fd);font-weight:300;font-size:clamp(2.3rem,6vw,4.2rem);line-height:1.05;letter-spacing:-.025em;margin:0 0 1.4rem;color:#fff}
.est-h1 em{font-style:normal;font-weight:500;background:linear-gradient(90deg,#ffb36b,#ff7c46);-webkit-background-clip:text;background-clip:text;color:transparent}
.est-sub{font-family:var(--fm);font-size:1.05rem;font-weight:300;color:rgba(247,245,242,.75);max-width:600px;margin:0 auto;line-height:1.75}
.est-hero-pills{list-style:none;margin:2rem 0 0;padding:0;display:flex;flex-wrap:wrap;gap:.7rem;justify-content:center}
.est-hero-pills li{display:inline-flex;align-items:center;gap:.5rem;padding:.55rem 1rem;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14);font-family:var(--fm);font-size:.8rem;color:#f7f5f2}
.est-hero-pills i{color:var(--gold)}
.est-hero-cta{display:inline-flex;align-items:center;gap:.7rem;margin-top:2.2rem;padding:1rem 2rem;border-radius:999px;background:var(--grad-primary);color:#1a0f00;font-family:var(--fm);font-size:.9rem;font-weight:700;text-decoration:none;box-shadow:0 18px 40px -16px rgba(255,124,70,.7);transition:transform .25s var(--ease),box-shadow .25s var(--ease)}
.est-hero-cta:hover{transform:translateY(-3px);box-shadow:0 24px 48px -14px rgba(255,124,70,.85);color:#1a0f00}
.est-hero-cta i{animation:estBounce 1.8s ease-in-out infinite}
@keyframes estBounce{0%,100%{transform:translateY(0)}50%{transform:translateY(4px)}}
@media(max-width:767px){.est-hero{padding:6.5rem 0 4rem}}
@media(prefers-reduced-motion:reduce){.est-hero-cta i{animation:none}}

/* etape 4 : priorites + jauge de focus */
.est-focus{margin:1.4rem 0 1.4rem;padding:1.2rem;border-radius:22px;background:linear-gradient(155deg,#081428,#0d2545);color:#fff}
.est-slots{display:grid;grid-template-columns:repeat(3,1fr);gap:.7rem}
.est-slot{position:relative;min-height:84px;padding:.7rem .8rem;border-radius:16px;border:1.5px dashed rgba(255,255,255,.25);display:flex;flex-direction:column;gap:.4rem;transition:border-color .3s,background .3s}
.est-slot-label{font-family:var(--fm);font-size:.62rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--gold)}
.est-slot-body{display:flex;align-items:center;gap:.5rem;font-family:var(--fm);font-size:.78rem;line-height:1.35;color:rgba(255,255,255,.55)}
.est-slot-body i{flex:0 0 auto;color:var(--gold)}
.est-slot.is-filled{border-style:solid;border-color:var(--gold2);background:rgba(255,255,255,.08)}
.est-slot.is-filled .est-slot-body{color:#fff;font-weight:600}
.est-slot[data-slot="1"].is-filled{background:linear-gradient(135deg,rgba(255,124,70,.28),rgba(255,255,255,.06))}
.est-meter{margin-top:1rem}
.est-meter-head{display:flex;justify-content:space-between;gap:1rem;align-items:baseline;font-family:var(--fm);font-size:.72rem;color:rgba(255,255,255,.65);margin-bottom:.5rem}
.est-meter-head strong{font-weight:600;color:#fff;text-align:end}
.est-meter-bar{display:grid;grid-template-columns:repeat(4,1fr);gap:.35rem}
.est-meter-bar span{height:8px;border-radius:6px;background:rgba(255,255,255,.9);opacity:.18;transform-origin:bottom;transition:background .3s}
.est-meter-bar.is-good span{background:#3ddc97}
.est-meter-bar.is-warn span{background:#ffb84d}
.est-meter-bar.is-bad span{background:#ff5d5d}

.est-goal{display:flex;flex-direction:column;gap:.5rem;padding:1.2rem 1.2rem 1.1rem;overflow:hidden}
.est-goal .est-card-icon{margin:0}
.est-rank{position:absolute;top:.9rem;inset-inline-end:.9rem;width:30px;height:30px;border-radius:50%;border:1.5px solid var(--bg3);display:flex;align-items:center;justify-content:center;font-family:var(--fm);font-size:.8rem;font-weight:800;color:transparent;transition:all .25s var(--ease)}
.est-goal:has(input:checked) .est-rank{background:var(--grad-primary);border-color:transparent;color:#1a0f00;box-shadow:0 8px 18px -8px rgba(255,124,70,.8)}
.est-goal:has(input:checked){background:linear-gradient(180deg,#fff,#fff7f1)}
.est-goal[data-rank="1"]{box-shadow:0 0 0 2px var(--gold2) inset,0 18px 36px -22px rgba(255,124,70,.7)}
.est-goal[data-rank="1"]::after{content:'\2605';position:absolute;bottom:.8rem;inset-inline-end:1rem;font-size:1rem;color:var(--gold2)}
.est-goal .est-card-text{padding-inline-end:2rem}
@media(max-width:767px){.est-slots{grid-template-columns:1fr}.est-slot{min-height:0}}
