/* TCA V22.4.0 POLISH — contraste, alignement, scroll mobile et commission fixe */
:root{
  --tca-polish-ink:#21172b;
  --tca-polish-muted:#5f5668;
  --tca-polish-accent:#6815ae;
  --tca-polish-line:#d9cfe4;
  --tca-polish-surface:#ffffff;
  --tca-polish-soft:#f8f5fb;
}

/* Règle de base: chaque surface claire possède son propre texte foncé. */
.v2221-market-landing,
.v2221-market-choices>button,
.v2221-market-official,
.v2221-market-collection,
.v193-center-bridge,
.v193-activity-feed,
.v192-trust-center,
.tca-assistant-page,
.tca-centre-page .tca-centre-command,
.tca-centre-page .tca-centre-metrics>*,
.tca-centre-page .tca-centre-next,
.tca-centre-page .v18-franchise-passport,
.v191-portal-map{
  color:var(--tca-polish-ink)!important;
}

.v2221-market-landing header h1,
.v2221-market-landing header p,
.v2221-market-choices>button b,
.v2221-market-choices>button p,
.v2221-market-choices>button strong,
.v2221-market-official b,
.v2221-market-official p,
.v193-center-bridge :where(h1,h2,h3,h4,b,strong),
.v193-activity-feed :where(h1,h2,h3,h4,b,strong),
.v192-trust-center :where(h1,h2,h3,h4,b,strong),
.tca-assistant-page :where(h1,h2,h3,h4,b,strong),
.v191-portal-map :where(h1,h2,h3,h4,b,strong){
  opacity:1!important;
}
.v2221-market-landing header h1,
.v2221-market-choices>button b,
.v2221-market-official b,
.v193-center-bridge :where(h1,h2,h3,h4,b,strong),
.v193-activity-feed :where(h1,h2,h3,h4,b,strong),
.v192-trust-center :where(h1,h2,h3,h4,b,strong),
.tca-assistant-page :where(h1,h2,h3,h4,b,strong),
.v191-portal-map :where(h1,h2,h3,h4,b,strong){color:var(--tca-polish-ink)!important}
.v2221-market-landing header p,
.v2221-market-choices>button p,
.v2221-market-official p,
.v193-center-bridge :where(p,small,em),
.v193-activity-feed :where(p,small,em),
.v192-trust-center :where(p,small,em),
.tca-assistant-page :where(p,small,em),
.v191-portal-map :where(p,small,em){color:var(--tca-polish-muted)!important;opacity:1!important}
.v2221-market-choices>button small,
.v2221-market-choices>button strong,
.v2221-market-official small,
.v2221-market-landing .v22-eyebrow{color:var(--tca-polish-accent)!important;opacity:1!important}

