/* Thomas Machicoane V8.9.3 — Hero plein écran, mémoire photographique et loader minimal. */

/* Le mode plein écran est le réglage livré ; le mode fenêtre reste disponible dans Thomas Studio. */
body.tm-site.tm-hero-media-full .hero-section .hero-video,
body.tm-site.tm-hero-media-full .hero-section .hero-fallback,
body.tm-site .hero-section.tm-hero-media-full .hero-video,
body.tm-site .hero-section.tm-hero-media-full .hero-fallback{
  inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;
  aspect-ratio:auto!important;object-fit:cover!important;object-position:center!important;transform:none!important
}

/* La composition des mains est conservée dans Elementor mais masquée réversiblement. */
body.tm-site.tm-hands-off .portrait-section{display:none!important}
body.tm-site.tm-hands-off .mobile-menu a[href="#portrait"]{display:none!important}

/* Photo de fond éditable pour « Composer avec la mémoire ». */
body.tm-site .about-section.tm-about-has-background{
  position:relative!important;isolation:isolate!important;overflow:hidden!important;
  min-height:clamp(620px,76vh,860px)!important;background:var(--v8-ink,#060d0e)!important;
  color:var(--v8-paper,#e8e2d9)!important
}
body.tm-site .about-section.tm-about-has-background:before,
body.tm-site .about-section.tm-about-has-background:after{
  content:"";position:absolute;z-index:-2;inset:0;pointer-events:none
}
body.tm-site .about-section.tm-about-has-background:before{
  background-image:var(--tm-about-image)!important;background-size:cover!important;
  background-position:var(--tm-about-position,center) center!important;filter:saturate(.82) contrast(1.06)
}
body.tm-site .about-section.tm-about-has-background:after{
  z-index:-1;background:linear-gradient(90deg,#060d0ef7 0%,#060d0ed9 34%,#060d0e70 66%,#060d0eab 100%),linear-gradient(0deg,#060d0ee8 0%,transparent 64%);
  opacity:var(--tm-about-overlay,.62)
}
body.tm-site .about-section.tm-about-has-background h2,
body.tm-site .about-section.tm-about-has-background .about-body{position:relative;color:var(--tm-section-text,var(--v8-paper,#e8e2d9))!important;text-shadow:0 2px 22px #0008}
body.tm-site .about-section.tm-about-has-background h2 span:first-child{color:var(--tm-section-title,var(--v8-paper,#e8e2d9))!important}
body.tm-site .about-section.tm-about-has-background h2 span:last-child,
body.tm-site .about-section.tm-about-has-background .about-mark{color:var(--tm-section-accent,var(--v8-yellow,#967100))!important}
body.tm-site .about-section.tm-about-has-background .about-body{max-width:520px;padding:24px;background:#060d0e99;border-left:2px solid var(--tm-section-accent,var(--v8-yellow,#967100));backdrop-filter:blur(5px)}

/* Loader : un seul dessin détouré, une piste fine, aucun cadre ni symbole parasite. */
body.tm-site .site-loader{padding:20px!important}
body.tm-site .loader-stage{
  width:min(760px,90vw)!important;height:min(360px,68vh)!important;justify-content:flex-end!important;overflow:visible!important
}
body.tm-site .loader-wordmark{display:none!important}
body.tm-site .loader-route{width:100%!important;height:min(238px,45vh)!important;margin:0!important}
body.tm-site .loader-route__dash,
body.tm-site .loader-route__note,
body.tm-site .loader-skater:after{display:none!important}
body.tm-site .loader-route__line{
  left:0!important;right:0!important;bottom:31px!important;height:1px!important;transform:none!important;
  background:linear-gradient(90deg,transparent 0,#e8e2d945 4%,#e8e2d945 96%,transparent 100%)!important
}
body.tm-site .loader-route__line:before{
  top:-1px!important;height:3px!important;width:calc(var(--tm-loader-progress) * 1%)!important;
  background:var(--tm-loader-track,var(--v8-yellow,#967100))!important;
  clip-path:polygon(0 34%,98% 0,100% 65%,97% 100%,0 72%)!important;box-shadow:0 0 14px #96710055!important
}
body.tm-site .loader-skater{
  bottom:21px!important;width:min(var(--tm-loader-dog-size,240px),37vw)!important;
  filter:none!important;background:transparent!important;border:0!important;padding:0!important
}
body.tm-site .loader-skater img{
  display:block!important;width:100%!important;height:auto!important;background:transparent!important;border:0!important;
  box-shadow:none!important;filter:none!important;object-fit:contain!important
}
body.tm-site .loader-meta{
  padding-top:13px!important;border-top:0!important;color:#e8e2d99c!important;font-size:7px!important;letter-spacing:.25em!important
}
body.tm-site .loader-meta b{font-size:22px!important;color:var(--tm-loader-track,var(--v8-yellow,#967100))!important}

@media(max-width:780px){
  body.tm-site .loader-stage{width:92vw!important;height:min(330px,64vh)!important}
  body.tm-site .loader-route{height:210px!important}
  body.tm-site .loader-skater{width:min(var(--tm-loader-dog-size,260px),58vw)!important}
  body.tm-site .about-section.tm-about-has-background{min-height:680px!important}
  body.tm-site .about-section.tm-about-has-background:before{background-position:62% center!important}
  body.tm-site .about-section.tm-about-has-background .about-body{padding:18px!important}
}

@media(prefers-reduced-motion:reduce){
  body.tm-site .loader-skater img{animation:none!important}
}
