/* MyMoto Hero — styles isolés sous .mmh (aucune règle globale) */
.mmh,.mmh *,.mmh *::before,.mmh *::after{box-sizing:border-box}
.mmh{font-family:"Kanit",system-ui,sans-serif;font-weight:300;color:#fff;-webkit-font-smoothing:antialiased;text-align:left;width:100%;max-width:none}
.mmh a{color:inherit;text-decoration:none}
.mmh-marquee{font-family:"Kanit",system-ui,sans-serif;box-sizing:border-box}
.mmh-marquee *{box-sizing:border-box}
:where(.mmh) :is(.mmh-title,p){font-family:inherit;color:inherit;text-shadow:none}
.mmh .mmh-title{color:#fff}
.mmh button{font-family:inherit}
/* ---------- Hero ---------- */
.mmh{--px:0;--py:0;--p:0;position:relative;height:max(100svh,700px);min-height:700px;overflow:hidden;isolation:isolate;background:var(--mm-noir,#050607)}
.mmh::after{content:"";position:absolute;inset:0;z-index:9;pointer-events:none;
  background:radial-gradient(120% 90% at 70% 40%,transparent 55%,rgba(0,0,0,.65) 100%),linear-gradient(to top,var(--mm-noir,#050607) 0,rgba(5,6,7,0) 18%);}
.mmh-grain{position:absolute;inset:0;z-index:8;pointer-events:none;opacity:.05;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='.9'/></svg>")}

.mmh-layer{position:absolute;inset:0;pointer-events:none;will-change:transform}
/* lumière de fond */
.mmh-glow{z-index:1;opacity:0;transition:opacity 2.4s ease 1.2s}
.mmh-glow::before{content:"";position:absolute;right:2%;top:2%;width:62vw;height:110%;max-width:1000px;
  background:radial-gradient(closest-side,rgba(60,235,209,.34),rgba(60,235,209,.10) 55%,transparent 78%)}
.mmh-glow::after{content:"";position:absolute;right:-8%;bottom:-18%;width:70vw;height:50%;
  background:radial-gradient(closest-side,rgba(60,235,209,.18),transparent 80%)}
.mmh-ready .mmh-glow{opacity:1}
/* faisceaux */
.mmh-beams{z-index:2;opacity:0;transition:opacity 2s ease 1.6s}
.mmh-beams i{position:absolute;top:-20%;height:150%;width:18vw;transform:skewX(-24deg);
  background:linear-gradient(to right,transparent,rgba(60,235,209,.10),rgba(60,235,209,.15),rgba(60,235,209,.10),transparent);will-change:transform;animation:mmh-beam 16s ease-in-out infinite}
.mmh-beams i:nth-child(1){left:38%;animation-delay:-2s}
.mmh-beams i:nth-child(2){left:58%;width:9vw;animation-delay:-5s;opacity:.8}
@keyframes mmh-beam{0%,100%{transform:skewX(-24deg) translateX(-4vw)}50%{transform:skewX(-24deg) translateX(6vw)}}
.mmh-ready .mmh-beams{opacity:1}

/* scène du pilote */
.mmh-stage-wrap{z-index:5;transform:translate3d(calc(var(--px)*16px),calc(var(--py)*10px + var(--p)*70px),0)}
.mmh-stage{--sx:50%;--sy:35%;position:absolute;bottom:-10%;right:clamp(-20px,4vw,90px);height:min(108svh,1160px);aspect-ratio:2/3;
  transform:scale(calc(1 + var(--p)*.08));transform-origin:50% 90%;
  -webkit-mask-image:linear-gradient(to bottom,#000 0,#000 74%,transparent 98%);mask-image:linear-gradient(to bottom,#000 0,#000 74%,transparent 98%)}
.mmh-stage>*{position:absolute;inset:0;width:100%;height:100%;display:block}
.mmh-rider{object-fit:fill;opacity:0;filter:brightness(1.22) contrast(1.06) saturate(.9);transform:scale(1.015);transition:opacity 1.8s ease 1.5s,transform 2.6s cubic-bezier(.2,.7,.2,1) 1.5s}
.mmh-ready .mmh-rider{opacity:1;transform:none}
/* reflet qui balaie la silhouette */
.mmh-sheen{overflow:hidden;-webkit-mask:url(../img/lens-mask.png) center/100% 100% no-repeat;mask:url(../img/lens-mask.png) center/100% 100% no-repeat;opacity:0;transition:opacity 1.6s ease 2.6s;
  background:radial-gradient(120% 90% at 30% 20%,rgba(60,235,209,.15) 0,rgba(60,235,209,.04) 55%,transparent 80%)}
.mmh-sheen::before{content:"";position:absolute;top:0;bottom:0;left:0;width:20%;will-change:transform;transform:translateX(90%);
  background:linear-gradient(105deg,transparent 0,rgba(60,235,209,.04) 12%,rgba(60,235,209,.22) 30%,rgba(60,235,209,.45) 44%,rgba(255,255,255,.42) 50%,rgba(60,235,209,.4) 56%,rgba(60,235,209,.2) 70%,rgba(60,235,209,.04) 88%,transparent 100%);animation:mmh-sheen 8s ease-in-out infinite 3s}
.mmh-ready .mmh-sheen{opacity:.6}
@keyframes mmh-sheen{0%{transform:translateX(90%)}55%,100%{transform:translateX(340%)}}
/* contour néon */
svg.mmh-neon path{fill:none;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
svg.mmh-neon{filter:drop-shadow(0 0 4px rgba(60,235,209,.9)) drop-shadow(0 0 16px rgba(60,235,209,.65)) drop-shadow(0 0 42px rgba(60,235,209,.45))}
svg.mmh-neon path{stroke:var(--mm-neon,#3CEBD1);stroke-width:2.4;stroke-dasharray:1;stroke-dashoffset:1;opacity:.45;transition:stroke-dashoffset 2.6s cubic-bezier(.65,0,.25,1) .3s,opacity 1.2s ease 2.8s}
.mmh-ready svg.mmh-neon path{stroke-dashoffset:0}

.mmh-sand{width:100%;height:100%;display:block;opacity:0;transition:opacity 2.6s ease 2.2s}
.mmh-ready .mmh-sand{opacity:1}
.mmh-sand-back{z-index:4}
.mmh-sand-front{z-index:6}

/* ---------- Texte à gauche ---------- */
.mmh-content{position:absolute;z-index:10;left:0;top:0;bottom:0;display:flex;flex-direction:column;justify-content:center;max-width:min(900px,62vw);
  padding:110px 0 90px clamp(22px,6vw,96px);transform:translate3d(0,calc(var(--p)*-50px),0);opacity:calc(1 - var(--p)*.9)}
.mmh-eyebrow{display:inline-flex;align-items:center;gap:12px;margin:0 0 26px;font-size:14px;font-weight:500;letter-spacing:.22em;text-transform:uppercase;color:var(--mm-neon,#3CEBD1)}
.mmh-eyebrow::before{content:"";width:46px;height:1px;background:var(--mm-neon,#3CEBD1);box-shadow:0 0 12px var(--mm-neon,#3CEBD1);transform-origin:left;transform:scaleX(0);transition:transform 1s cubic-bezier(.2,.7,.2,1) 2s}
.mmh-ready .mmh-eyebrow::before{transform:none}
.mmh-eyebrow span{opacity:0;transform:translateX(-14px);transition:opacity .8s ease 2.2s,transform .8s ease 2.2s}
.mmh-ready .mmh-eyebrow span{opacity:1;transform:none}
.mmh-title{margin:0;font-weight:800;font-size:clamp(34px,4.75vw,76px);line-height:.9;letter-spacing:-.012em;text-transform:uppercase}
.mmh-title .mmh-line{display:block;overflow:hidden;padding:.2em .3em .22em;margin:-.23em -.3em -.23em}
.mmh-title .mmh-in{display:block;transform:translateY(210%) skewY(5deg);transition:transform 1.1s cubic-bezier(.2,.8,.2,1)}
.mmh-ready .mmh-title .mmh-in{transform:none}
.mmh-ready .mmh-title .mmh-line:nth-child(1) .mmh-in{transition-delay:2.1s}
.mmh-ready .mmh-title .mmh-line:nth-child(2) .mmh-in{transition-delay:2.25s}
.mmh-ready .mmh-title .mmh-line:nth-child(3) .mmh-in{transition-delay:2.4s}
.mmh-title .outline{color:transparent;-webkit-text-stroke:2px #fff}
.mmh-title .mmh-lit{color:var(--mm-neon,#3CEBD1);text-shadow:0 0 18px rgba(60,235,209,.65),0 0 52px rgba(60,235,209,.35)}
.mmh-rotator{display:flex;align-items:baseline;flex-wrap:wrap;gap:.45em;margin:26px 0 0;font-size:clamp(18px,1.7vw,26px);font-weight:400;color:var(--mm-texte-2,#BABABA);
  opacity:0;transform:translateY(16px);transition:opacity .9s ease 2.9s,transform .9s ease 2.9s}
.mmh-ready .mmh-rotator{opacity:1;transform:none}
.mmh-rot-words{position:relative;display:inline-grid;height:1.35em;overflow:hidden;vertical-align:bottom}
.mmh-rot-words b{grid-area:1/1;white-space:nowrap;font-weight:600;color:#fff;transform:translateY(110%);opacity:0;transition:transform .7s cubic-bezier(.2,.8,.2,1),opacity .5s ease}
.mmh-rot-words b.mmh-on{transform:none;opacity:1}
.mmh-rot-words b.mmh-off{transform:translateY(-110%);opacity:0}
.mmh-lead{max-width:30em;margin:18px 0 0;font-size:clamp(15px,1.15vw,18px);line-height:1.65;color:var(--mm-texte-2,#BABABA);opacity:0;transform:translateY(16px);transition:opacity .9s ease 3.05s,transform .9s ease 3.05s}
.mmh-ready .mmh-lead{opacity:1;transform:none}
.mmh-ctas{display:flex;flex-wrap:wrap;gap:14px;margin-top:34px;opacity:0;transform:translateY(16px);transition:opacity .9s ease 3.2s,transform .9s ease 3.2s}
.mmh-ready .mmh-ctas{opacity:1;transform:none}
.mmh-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:54px;padding:14px 30px;border-radius:99px;font-size:18px;font-weight:600;cursor:pointer;
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease,background .25s ease}
.mmh-btn-y{position:relative;isolation:isolate;background:var(--mm-jaune,#FFD301);color:#000;border:0;box-shadow:0 0 0 1px rgba(255,211,1,.35),0 8px 32px rgba(255,211,1,.28)}
.mmh-btn-y::before{content:"";position:absolute;inset:-8px -14px;z-index:-1;border-radius:99px;background:radial-gradient(closest-side,rgba(255,211,1,.75),rgba(255,211,1,.28) 60%,rgba(255,211,1,0) 100%);
  opacity:.55;transform:scale(1);will-change:transform,opacity;animation:mmh-halo 3s ease-in-out infinite}
@keyframes mmh-halo{0%,100%{opacity:.45;transform:scale(1)}50%{opacity:.9;transform:scale(1.12)}}
.mmh-btn-y:hover::before{opacity:1;animation-play-state:paused;transform:scale(1.14)}
.mmh-btn-y:hover{transform:translateY(-2px);box-shadow:0 0 0 1px rgba(255,211,1,.6),0 12px 40px rgba(255,211,1,.42)}
.mmh a.mmh-btn-y,.mmh a.mmh-btn-y:visited,.mmh a.mmh-btn-y:hover,.mmh a.mmh-btn-y:focus{color:#000!important;text-decoration:none}
.mmh a.mmh-btn-g,.mmh a.mmh-btn-g:visited,.mmh a.mmh-btn-g:hover,.mmh a.mmh-btn-g:focus{color:#fff!important;text-decoration:none}
.mmh-btn-g{background:rgba(5,6,7,.6);color:#fff;border:1px solid var(--mm-bordure-inactive,#3A4352);}
.mmh-btn-g:hover{border-color:var(--mm-neon,#3CEBD1);box-shadow:0 0 24px rgba(60,235,209,.28)}
.mmh-btn svg{width:20px;height:20px;flex:none}
.mmh-btn-y:hover svg{transform:translateX(3px)}
.mmh-btn svg{transition:transform .25s ease}

/* indicateur de défilement + rejouer */
.mmh-scroll{position:absolute;z-index:10;left:clamp(22px,6vw,96px);bottom:34px;display:flex;align-items:center;gap:14px;font-size:12px;letter-spacing:.3em;text-transform:uppercase;color:var(--mm-texte-2,#BABABA);opacity:0;transition:opacity 1s ease 3.6s}
.mmh-ready .mmh-scroll{opacity:1}
.mmh-scroll i{position:relative;width:1px;height:46px;background:var(--mm-bordure-inactive,#3A4352);overflow:hidden}
.mmh-scroll i::after{content:"";position:absolute;left:0;top:-40%;width:1px;height:40%;background:var(--mm-neon,#3CEBD1);box-shadow:0 0 10px var(--mm-neon,#3CEBD1);animation:mmh-drip 2s ease-in infinite}
@keyframes mmh-drip{to{top:110%}}
.mmh.mmh-reset *,.mmh.mmh-reset *::before,.mmh.mmh-reset *::after{transition:none!important;animation:none!important}

/* ---------- Bande défilante + suite ---------- */
.mmh-marquee{position:relative;overflow:hidden;border-block:1px solid var(--mm-bordure,#242B35);background:var(--mm-noir,#050607);padding:22px 0}
.mmh-marquee div{display:flex;width:max-content;animation:mmh-mq 38s linear infinite}
.mmh-marquee span{font-weight:800;font-size:clamp(40px,6vw,92px);line-height:1;text-transform:uppercase;white-space:nowrap;padding-right:.5em;color:transparent;-webkit-text-stroke:1.5px rgba(255,255,255,.55)}
.mmh-marquee span em{font-style:normal;color:var(--mm-neon,#3CEBD1);-webkit-text-stroke:0;text-shadow:0 0 22px rgba(60,235,209,.5)}
@keyframes mmh-mq{to{transform:translateX(-50%)}}



/* ---------- Mobile ---------- */
@media (max-width:860px){
  .mmh{height:auto;min-height:max(100svh,720px)}
  .mmh-stage{height:min(78svh,700px);right:-18vw;bottom:auto;top:62px;opacity:.9}
  .mmh-glow::before{width:120vw;right:-30vw;top:0;height:70%}
  .mmh-content{position:relative;max-width:none;min-height:max(100svh,720px);justify-content:flex-end;padding:0 22px 84px}
  .mmh-eyebrow{margin-bottom:18px;font-size:12px}
  .mmh-title{font-size:clamp(34px,9.8vw,64px)}
  .mmh-title .mmh-in{white-space:nowrap}
  .mmh-ctas .mmh-btn{flex:1 1 100%}
  .mmh-scroll{display:none}
    .mmh::after{background:linear-gradient(to top,var(--mm-noir,#050607) 0,rgba(5,6,7,.85) 24%,rgba(5,6,7,0) 52%),radial-gradient(120% 90% at 70% 30%,transparent 55%,rgba(0,0,0,.6) 100%)}
}

/* animations en pause quand le bloc n'est plus visible */
.mmh.mmh-paused *,.mmh.mmh-paused *::before,.mmh.mmh-paused *::after{animation-play-state:paused!important}
/* mouvement réduit */
@media (prefers-reduced-motion:reduce){
  .mmh *,.mmh *::before,.mmh *::after{animation:none!important;transition-duration:.01s!important;transition-delay:0s!important}
  .mmh{--px:0!important;--py:0!important}
  svg.mmh-neon path{stroke-dashoffset:0}
}
.mmh-marquee.mmh-paused div{animation-play-state:paused}
@media (prefers-reduced-motion:reduce){ .mmh-marquee div{animation:none} }
