/* La barre du haut du parcours, au téléphone (11/11/2026, Alexis : « rends la barre beaucoup plus belle »).
   Avant : un titre, « Étape 3 sur 3 » en gris, trois traits décalés et un filet blanc dur. Maintenant : une frise à trois étapes nommées
   (faites = cochées, en cours = lumineuse, à venir = en creux), une ligne d'avancement lumineuse au ras du bas, des boutons plus légers.
   Claire sur les écrans clairs, nuit sur l'écran d'activation. Le texte « Étape N sur 3 » reste pour les lecteurs d'écran. */
@media (max-width:760px){
  #studio.tg .t-barre{--fb-txt:#11131B;--fb-doux:#5D5A70;--fb-creux:#A9A6B9;--fb-trait:#E6E3EF;--fb-bouton:#F3F2F8;--fb-anneau:rgba(17,19,27,.06);--fb-v:#6547E8;--fb-v2:#9B85FF;
    grid-template-columns:38px minmax(0,1fr) 38px!important;gap:10px!important;padding:calc(10px + env(safe-area-inset-top,0px)) 14px 16px!important;
    background:linear-gradient(180deg,rgba(255,255,255,.97),rgba(255,255,255,.9))!important;box-shadow:none!important}
  #studio[data-ecran="tarif"].tg .t-barre{--fb-txt:#fff;--fb-doux:rgba(255,255,255,.62);--fb-creux:rgba(255,255,255,.34);--fb-trait:rgba(255,255,255,.12);
    --fb-bouton:rgba(255,255,255,.07);--fb-anneau:rgba(255,255,255,.1);--fb-v:#8D78ED;--fb-v2:#B9A6FF;
    background:radial-gradient(120% 140% at 50% -40%,rgba(101,71,232,.22),transparent 60%),linear-gradient(180deg,rgba(13,12,22,.96),rgba(13,12,22,.88))!important}

  /* les deux boutons : légers, cerclés d'un filet */
  #studio.tg .t-barre>.t-retour{grid-column:1!important;grid-row:1}
  #studio.tg .t-aide-btn{grid-column:3!important;grid-row:1}
  #studio.tg .t-barre>.t-retour,#studio.tg .t-aide-btn{width:38px!important;height:38px!important;background:var(--fb-bouton)!important;color:var(--fb-txt)!important;
    box-shadow:inset 0 0 0 1px var(--fb-anneau)!important;transition:transform .15s,background .15s}
  #studio.tg .t-barre>.t-retour:active,#studio.tg .t-aide-btn:active{transform:scale(.92)}

  /* « Étape N sur 3 » : pour les lecteurs d'écran seulement (la frise le montre) */
  #studio.tg .t-barre>.t-sr{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap}

  /* la frise : trois étapes nommées, reliées */
  html #studio.tg .t-barre .t-pas{position:static!important;grid-column:2;grid-row:1;display:flex!important;align-items:center;justify-content:center;gap:0!important;min-width:0;margin:0!important;padding:0!important}
  html #studio.tg .t-barre .t-pas li{flex:0 1 auto!important;display:flex!important;align-items:center;gap:6px!important;height:auto!important;min-width:0;padding:0!important;
    background:none!important;border-radius:0!important;overflow:visible!important;box-shadow:none!important}
  html #studio.tg .t-barre .t-pas li::before{display:none!important;animation:none!important}
  html #studio.tg .t-barre .t-pas li:not(:last-child)::after{content:""!important;display:block!important;flex:none;width:18px!important;height:2px;margin:0 7px!important;border-radius:2px;background:var(--fb-trait)!important}
  html #studio.tg .t-barre .t-pas li.fait:not(:last-child)::after{background:var(--fb-v)!important}
  /* le rond de l'étape */
  html #studio.tg .t-barre .t-pas li>i{position:relative;display:grid!important;place-items:center;flex:none;width:20px;height:20px;border-radius:50%;font-style:normal;
    box-shadow:inset 0 0 0 1.5px var(--fb-creux);color:var(--fb-creux);font-size:10.5px;font-weight:800;line-height:1;transition:background .3s,box-shadow .3s}
  html #studio.tg .t-barre .t-pas li>i span{display:block}
  html #studio.tg .t-barre .t-pas li>i svg{display:none;width:12px;height:12px}
  html #studio.tg .t-barre .t-pas li.fait>i{background:var(--fb-v);box-shadow:none;color:#fff}
  html #studio.tg .t-barre .t-pas li.fait>i span{display:none}
  html #studio.tg .t-barre .t-pas li.fait>i svg{display:block}
  html #studio.tg .t-barre .t-pas li.ici>i{background:var(--fb-v);box-shadow:0 0 0 4px color-mix(in srgb,var(--fb-v) 22%,transparent),0 0 14px color-mix(in srgb,var(--fb-v) 55%,transparent);color:#fff}
  html #studio.tg .t-barre .t-pas li.ici>i::after{content:"";position:absolute;inset:-4px;border-radius:50%;box-shadow:0 0 0 1.5px var(--fb-v);opacity:0;animation:fbOnde 2.4s ease-out infinite}
  /* le nom de l'étape */
  html #studio.tg .t-barre .t-pas li>p{display:block!important;margin:0;min-width:0}
  html #studio.tg .t-barre .t-pas li>p small{display:none!important}
  html #studio.tg .t-barre .t-pas li>p b{display:block;font-size:12.5px;font-weight:650;letter-spacing:-.005em;color:var(--fb-creux);white-space:nowrap;transition:color .3s}
  html #studio.tg .t-barre .t-pas li.fait>p b{color:var(--fb-doux)}
  html #studio.tg .t-barre .t-pas li.ici>p b{font-size:13.5px;font-weight:800;color:var(--fb-txt)}

  /* la ligne d'avancement, au ras du bas : un tiers, deux tiers, tout */
  #studio.tg .t-barre::after{content:""!important;display:block!important;position:absolute;left:0;right:0;bottom:0;height:2px;
    background:linear-gradient(90deg,var(--fb-v),var(--fb-v2)) 0 0/var(--fb-avance,33.4%) 100% no-repeat,var(--fb-trait)!important;transition:background-size .7s cubic-bezier(.2,.8,.2,1)}
  html #studio.tg .t-barre:has(li[data-e="2"].ici){--fb-avance:66.7%}
  html #studio.tg .t-barre:has(li[data-e="3"].ici){--fb-avance:100%}
}
/* seul le nom de l'étape en cours s'écrit ; les autres sont des ronds (cochés quand faits) : net, et tient sur tous les téléphones */
@media (max-width:760px){
  html #studio.tg .t-barre .t-pas li:not(.ici)>p{display:none!important}
  html #studio.tg .t-barre .t-pas li.ici>p{margin-left:2px}
}
@keyframes fbOnde{0%{opacity:.7;transform:scale(.85)}100%{opacity:0;transform:scale(1.6)}}
@media (prefers-reduced-motion:reduce){html #studio.tg .t-barre .t-pas li.ici>i::after{animation:none}}

/* le halo de l'étape en cours déborde du rond, sans être coupé */
@media (max-width:760px){html #studio.tg .t-barre .t-pas,html #studio.tg .t-barre .t-pas li>i{overflow:visible!important}html #studio.tg .t-barre .t-pas li>i{border:0!important}}

/* 13/11/2026 (audit d'affichage, téléphone) : numéros d'étape à 12 px (10,5 avant) ; retour et aide gardent leur rond de 38 px mais
   se touchent sur 44 px ; sous 400 px, des traits plus courts entre les ronds pour que « Mes courriers » tienne entier. */
@media (max-width:760px){
  html #studio.tg .t-barre .t-pas li>i{font-size:12px}
  #studio.tg .t-barre>.t-retour,#studio.tg .t-aide-btn{position:relative!important}   /* tel11.css pose « static!important » : sans relatif, la zone ::after couvrirait toute la barre */
  #studio.tg .t-barre>.t-retour::after,#studio.tg .t-aide-btn::after{content:"";position:absolute;inset:-3px}
}
@media (max-width:399px){
  html #studio.tg .t-barre .t-pas li:not(:last-child)::after{width:12px!important;margin:0 5px!important}
}