/* La carte Vente et la Boutique officielle ne doivent jamais afficher du blanc sur blanc. */
.v2221-market-choices>button.is-sale b,
.v2221-market-choices>button.is-sale p,
.v2221-market-official b{color:var(--tca-polish-ink)!important;-webkit-text-fill-color:var(--tca-polish-ink)!important;text-shadow:none!important}
.v2221-market-official{background:linear-gradient(145deg,#effcff,#f5fbfd)!important;border-color:#9bd5df!important}

/* Commission unique imposée par le fondateur. */
.v2240-fixed-commission{
  display:flex;align-items:center;min-height:48px;padding:0 14px;
  border:1px solid var(--tca-polish-line);border-radius:12px;
  background:var(--tca-polish-soft);color:var(--tca-polish-ink);
  font-size:16px;font-weight:900;
}


/* Collection 360 et Journal: contraste AA sur les cartes blanches. */
.v193-center-products>button,
.v193-activity-feed article,
.v193-goal-card,
.v193-stat-card{background:#fff!important;color:var(--tca-polish-ink)!important}
.v193-center-products :where(b,strong,h3),
.v193-activity-feed :where(b,strong,h3),
.v193-goal-card :where(b,strong,h3),
.v193-stat-card :where(b,strong,h3){color:var(--tca-polish-ink)!important;opacity:1!important}
.v193-center-products :where(p,small,span),
.v193-activity-feed :where(p,small,span),
.v193-goal-card :where(p,small,span),
.v193-stat-card :where(p,small,span){color:var(--tca-polish-muted)!important;opacity:1!important}

/* Navigation et pages: aucun contenu ne doit être caché derrière la barre fixe. */
.tca-scroll{scroll-padding-bottom:calc(118px + env(safe-area-inset-bottom,0px))!important;padding-bottom:calc(118px + env(safe-area-inset-bottom,0px))!important}
.tca-page,.tca-centre-page,.v193-collection-shell,.v2221-market-landing{min-width:0!important;max-width:100%!important}
.tca-page :where(h1,h2,h3,p,b,strong,small,span),
.v2221-market-landing :where(h1,h2,h3,p,b,strong,small,span){overflow-wrap:anywhere}

/* Dialogues: défilement vertical fiable iPhone/Android, actions visibles. */
[role="dialog"]{max-width:100%;overscroll-behavior:contain}
.v193-modal-body,.v2224-avatar-preview-scroll,.v194-terminal{scrollbar-gutter:stable;-webkit-overflow-scrolling:touch;touch-action:pan-y}

/* Alignement cohérent des boutons et cartes. */
.v2221-market-choices>button{align-items:flex-start!important;text-align:left!important}
.v2221-market-choices>button>*{max-width:100%}
.v2221-market-choices>button b{font-size:clamp(26px,7vw,42px)!important;line-height:1.05!important}
.v2221-market-choices>button p{font-size:clamp(15px,3.8vw,18px)!important;line-height:1.45!important}

/* Focus visible et cibles tactiles. */
:where(button,a,input,select,textarea):focus-visible{outline:3px solid #20a6c7!important;outline-offset:3px!important}
:where(.v22-header button,.tca-nav button){min-width:44px;min-height:44px}

@media(max-width:620px){
  .v2221-market-landing{padding-bottom:24px!important}
  .v2221-market-choices{gap:14px!important}
  .v2221-market-choices>button{min-height:0!important;padding:24px 20px!important}
  .v2221-market-official{padding:18px!important}
  .v194-field-row{grid-template-columns:1fr!important}
  .tca-nav{padding-bottom:max(8px,env(safe-area-inset-bottom,0px))!important}
}

/* Recours de l'acheteur — la carte ne correspond pas a l'annonce.
   Le comptoir ne verifie rien : sans cette porte, un acheteur decu n'a que la
   mauvaise note, qui ne lui rend rien. Le bouton reste discret (ce n'est pas
   l'issue normale d'une vente) mais toujours atteignable. */
.v194-dispute-open{display:flex;flex-direction:column;gap:4px;margin:10px 0 2px}
.v194-dispute-open button{
  align-self:flex-start;min-height:44px;padding:0 14px;border:1px solid #e0d6ee;border-radius:10px;
  background:#fff;font:inherit;font-size:12px;font-weight:700;letter-spacing:.02em;color:#6b5b80;cursor:pointer}
.v194-dispute-open button:hover{border-color:#b9a6d6;color:#4a3d5c}
.v194-dispute-open small{font-size:11.5px;color:#6b5b80}

.v194-dispute{
  margin:10px 0;padding:14px;border:1px solid #e3daee;border-radius:14px;background:#faf7fe;
  display:flex;flex-direction:column;gap:10px}
.v194-dispute>b{font-size:14px;color:#2f2440}
.v194-dispute-reasons{display:flex;flex-direction:column;gap:6px}
/* INC-20260924-071: radios must not inherit the full-width text-field layout. */
.v194-dispute-reasons label{display:flex;gap:10px;align-items:center;min-height:44px;font-size:14px;line-height:1.45;color:#3d3350;cursor:pointer}
.v194-dispute-reasons input[type="radio"]{width:20px;height:20px;min-width:20px;min-height:20px;margin:0;padding:0;accent-color:#6420bf;flex:0 0 20px}
.v194-dispute-reasons label>span{flex:1 1 0;min-width:0}
.v194-dispute-details{display:flex;flex-direction:column;gap:5px}
.v194-dispute-details span{font-size:12px;color:#6b5b80}
.v194-dispute-details textarea{
  width:100%;padding:9px 11px;border:1px solid #ded3ee;border-radius:10px;
  font:inherit;font-size:14px;color:#241b2f;background:#fff;resize:vertical}
.v194-dispute-details textarea:focus-visible{outline:2px solid #6420bf;outline-offset:1px;border-color:#6420bf}
/* Dire en clair que signaler ne rembourse rien : le taire serait mentir. */
.v194-dispute-note{margin:0;font-size:12px;line-height:1.45;color:#6b5b80}
/* Cote a cote et de largeur egale : sur 390 px, « ENVOYER LE SIGNALEMENT »
   est trop long pour tenir a cote d'« ANNULER » a leur largeur naturelle, et
   les deux se retrouvaient empiles en escalier. */
.v194-dispute-actions{display:flex;gap:8px}
.v194-dispute-actions button{
  flex:1 1 0;min-width:0;min-height:44px;padding:0 10px;border-radius:10px;border:1px solid #ded3ee;
  background:#fff;font:inherit;font-size:13px;font-weight:700;color:#4a3d5c;cursor:pointer}
@media (min-width:560px){
  .v194-dispute-actions{justify-content:flex-end}
  .v194-dispute-actions button{flex:0 0 auto;padding:0 18px}
}
.v194-dispute-actions button.is-primary{background:#6420bf;border-color:#6420bf;color:#fff}
.v194-dispute-actions button:disabled{opacity:.5;cursor:not-allowed}
.v194-dispute-status{
  margin:10px 0 0;padding:10px 12px;border-left:3px solid #b08900;border-radius:0 8px 8px 0;
  background:#fdf8ea;font-size:13px;line-height:1.45;color:#5a4a1f}

/* En Demo, la meme personne joue l'acheteur et le vendeur sur le meme ecran.
   Ce liesere dit de quel cote du comptoir on se trouve, pour qu'on ne prenne
   pas le recours de l'acheteur pour une action du vendeur. Sur la copie
   serveur, ce bloc n'existe pas : le recours vit sur la page « Mes achats ». */
.v194-dispute-demo{
  margin:12px 0 0;padding:10px 12px 4px;border:1px dashed #d8cce9;border-radius:14px;background:#fcfaff}
.v194-dispute-demo>small{
  display:block;margin-bottom:2px;font-size:10.5px;font-weight:700;letter-spacing:.08em;
  text-transform:uppercase;color:#6b5b80}
.v194-dispute-demo .v194-dispute-open{margin-top:4px}
.v194-dispute-demo .v194-dispute{margin:6px 0 10px;background:#fff}

/* Le delai de depot : le ton monte a mesure qu'il fond.
   Avant, la meme boite grise s'affichait a 40 heures et a 20 minutes. */
.v194-deadline{border-left:3px solid #ded3ee;transition:border-color .2s,background .2s}
.v194-deadline b{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap}
.v194-deadline-remaining{
  font-size:13px;font-weight:800;letter-spacing:.01em;padding:2px 9px;border-radius:999px;
  background:#f1ebf9;color:#4a3d5c;white-space:nowrap}
.v194-deadline.urgence-soon{border-left-color:#b08900;background:#fdfaf0}
.v194-deadline.urgence-soon .v194-deadline-remaining{background:#f7ecd0;color:#6b5200}
/* Urgent et depasse partagent le meme rouge sobre : a ce stade, un oubli coute
   l'annulation. Mais le TEXTE ne menace pas — depasse ne veut pas dire perdu. */
.v194-deadline.urgence-urgent,.v194-deadline.urgence-passed{border-left-color:#b3261e;background:#fdf4f3}
.v194-deadline.urgence-urgent .v194-deadline-remaining,
.v194-deadline.urgence-passed .v194-deadline-remaining{background:#f7dedb;color:#8c1d18}
