/* === TCA V21.5.0 — RESTAURATION VISUELLE / THEME SOMBRE UNIQUE ===
   Aucun ajout fonctionnel. Cette couche corrige uniquement les contrastes,
   les surfaces, l'authentification, l'accueil et la navigation. */
:root{
  color-scheme:light; /* INC-20260915-001 : l'interface est claire; 'dark' peignait les cases natives en sombre */
  --bg:#0B0E1A;
  --bg2:#0F1425;
  --panel:#12182A;
  --panel2:#18213A;
  --panel3:#202947;
  --line:#35405C;
  --line-strong:#536180;
  --primary:#A855F7;
  --primary2:#7C3AED;
  --primary-soft:#25163D;
  --cyan:#22D3EE;
  --gold:#F6C344;
  --danger:#FB7185;
  --success:#4ADE80;
  --text:#F8FAFC;
  --muted:#B8C2D8;
  --muted2:#8F9BB7;
  --surface-text:#F8FAFC;
  --surface-muted:#B8C2D8;
  --surface-dark:#12182A;
  --surface-dark-2:#18213A;
  --surface-dark-3:#202947;
  --focus:#22D3EE;
  --shadow:0 18px 46px rgba(0,0,0,.28);
  --tca-v214-ink:var(--text);
  --tca-v214-sub:var(--muted);
  --tca-v214-line:var(--line);
  --tca-official-ink:var(--text);
  --tca-official-line:var(--line);
  --v19-ink:var(--text);
  --v19-sub:var(--muted);
  --v19-line:var(--line);
  --v19-shadow-sm:0 10px 28px rgba(0,0,0,.22);
  --v19-shadow:0 18px 44px rgba(0,0,0,.28);
}
html,body,#root{background:var(--bg)!important;color:var(--text)!important}
html{color-scheme:light!important /* INC-20260915-001 */}
body{color:var(--text)!important;background:var(--bg)!important}
::selection{background:rgba(168,85,247,.45);color:var(--text)}
::placeholder{color:var(--muted2)!important;opacity:1}
button,input,select,textarea{font-family:inherit}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible,[tabindex]:focus-visible{
  outline:3px solid var(--focus)!important;
  outline-offset:3px!important;
  box-shadow:0 0 0 5px rgba(34,211,238,.18)!important;
}
.tca-stage{padding:0!important;background:
  radial-gradient(circle at 74% 12%,rgba(124,58,237,.18),transparent 30%),
  radial-gradient(circle at 14% 86%,rgba(34,211,238,.08),transparent 28%),
  var(--bg)!important}
