/* =========================================================================
   URGYS — Page « Comment ça marche » (template04)
   (extrait à l’identique des templates — ne pas modifier sans raison)
   ========================================================================= */
/* =========================================================================
   ÉLÉMENTS COMMUNS
   ========================================================================= */
.link{display:inline-flex;align-items:center;gap:8px;padding:6px 0;font-size:15px;font-weight:600;color:var(--red-text)}
.link .ic{width:18px;height:18px;stroke-width:2.2;transition:transform .25s var(--ease)}
@media (hover:hover){.link:hover .ic{transform:translateX(4px)}}
.sec-title{font-size:clamp(2rem,1rem + 2.6vw,3.1rem)}
.sec-sub{max-width:580px;margin-top:12px;font-size:clamp(1rem,.95rem + .25vw,1.15rem);color:var(--text)}
.nav a[aria-current="page"]{color:var(--ink)}
.nav a[aria-current="page"]::after{transform:scaleX(1)}
.mnav__link[aria-current="page"]{color:var(--red-text)}
.eyebrow--center{justify-content:center}
.eyebrow--center::before{content:"";flex:0 0 28px;height:1.5px;border-radius:2px;background:currentColor;opacity:.35}
.tone-green{background:#E8F7EE;color:var(--green)}
.tone-red{background:var(--red-50);color:var(--red)}
.tone-ink{background:#F1F1F3;color:var(--ink)}
.tone-star{background:#FFF4E0;color:var(--star)}

/* =========================================================================
   HERO
   ========================================================================= */
.hw-hero{position:relative;isolation:isolate;overflow:hidden;background:var(--bg-hero);padding-top:var(--header-h);text-align:center}
.hw-hero::before{content:"";position:absolute;z-index:-1;left:50%;top:-30%;width:min(110vw,1300px);aspect-ratio:1.6;border-radius:50%;transform:translateX(-50%);background:radial-gradient(closest-side,rgba(245,18,46,.09),rgba(245,18,46,0) 70%)}
.hw-hero__inner{display:flex;flex-direction:column;align-items:center;padding-block:clamp(40px,4.6vw,76px) clamp(108px,10vw,150px)}
.hw-hero__title{margin-top:16px;font-size:clamp(2.5rem,1rem + 4vw,4.6rem);line-height:1;letter-spacing:-.034em}
.hw-hero__title .red{display:block}
.hw-hero__lead{max-width:620px;margin-top:20px;font-size:clamp(1rem,.92rem + .36vw,1.22rem);line-height:1.5;color:var(--text)}
.tabs{display:inline-flex;gap:4px;margin-top:30px;padding:5px;border-radius:999px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow-sm)}
.tab{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:48px;padding:0 22px;border-radius:999px;font-size:15px;font-weight:600;color:var(--ink-2);white-space:nowrap;transition:background-color .25s,color .25s,box-shadow .25s}
.tab .ic{width:18px;height:18px}
.tab[aria-selected="true"]{background:var(--ink);color:#fff;box-shadow:0 8px 18px -10px rgba(11,11,15,.75)}
@media (hover:hover){.tab[aria-selected="false"]:hover{background:rgba(17,20,28,.05)}}
.tab__short{display:none}

/* =========================================================================
   PARCOURS (onglets)
   ========================================================================= */
.panel[hidden]{display:none}
.panel:focus-visible{outline:none}
.js .panel.is-shown .stepper{animation:hw-fade .45s var(--ease)}
@keyframes hw-fade{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

/* aperçu des 4 étapes (carte blanche qui chevauche le hero) */
.hw-overview{position:relative;z-index:3;margin-top:calc(-1 * clamp(70px,6.4vw,100px))}
.stepper{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:clamp(16px,1.8vw,24px) clamp(8px,1.2vw,16px);border-radius:var(--r-xl);background:#fff;box-shadow:var(--shadow)}
.stepper li{position:relative}
.stepper li+li::before{content:"";position:absolute;top:30px;left:calc(-50% + 34px);right:calc(50% + 34px);height:2px;background:repeating-linear-gradient(90deg,var(--red) 0 6px,transparent 6px 12px);opacity:.4}
.stepper a{display:flex;flex-direction:column;align-items:center;gap:10px;height:100%;padding:8px 12px 10px;border-radius:16px;text-align:center;transition:background-color .2s}
@media (hover:hover){.stepper a:hover{background:var(--bg-soft)}}
.stepper__num{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--red);color:#fff;font-size:17px;font-weight:700;box-shadow:0 8px 18px -8px rgba(245,18,46,.85)}
.stepper strong{display:block;font-size:15.5px;font-weight:700;line-height:1.3;color:var(--ink)}
.stepper__d{display:block;font-size:13.5px;line-height:1.4;color:var(--muted)}
.panel--pro .stepper__num{background:var(--ink);box-shadow:0 8px 18px -8px rgba(11,11,15,.7)}
.panel--pro .stepper li+li::before{background:repeating-linear-gradient(90deg,var(--ink) 0 6px,transparent 6px 12px);opacity:.25}

/* titre du parcours */
.hw-journey{padding-top:clamp(56px,6vw,96px)}
.hw-journey__head{text-align:center}
.hw-journey__head .eyebrow{justify-content:center}
.hw-journey__head .sec-title{margin-top:12px}
.hw-journey__head .sec-sub{margin-inline:auto}

/* une étape détaillée */
.hw-step{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:clamp(28px,6vw,96px);padding-block:clamp(40px,4.6vw,72px)}
.hw-step+.hw-step{border-top:1px solid var(--line-soft)}
.hw-step:nth-of-type(even) .hw-step__visual{order:-1}
.hw-step__content{min-width:0}
.hw-step__num{display:inline-flex;align-items:center;gap:12px;font-size:12.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--red-text)}
.hw-step__num b{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:var(--red);color:#fff;font-size:18px;letter-spacing:0;box-shadow:0 8px 18px -8px rgba(245,18,46,.85)}
.panel--pro .hw-step__num{color:var(--ink-2)}
.panel--pro .hw-step__num b{background:var(--ink);box-shadow:0 8px 18px -8px rgba(11,11,15,.7)}
.hw-step__title{margin-top:18px;font-size:clamp(1.8rem,1rem + 2vw,2.7rem)}
.hw-step__text{max-width:520px;margin-top:14px;font-size:clamp(1rem,.95rem + .25vw,1.15rem);line-height:1.55;color:var(--text)}
.hw-list{display:grid;gap:12px;margin-top:22px}
.hw-list li{display:flex;align-items:flex-start;gap:12px;font-size:15.5px;line-height:1.5;color:var(--ink-2)}
.hw-list .ic{flex:none;width:26px;height:26px;padding:5px;border-radius:50%;background:var(--red-50);color:var(--red);stroke-width:2.6}
.panel--pro .hw-list .ic{background:#EEEFF2;color:var(--ink)}
.hw-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}
.hw-tags li{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 13px 0 10px;border-radius:999px;background:var(--bg-soft);font-size:13.5px;font-weight:500;color:var(--ink-2)}
.hw-tags .ic{width:16px;height:16px;stroke-width:2;color:var(--red)}
.hw-tags .ic--fill{stroke:none}
.hw-tip{display:flex;align-items:flex-start;gap:12px;max-width:520px;margin-top:22px;padding:14px 16px;border-radius:14px;background:var(--bg-soft);font-size:14.5px;line-height:1.5;color:var(--text)}
.hw-tip .ic{flex:none;width:20px;height:20px;margin-top:1px;color:var(--red);stroke-width:2}
.hw-tip strong{color:var(--ink)}
.hw-step__visual{position:relative;display:flex;justify-content:center;padding-block:10px}
.hw-step__visual::before{content:"";position:absolute;left:50%;top:50%;width:min(110%,440px);aspect-ratio:1;border-radius:50%;transform:translate(-50%,-50%);background:radial-gradient(closest-side,rgba(245,18,46,.1),rgba(245,18,46,0))}
.panel--pro .hw-step__visual::before{background:radial-gradient(closest-side,rgba(17,20,28,.08),rgba(17,20,28,0))}
.hw-phone{position:relative;width:min(66%,280px)}
.hw-chip{position:absolute;z-index:3;display:flex;align-items:center;gap:10px;padding:10px 16px 10px 10px;border-radius:16px;background:#fff;box-shadow:var(--shadow-lg);animation:hw-float 6s ease-in-out infinite}
.hw-chip__ic{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:11px}
.hw-chip__ic .ic{width:19px;height:19px;stroke-width:2.2}
.hw-chip__ic .ic--fill{stroke:none}
.hw-chip__t strong{display:block;font-size:14px;font-weight:700;line-height:1.2;color:var(--ink);white-space:nowrap}
.hw-chip__t span{display:block;font-size:12.5px;line-height:1.3;color:var(--muted);white-space:nowrap}
.hw-chip--a{left:2%;top:18%}
.hw-chip--b{right:2%;bottom:16%;animation-delay:-3s}
@keyframes hw-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}

/* et après ? */
.hw-after{padding-block:clamp(40px,4.4vw,72px) clamp(56px,6vw,96px)}
.hw-after__title{font-size:clamp(1.6rem,1rem + 1.4vw,2.2rem);text-align:center}
.after-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(14px,2vw,24px);margin-top:clamp(22px,2.6vw,32px)}
.after-card{padding:26px 24px;border-radius:var(--r-lg);background:var(--bg-soft);border:1px solid var(--line-soft);transition:transform .35s var(--ease),box-shadow .35s,background-color .35s}
@media (hover:hover){.after-card:hover{transform:translateY(-3px);background:#fff;box-shadow:var(--shadow-sm)}}
.after-card__ic{display:grid;place-items:center;width:50px;height:50px;border-radius:14px;background:#fff;color:var(--red);box-shadow:var(--shadow-xs)}
.after-card__ic .ic{width:24px;height:24px}
.panel--pro .after-card__ic{color:var(--ink)}
.after-card h3{margin-top:18px;font-size:18px;font-weight:700;color:var(--ink)}
.after-card p{margin-top:6px;font-size:15px;line-height:1.5;color:var(--muted)}
.hw-after__cta{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:clamp(26px,3vw,40px)}

/* =========================================================================
   GARANTIES + AIDE
   ========================================================================= */
.hw-trust{padding-block:clamp(64px,7vw,104px);background:linear-gradient(180deg,var(--bg-warm) 0%,var(--bg-warm-2) 100%)}
.hw-trust__head{text-align:center}
.hw-trust__head .sec-sub{margin-inline:auto}
.trust-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(14px,1.8vw,24px);margin-top:clamp(28px,3.2vw,44px)}
.trust-card{padding:26px 24px;border-radius:var(--r-lg);background:rgba(255,255,255,.78);border:1px solid rgba(255,255,255,.95);box-shadow:0 1px 2px rgba(17,20,28,.04)}
.trust-card .ic{width:30px;height:30px;stroke-width:1.7;color:var(--ink)}
.trust-card h3{margin-top:16px;font-size:17px;font-weight:700;color:var(--ink)}
.trust-card p{margin-top:4px;font-size:14.5px;line-height:1.45;color:var(--muted)}
.hw-help{padding-top:clamp(48px,5vw,72px)}
.help{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:18px 28px;padding:clamp(22px,2.6vw,32px) clamp(22px,3vw,40px);border-radius:var(--r-xl);background:var(--bg-soft);border:1px solid var(--line-soft)}
.help__txt{display:flex;align-items:center;gap:18px;min-width:0}
.help__ic{flex:none;display:grid;place-items:center;width:56px;height:56px;border-radius:16px;background:#fff;color:var(--red);box-shadow:var(--shadow-xs)}
.help__ic .ic{width:26px;height:26px}
.help h2{font-family:var(--font-display);font-size:clamp(1.3rem,1rem + .8vw,1.8rem);font-weight:800;line-height:1.15;letter-spacing:-.025em;color:var(--ink)}
.help p{margin-top:4px;font-size:15px;color:var(--muted)}
.help__actions{display:flex;flex-wrap:wrap;gap:12px}

@media (prefers-reduced-motion:reduce){.hw-chip{animation:none}}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width:1399px){
  .cta__hand{display:none}
}
@media (max-width:1100px){
  .cta__box{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"logo text qr" "logo stores qr";align-items:center;column-gap:clamp(18px,3vw,32px);row-gap:16px}
  .cta__logo{grid-area:logo}
  .cta__text{grid-area:text;align-self:end}
  .cta__stores{grid-area:stores;align-self:start}
  .cta__qr{grid-area:qr}
}
@media (max-width:1060px){
  .nav,.header__login{display:none}
  .burger{display:inline-flex}
}
@media (max-width:1024px){
  .trust-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .footer__grid{grid-template-columns:minmax(0,1.4fr) repeat(3,minmax(0,1fr))}
  .footer__social{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between;padding-top:20px;border-top:1px solid var(--line-soft)}
  .socials{order:2}
}
@media (max-width:900px){
  .hw-step{grid-template-columns:minmax(0,1fr);gap:28px}
  .hw-step:nth-of-type(even) .hw-step__visual{order:0}
  .hw-step__text,.hw-tip{max-width:640px}
  .hw-phone{width:min(58%,260px)}
  .after-grid{grid-template-columns:minmax(0,1fr)}
  .after-card{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:18px;align-items:start}
  .after-card__ic{grid-row:span 2}
  .after-card h3{margin-top:2px}
}
@media (max-width:760px){
  .stepper{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:8px}
  .stepper li:nth-child(3)::before{display:none}
  .hw-chip{gap:8px;padding:8px 12px 8px 8px;border-radius:14px}
  .hw-chip__ic{width:30px;height:30px;border-radius:9px}
  .hw-chip__ic .ic{width:16px;height:16px}
  .hw-chip__t strong{font-size:12.5px}
  .hw-chip__t span{font-size:11px}
  .hw-chip--a{left:0}
  .hw-chip--b{right:0}
  .cta__box{grid-template-columns:minmax(0,1fr);grid-template-areas:"logo" "text" "stores";justify-items:center;text-align:center;row-gap:14px;padding:30px 22px}
  .cta__text{align-self:auto}
  .cta__stores{justify-content:center;flex-wrap:wrap}
  .cta__qr{display:none}
  .footer__grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .footer__brand{grid-column:1/-1}
}
@media (max-width:640px){
  .header__inner{gap:12px}
  .logo__svg{height:21px}
  .header__cta{--h:40px;padding:0 14px;font-size:14px;border-radius:11px}
  .burger{width:42px;height:42px}
  .stores{gap:10px}
  .store{flex:1 1 150px;max-width:220px;min-width:0;height:54px;padding:0 14px 0 12px}
  .store__txt strong{font-size:17px}
  .cta__stores .store{flex:0 0 auto}
  .cta__box{padding:28px 18px}
  .tabs{display:flex;width:100%}
  .tab{flex:1 1 0;min-width:0;padding:0 12px;font-size:14px}
  .hw-phone{width:min(64%,250px)}
  .trust-grid{grid-template-columns:minmax(0,1fr)}
  .trust-card{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:16px;align-items:start;padding:20px}
  .trust-card .ic{grid-row:span 2}
  .trust-card h3{margin-top:2px}
  .help__txt{align-items:flex-start}
  .help__ic{width:48px;height:48px}
  .help__actions{width:100%}
  .help__actions .btn{flex:1 1 auto}
  .hw-after__cta .btn{flex:1 1 auto}
  .footer__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .footer__social{flex-direction:column-reverse;align-items:flex-start;gap:12px}
  .socials{order:0;margin-left:-8px}
}
@media (max-width:480px){
  .tab__long{display:none}
  .tab__short{display:inline}
  .stepper{grid-template-columns:minmax(0,1fr);row-gap:0;padding:8px}
  .stepper li+li::before{display:none}
  .stepper a{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:14px;align-items:center;padding:10px;text-align:left}
  .stepper__num{grid-row:span 2;width:40px;height:40px;font-size:16px}
  .stepper li+li{border-top:1px solid var(--line-soft)}
}
@media (max-width:400px){
  .hw-chip--b{bottom:10%}
  .hw-chip__t span{display:none}
}
@media (max-width:350px){
  .header__cta{display:none}
}