.tca-shell,.tca-shell-app,.tca-shell-flow,.tca-app-root,.tca-scroll,.tca-page{background-color:var(--bg)!important;color:var(--text)!important}
.tca-shell{border-color:var(--line)!important}
.tca-page{color:var(--text)!important}
.tca-page h1,.tca-page h2,.tca-page h3,.tca-page h4,.tca-page h5,.tca-page strong,.tca-page b{color:var(--text)}
.tca-page p,.tca-page small,.tca-page label{color:var(--muted)}
.tca-kicker,.v19-eyebrow{color:#D8B4FE!important}

/* Auth : un seul split, surfaces sombres et logo transparent directement sur la vidéo. */
.tca-auth-split-v2141{
  background:var(--bg)!important;
  grid-template-columns:minmax(0,.88fr) minmax(410px,1fr)!important;
}
.tca-auth-visual-v2141{background:#070A14!important;border-right:1px solid var(--line)!important}
.tca-auth-cinematic-v2141{inset:0 0 auto 0!important;height:min(31vh,202px)!important;min-height:180px!important}
.tca-auth-cinematic-v2141 .tca-entity-media{object-position:58% 34%!important;transform:none!important}
.tca-auth-cinematic-v2141 .tca-entity-vignette{background:linear-gradient(0deg,rgba(7,10,20,.34),rgba(7,10,20,.02) 64%,rgba(7,10,20,.2))!important}
.tca-auth-cinematic-v2141 .tca-entity-grid,.tca-auth-cinematic-v2141 .tca-entity-official,.tca-auth-cinematic-v2141 .tca-media-saver{display:none!important}
.tca-auth-official-logo-v2141{
  top:26px!important;left:31px!important;width:190px!important;
  padding:0!important;border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;
  filter:drop-shadow(0 4px 12px rgba(0,0,0,.58));
}
.tca-auth-official-logo-v2141 img{max-height:68px!important;object-fit:contain!important;object-position:left center!important}
.tca-auth-visual-copy-v2141{
  left:31px!important;right:31px!important;bottom:35px!important;max-width:560px!important;
  text-shadow:none!important;color:var(--text)!important;
}
.tca-auth-visual-copy-v2141 .tca-kicker{color:#D8B4FE!important;font-size:9px!important}
.tca-auth-visual-copy-v2141 h1{color:var(--text)!important;font-size:clamp(42px,5.2vw,72px)!important;line-height:.91!important;margin:12px 0 14px!important}
.tca-auth-visual-copy-v2141 h1 span{background:linear-gradient(90deg,#C084FC,#60A5FA,#22D3EE);-webkit-background-clip:text;background-clip:text;color:transparent!important}
.tca-auth-visual-copy-v2141 p{color:#E2E8F0!important;font-size:13px!important;line-height:1.6!important}
.tca-auth-proof-v2141 span{background:#0B1020!important;border-color:var(--line)!important;color:var(--text)!important}
.tca-auth-form-v2141{
  background:
    radial-gradient(circle at 100% 0%,rgba(168,85,247,.11),transparent 34%),
    linear-gradient(180deg,#1B2140 0%,#171D35 100%)!important;
  color:var(--text)!important;border-left:1px solid var(--line)!important;
  padding:clamp(36px,5vw,64px)!important;
}
.tca-auth-form-inner-v2141{max-width:540px!important}
.tca-auth-form-brand-v2141{display:block!important;margin-bottom:18px!important;padding-bottom:16px!important;border-bottom:1px solid var(--line)!important}
.tca-auth-form-brand-v2141>div{display:grid!important;gap:5px!important}
.tca-auth-form-brand-v2141>div span{color:#D8B4FE!important;font-size:10px!important;letter-spacing:.14em!important;font-weight:950!important}
.tca-auth-form-brand-v2141>div small{color:var(--muted)!important;font-size:9px!important}
.tca-auth-form-v2141>.tca-brand-lockup-v214,.tca-auth-form-brand-v2141>.tca-brand-lockup-v214{display:none!important}
.tca-auth-form-v2141 .tca-kicker{color:#C084FC!important}
.tca-auth-form-v2141 h2{color:var(--text)!important;font-size:clamp(30px,3.2vw,46px)!important}
.tca-auth-form-v2141 .lead,.tca-auth-form-v2141>div>p,.tca-auth-form-v2141 .tca-auth-form-inner-v2141>p{color:var(--muted)!important}
.tca-auth-form-v2141 .tca-field{
  min-height:53px!important;background:#10162A!important;border:1px solid var(--line)!important;
  box-shadow:none!important;color:var(--text)!important;
}
.tca-auth-form-v2141 .tca-field:focus-within{border-color:var(--cyan)!important;box-shadow:0 0 0 4px rgba(34,211,238,.14)!important}
.tca-auth-form-v2141 .tca-field input{color:var(--text)!important;-webkit-text-fill-color:var(--text)!important}
.tca-auth-form-v2141 .tca-field input::placeholder{color:#938AA0!important;-webkit-text-fill-color:#938AA0!important}
.tca-auth-form-v2141 .tca-field svg,.tca-auth-form-v2141 .tca-field>span{color:#C084FC!important}
.tca-auth-notice{background:#211C3D!important;border-color:#6D4BA5!important;color:var(--text)!important}
.tca-auth-notice>span{color:#D8B4FE!important}.tca-auth-notice>strong{color:var(--text)!important}.tca-auth-notice>p{color:var(--muted)!important}
.tca-auth-notice.is-demo{background:#211C3D!important;border-color:#7049A8!important}
.tca-auth-notice.is-production{background:#331827!important;border-color:#8C3A58!important}
.tca-auth-notice>button,.tca-auth-create-v2141,.tca-login-primary{
  background:linear-gradient(135deg,#8B2CF5,#7C3AED 55%,#38BDF8)!important;
  border:0!important;color:#fff!important;box-shadow:0 12px 30px rgba(124,58,237,.28)!important;
}
.tca-auth-notice>button{width:100%!important;justify-self:stretch!important;min-height:45px!important}
.tca-auth-account-login-v215,.tca-auth-secondary-v2141,.tca-auth-back-v2141,.tca-auth-demo-direct{
  width:100%!important;background:#151C33!important;border:1px solid var(--line)!important;color:var(--text)!important;
  box-shadow:none!important;
}
.tca-auth-account-login-v215{min-height:56px!important;font-weight:900!important}
.tca-auth-secondary-v2141:hover,.tca-auth-account-login-v215:hover,.tca-auth-back-v2141:hover,.tca-auth-demo-direct:hover{border-color:#8B5CF6!important;background:#1B2441!important}
.tca-auth-founder-v2141{background:#2B2417!important;border-color:#9A7222!important;color:#FDE68A!important}
.tca-auth-footnote-v2141{color:var(--muted2)!important}
.tca-registration-centre{background:#11172B!important;border-color:var(--line)!important;color:var(--text)!important}
.tca-registration-centre>p{color:var(--muted)!important}
.tca-auth-form-v2141 .tca-registration-centre .tca-centre-select{
  background:#151D35!important;color:var(--text)!important;border-color:var(--line)!important;box-shadow:none!important;
}
.tca-auth-form-v2141 .tca-registration-centre .tca-centre-select-copy small{color:var(--muted)!important}
.tca-auth-form-v2141 .tca-registration-centre .tca-centre-select-copy select{color:var(--text)!important;-webkit-text-fill-color:var(--text)!important}
.tca-auth-form-v2141 .tca-registration-centre .tca-centre-select-copy select option{background:#11172B!important;color:var(--text)!important}

/* En-tête et navigation : couture clair/sombre supprimée. */
.tca-brand-header-v214{
  background:rgba(11,14,26,.96)!important;border-color:var(--line)!important;
  box-shadow:0 10px 30px rgba(0,0,0,.22)!important;color:var(--text)!important;
}
.tca-brand-home-v214{background:transparent!important;border:0!important;box-shadow:none!important}
.tca-brand-header-v214 nav>button,.tca-points-chip-v214{
  background:#151C33!important;border-color:var(--line)!important;color:var(--text)!important;box-shadow:none!important;
}
.tca-brand-header-v214 nav>button small,.tca-points-chip-v214 small{color:var(--muted)!important}
.tca-nav{background:rgba(10,13,25,.98)!important;border-color:var(--line)!important;color:var(--text)!important;box-shadow:0 -12px 35px rgba(0,0,0,.28)!important}
.tca-nav-mark{background:transparent!important;border:0!important;box-shadow:none!important}
.tca-nav-link{color:var(--muted)!important;background:transparent!important}
.tca-nav-link span{color:inherit!important}
.tca-nav-link.is-active{color:var(--text)!important;background:#241A3C!important;border-color:#7445A7!important;box-shadow:inset 0 0 0 1px rgba(168,85,247,.18)!important}
.tca-nav-user{background:#12182A!important;border-color:var(--line)!important}

/* Accueil visiteur : texte, centre et marque sur une même direction sombre. */
.v19-home-page,.v19-boutique-shell{color:var(--text)!important;background:var(--bg)!important}
.v19-home-welcome h1{color:var(--text)!important}
.v19-home-welcome p{color:var(--muted)!important}
.v19-home-welcome .v19-eyebrow{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#C084FC!important}
.v19-centre-strip,.tca-centre-strip{
  background:var(--panel)!important;border:1px solid var(--line)!important;color:var(--text)!important;box-shadow:var(--shadow)!important;
}
.v19-centre-strip>p,.tca-centre-strip>p{color:var(--muted)!important}.v19-centre-strip>p b{color:#E9D5FF!important}
.tca-centre-select{
  background:#11182E!important;border:1px solid var(--line)!important;color:var(--text)!important;box-shadow:none!important;
}
.tca-centre-select:focus-within{border-color:var(--cyan)!important;box-shadow:0 0 0 3px rgba(34,211,238,.14)!important}
.tca-centre-select-copy small{color:var(--muted)!important}.tca-centre-select-copy select{color:var(--text)!important;-webkit-text-fill-color:var(--text)!important;text-overflow:ellipsis!important}
.tca-centre-select-copy select option{background:#11182E!important;color:var(--text)!important}
.tca-centre-select-badge{color:#D8B4FE!important;border-color:#7049A8!important;background:#25163D!important}
.tca-centre-select-icon{background:#25163D!important;color:#C084FC!important}

/* Identité, événements, Collection et tuiles : texte issu de la surface sombre. */
.tca-identity-access-v213,.tca-profile-overview-v214,.tca-profile-center-v214,.tca-events-spotlight-v213,
.tca-collection-pulse-v193,.tca-summary-card,.tca-panel,.tca-side-card,.tca-profile-section,.tca-profile-group-v214,
.v19-centre-boutique-bridge,.v19-preferences-card,.v19-purchase-journey,.v19-purchase-loop{
  background:var(--panel)!important;border-color:var(--line)!important;color:var(--surface-text)!important;box-shadow:var(--shadow)!important;
}
.tca-identity-access-v213 h1,.tca-identity-access-v213 h2,.tca-identity-access-v213 h3,
.tca-events-spotlight-v213 h1,.tca-events-spotlight-v213 h2,.tca-events-spotlight-v213 h3,
.tca-collection-pulse-v193 h1,.tca-collection-pulse-v193 h2,.tca-collection-pulse-v193 h3,
.tca-summary-card h4,.tca-summary-number,.tca-profile-center-v214 h2{color:var(--surface-text)!important}
.tca-identity-access-v213 p,.tca-identity-access-v213 small,.tca-events-spotlight-v213 p,.tca-events-spotlight-v213 small,
.tca-collection-pulse-v193 p,.tca-collection-pulse-v193 small,.tca-summary-card p,.tca-profile-center-v214 p{color:var(--surface-muted)!important}
.tca-summary-card{min-height:180px!important;text-align:left!important}
.tca-summary-card:hover{background:var(--panel2)!important;border-color:#6B4BA5!important}
.tca-summary-number{font-size:25px!important}
.tca-summary-card-head h4{color:var(--surface-text)!important}.tca-summary-card-head svg{color:#C084FC!important}
.tca-dashboard-lower{gap:10px!important}
.tca-collection-pulse-v193,.tca-collection-pulse-v193 *{animation:none!important;transition-property:color,background-color,border-color,box-shadow!important}
.tca-collection-pulse-v193 .tca-metric,.tca-collection-pulse-v193 [class*="metric"],.tca-collection-pulse-v193 [class*="chip"]{background:#11182E!important;border-color:var(--line)!important;color:var(--text)!important}
.tca-events-spotlight-v213>header{color:var(--text)!important}
.tca-events-spotlight-v213 header p{color:var(--muted)!important}
.tca-events-spotlight-v213 header>button,.tca-events-spotlight-v213>footer button{background:#F8FAFC!important;color:#5B21B6!important;border-color:#D8B4FE!important}
.tca-event-card-v213,.tca-events-spotlight-v213 article{background:var(--panel2)!important;border-color:var(--line)!important;color:var(--text)!important}
.tca-event-card-v213 small{color:var(--muted)!important}

/* Commerce historique : le thème sombre demeure limité aux surfaces prévues.
   Boutique V23 possède maintenant sa propre couche canonique claire. */
.v19-commerce-hero-panel,.v19-store-card,.v19-commerce-metrics button,.v19-product-detail,.v19-reservation-shell,.v19-reservation-card,.v19-gift-card,.v19-intent-card,.v19-filter-panel,.v19-shop-controls,.v19-empty-state{
  background:var(--panel)!important;border-color:var(--line)!important;color:var(--text)!important;box-shadow:var(--shadow)!important;
}
.v19-commerce-hero-panel h1,.v19-commerce-hero-panel h2,.v19-commerce-hero-panel h3,.v19-store-card h3{color:var(--text)!important}
.v19-commerce-hero-panel p,.v19-store-card p{color:var(--muted)!important}
.v19-global-search{background:#11182E!important;border:1px solid var(--line)!important;box-shadow:none!important}
.v19-global-search input{color:var(--text)!important}.v19-global-search>span{color:#C084FC!important}
.v19-centre-boutique-bridge p,.v19-preferences-card p,.v19-purchase-loop p,.v19-purchase-journey small{color:var(--muted)!important}
.v19-centre-boutique-bridge h2,.v19-preferences-card h2,.v19-purchase-loop b,.v19-purchase-journey b{color:var(--text)!important}

/* Profil et formulaires généraux. */
.tca-profile-center-v214 select,.tca-profile-section input,.tca-profile-section select,.tca-profile-section textarea,
.tca-setting-row,.tca-settings-card,.tca-registration-centre select{
  background:#11182E!important;border-color:var(--line)!important;color:var(--text)!important;
}
.tca-profile-private-v214{background:#25163D!important;color:#E9D5FF!important}
.tca-profile-group-v214>summary{color:var(--text)!important}.tca-profile-group-v214>summary small{color:var(--muted)!important}

/* Accessibilité et images. */
button[aria-label],a[aria-label]{touch-action:manipulation}
img{max-width:100%}

@media(max-width:900px){
  .tca-auth-split-v2141{grid-template-columns:minmax(0,.88fr) minmax(410px,1fr)!important}
  .tca-auth-visual-copy-v2141 h1{font-size:50px!important}
}
@media(max-width:760px){
  .tca-auth-split-v2141{display:flex!important;flex-direction:column!important;background:var(--bg)!important}
  .tca-auth-visual-v2141{flex:0 0 282px!important;min-height:282px!important;height:282px!important;border-right:0!important;border-bottom:1px solid var(--line)!important}
  .tca-auth-cinematic-v2141{height:203px!important;min-height:203px!important}
  .tca-auth-official-logo-v2141{top:27px!important;left:29px!important;width:166px!important}
  .tca-auth-visual-copy-v2141{left:18px!important;right:18px!important;bottom:21px!important}
  .tca-auth-visual-copy-v2141 .tca-kicker{font-size:7px!important}
  .tca-auth-visual-copy-v2141 h1{font-size:30px!important;margin:7px 0 0!important;line-height:.94!important}
  .tca-auth-visual-copy-v2141 p,.tca-auth-proof-v2141{display:none!important}
  .tca-auth-form-v2141{background:#1B2140!important;border-top:0!important;padding:24px 18px calc(34px + env(safe-area-inset-bottom))!important}
  .tca-auth-form-inner-v2141{max-width:540px!important}
  .tca-auth-form-v2141 h2{font-size:29px!important}
  .tca-brand-header-v214{min-height:68px!important;padding:9px 14px!important}
  .tca-brand-header-v214 nav{gap:6px!important}.tca-brand-header-v214 nav>button,.tca-points-chip-v214{min-height:44px!important;padding:6px 10px!important}
  .tca-nav{background:rgba(11,14,26,.985)!important;border-top:1px solid var(--line)!important}
  .tca-nav-link{color:var(--muted)!important}.tca-nav-link.is-active{color:var(--text)!important;background:#241A3C!important}
  .tca-summary-card{min-height:190px!important;padding:14px 12px!important}
  .tca-summary-card h4{font-size:16px!important;line-height:1.45!important}.tca-summary-card p{font-size:13px!important;line-height:1.7!important}
}
@media(min-width:761px) and (max-width:1024px){
  .tca-nav{position:fixed!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;height:auto!important;min-height:70px!important;width:100%!important;z-index:1200!important;padding:6px 8px max(8px,env(safe-area-inset-bottom))!important;border-right:0!important;border-top:1px solid var(--line)!important}
  .tca-nav-brand,.tca-nav-user{display:none!important}.tca-nav-links{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:4px!important}
  .tca-nav-link{min-width:0!important;min-height:56px!important;justify-content:center!important;flex-direction:column!important;gap:3px!important;padding:6px 4px!important}
  .tca-nav-link span:last-child{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px!important}
  .tca-app-root{display:block!important}.tca-scroll{height:100%!important;padding-bottom:calc(86px + env(safe-area-inset-bottom))!important}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
}

/* V21.5 — verrou de contraste de la navigation mobile/tablette.
   Ces sélecteurs volontairement plus spécifiques neutralisent les anciennes
   règles claires encore présentes dans le snapshot historique. */
.tca-nav .tca-nav-links .tca-nav-link,
.tca-nav .tca-nav-links .tca-nav-link:not(.is-active){
  background:transparent!important;
  color:var(--muted)!important;
  border-color:transparent!important;
}
.tca-nav .tca-nav-links .tca-nav-link > span,
.tca-nav .tca-nav-links .tca-nav-link:not(.is-active) > span,
.tca-nav .tca-nav-links .tca-nav-link svg{
  color:inherit!important;
  -webkit-text-fill-color:currentColor!important;
}
/* V24 : la barre est claire depuis V22 ; l'onglet actif garde une encre
   violette foncée. L'ancien remplissage blanc (-webkit-text-fill-color)
   rendait l'onglet courant invisible sur sa pastille lavande. */
.tca-nav .tca-nav-links .tca-nav-link.is-active{
  background:#efe4fa!important;
  color:#4c1d95!important;
  border-color:#c9b3ec!important;
  box-shadow:inset 0 0 0 1px rgba(124,58,237,.14)!important;
}
.tca-nav .tca-nav-links .tca-nav-link.is-active > span,
.tca-nav .tca-nav-links .tca-nav-link.is-active svg{
  color:#4c1d95!important;
  -webkit-text-fill-color:currentColor!important;
}

/* Collection 360 : l'ancien bandeau blanc V19.3 est restauré au thème TCA sombre. */
.tca-home-page button.v193-home-pulse,
.v19-home-page button.v193-home-pulse{
  background:
    radial-gradient(circle at 88% 10%,rgba(34,211,238,.10),transparent 30%),
    linear-gradient(145deg,#171D34,#10162A)!important;
  color:var(--text)!important;
  border:1px solid #3D4B70!important;
  box-shadow:var(--shadow)!important;
}
.tca-home-page button.v193-home-pulse .v193-home-pulse-title,
.tca-home-page button.v193-home-pulse .v193-home-pulse-title strong,
.tca-home-page button.v193-home-pulse > i{
  color:var(--text)!important;
  -webkit-text-fill-color:var(--text)!important;
}
.tca-home-page button.v193-home-pulse .v193-home-pulse-title small{
  color:#D8B4FE!important;
  -webkit-text-fill-color:#D8B4FE!important;
}
.tca-home-page button.v193-home-pulse .v193-home-pulse-title > span{
  background:linear-gradient(145deg,#7C3AED,#9333EA)!important;
  color:#FFFFFF!important;
  border-color:#A855F7!important;
}
.tca-home-page button.v193-home-pulse .v193-home-pulse-metrics > span{
  background:#0F1629!important;
  color:var(--muted)!important;
  border:1px solid #3D4B70!important;
}
.tca-home-page button.v193-home-pulse .v193-home-pulse-metrics b{
  color:var(--text)!important;
  -webkit-text-fill-color:var(--text)!important;
}
