/* ==========================================================================
   Mokina — landing
   Sommaire : tokens / base / header / hero / visuel / trust / steps /
              download / footer / animations / responsive
   ========================================================================== */

:root{
  --teal:#0D3D3D;
  --teal-2:#145A5C;
  --aqua:#9FD8D0;
  --aqua-dark:#78C5BD;
  --sand:#F6F3EF;
  --lav:#8E8DB7;
  --coral:#FF7D6E;
  --ink:#173737;
  --muted:#607574;
  --white:#fff;
  --line:#dce9e6;
  --shadow:0 28px 80px rgba(13,61,61,.16);
  --ease:cubic-bezier(.22,.68,.24,1);
  --ease-out:cubic-bezier(.16,1,.3,1);
}

/* ---------- base ---------- */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:#f9fbfa;
  color:var(--ink);
  font-family:Manrope,Arial,sans-serif;
}
.page-shell{overflow:hidden}
img{max-width:100%}

:focus-visible{
  outline:2px solid var(--aqua-dark);
  outline-offset:3px;
  border-radius:6px;
}

/* ---------- header ---------- */
.site-header{
  height:92px;
  max-width:1240px;
  margin:auto;
  padding:0 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.brand img,
.footer-brand img{display:block;width:154px;height:auto}
.brand{transition:transform .4s var(--ease)}
.brand:hover{transform:translateY(-1px) scale(1.015)}

.header-actions{display:flex;align-items:center;gap:12px}

/* taille figée : le libellé change d'une langue à l'autre, pas la boîte */
.language-link{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:var(--muted);
  text-decoration:none;
  font-size:13px;
  font-weight:700;
  transition:color .3s var(--ease),background .3s var(--ease);
}
.language-link:hover{color:var(--teal);background:rgba(13,61,61,.06)}

.header-cta{
  height:44px;
  min-width:168px;
  padding:0 22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(13,61,61,.18);
  border-radius:999px;
  color:var(--teal);
  text-decoration:none;
  font-size:14px;
  font-weight:700;
  white-space:nowrap;
  background:rgba(255,255,255,.65);
  backdrop-filter:blur(12px);
  transition:background .35s var(--ease),color .35s var(--ease),
             transform .35s var(--ease),box-shadow .35s var(--ease);
}
.header-cta:hover{
  background:var(--teal);
  color:#fff;
  transform:translateY(-2px);
  box-shadow:0 10px 24px rgba(13,61,61,.22);
}

/* ---------- hero ---------- */
.hero{
  min-height:700px;
  max-width:1240px;
  margin:auto;
  padding:65px 28px 80px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:65px;
  align-items:center;
}
h1{
  font-family:Comfortaa,Manrope,sans-serif;
  font-size:clamp(48px,5.2vw,76px);
  line-height:1.08;
  letter-spacing:-.045em;
  font-weight:500;
  margin:0 0 26px;
  color:var(--teal);
  /* 3 lignes réservées : le titre FR en fait 3, l'EN 2 — sans ça tout le
     bloc en dessous remonte d'une ligne au changement de langue. */
  min-height:3.24em;
}
h1 em{font-style:normal;color:var(--aqua-dark)}

.hero-text{
  font-size:18px;
  line-height:1.75;
  color:var(--muted);
  max-width:570px;
  margin:0;
  min-height:94px; /* 3 lignes réservées : FR et EN ne décalent plus rien */
}

.hero-actions{margin-top:32px}

.btn-primary{
  height:54px;
  min-width:232px;
  padding:0 28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border-radius:999px;
  background:var(--teal);
  color:#fff;
  text-decoration:none;
  font-size:15px;
  font-weight:700;
  white-space:nowrap;
  box-shadow:0 12px 30px rgba(13,61,61,.22);
  position:relative;
  overflow:hidden;
  transition:transform .4s var(--ease),box-shadow .4s var(--ease),background .4s var(--ease);
}
.btn-primary svg{
  width:17px;
  height:17px;
  flex:none;
  transition:transform .4s var(--ease);
}
.btn-primary:hover{
  background:#0a3131;
  transform:translateY(-3px);
  box-shadow:0 18px 38px rgba(13,61,61,.28);
}
.btn-primary:hover svg{transform:translateX(5px)}
.btn-primary:active{transform:translateY(-1px)}
/* reflet discret au survol */
.btn-primary::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(110deg,transparent 30%,rgba(255,255,255,.22) 50%,transparent 70%);
  transform:translateX(-120%);
  transition:transform .8s var(--ease-out);
}
.btn-primary:hover::after{transform:translateX(120%)}

/* ---------- badges stores (artwork officiel, dimensions figées) ---------- */
.store-buttons{
  display:flex;
  gap:14px;
  margin-top:22px;
  flex-wrap:wrap;
}
.store-button{
  display:block;
  border-radius:11px;
  line-height:0;
  transition:transform .4s var(--ease),box-shadow .4s var(--ease),filter .4s var(--ease);
  box-shadow:0 9px 26px rgba(13,61,61,.16);
}
.store-button img{
  display:block;
  height:52px;
  width:auto; /* ratio identique pour les 4 badges : aucun décalage FR/EN */
}
.store-button:hover{
  transform:translateY(-3px) scale(1.015);
  box-shadow:0 16px 34px rgba(13,61,61,.24);
}
.store-button:active{transform:translateY(-1px)}

.availability{
  font-size:12px;
  color:#849592;
  margin:14px 0 0 4px;
  min-height:34px;
}

/* ---------- visuel hero ---------- */
.hero-visual{
  position:relative;
  min-height:600px;
  display:grid;
  place-items:center;
}
.hero-visual:before{
  content:"";
  position:absolute;
  width:530px;
  height:530px;
  border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#dff4f0,#bfe4de 62%,#acd8d2);
  z-index:-2;
  animation:halo 16s ease-in-out infinite;
}
.orb{position:absolute;border-radius:50%;z-index:-1}
.orb-a{
  width:96px;height:96px;
  background:rgba(255,125,110,.75);
  right:16px;top:70px;
  animation:drift 19s ease-in-out infinite;
}
.orb-b{
  width:66px;height:66px;
  background:rgba(142,141,183,.65);
  left:8px;bottom:90px;
  animation:drift 24s ease-in-out infinite reverse;
}

.phone{
  width:322px;
  height:610px;
  border:8px solid #fff;
  border-radius:42px;
  background:#fbfcfc;
  box-shadow:var(--shadow);
  /* Colonne flex : le contenu s'ajuste à la hauteur de l'écran quelle que
     soit la langue ou la métrique de police. Le padding bas réserve la nav. */
  display:flex;
  flex-direction:column;
  padding:16px 17px 76px;
  position:relative;
  z-index:2;
  transform:translate3d(calc(var(--px,0) * 1px),calc(var(--py,0) * 1px),0);
  transition:transform .9s var(--ease-out);
}
.phone:after{
  content:"";
  position:absolute;
  top:7px;left:50%;
  transform:translateX(-50%);
  width:90px;height:20px;
  border-radius:20px;
  background:#112525;
}
.phone-bar{
  padding:3px 3px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:10px;
  font-weight:700;
}
.status-icons{display:block;color:#173737}

.app-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:28px 2px 15px;
}
.app-head small{color:var(--muted);font-size:11px}
.app-head h2{
  font-family:Comfortaa;
  margin:3px 0 0;
  font-size:19px;
  color:var(--teal);
  letter-spacing:-.04em;
}
.avatar{
  width:36px;height:36px;
  border-radius:50%;
  background:var(--sand);
  display:grid;place-items:center;
  color:var(--teal);
  font-weight:700;
  flex:none;
}

.session-card{
  flex:1;
  display:flex;
  flex-direction:column;
  background:#fff;
  border:1px solid #e3edeb;
  border-radius:20px;
  padding:17px;
  box-shadow:0 10px 30px rgba(13,61,61,.06);
}
.session-top{
  font-size:9px;
  font-weight:700;
  letter-spacing:.12em;
  color:var(--aqua-dark);
  display:flex;
  justify-content:space-between;
  gap:8px;
}
.session-card h3{margin:9px 0 6px;font-size:18px;color:var(--teal);min-height:25px}

.exercise-art{
  flex:1;
  min-height:150px;
  background:#e9f6f3;
  border-radius:15px;
  position:relative;
  overflow:hidden;
}
.exercise-art:before{
  content:"";
  position:absolute;
  width:170px;height:170px;
  border-radius:50%;
  background:#d5efea;
  left:-20px;top:-55px;
}
.sun{
  position:absolute;
  width:24px;height:24px;
  background:var(--coral);
  border-radius:50%;
  right:30px;top:34px;
  animation:sunPulse 6s ease-in-out infinite;
}
.body{
  position:absolute;
  width:120px;height:50px;
  /* recentré sur la boîte englobante réelle du personnage (bras + jambe) */
  left:calc(50% - 82px);
  top:calc(50% - 31px);
  border-bottom:7px solid var(--lav);
  border-radius:60%;
  transform:rotate(-5deg);
  animation:sway 9s ease-in-out infinite;
}
.body i{position:absolute;width:29px;height:29px;border-radius:50%;background:var(--teal);left:4px;top:-19px}
.body b{position:absolute;width:72px;height:8px;border-radius:8px;background:var(--teal);right:-43px;top:6px;transform:rotate(20deg)}
.body span{position:absolute;width:9px;height:55px;border-radius:9px;background:var(--lav);left:44px;top:25px;transform:rotate(22deg)}

.session-card button{
  width:100%;
  margin-top:12px;
  border:0;
  background:var(--teal);
  color:#fff;
  border-radius:11px;
  padding:12px 14px;
  font-family:inherit;
  font-size:13px;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.session-card button svg{width:15px;height:15px;animation:nudge 2.8s ease-in-out infinite}

.motivation{
  flex:none;
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:14px;
  background:#fff4f1;
  border-radius:14px;
  padding:13px;
}
.motivation>span{
  width:32px;height:32px;
  flex:none;
  border-radius:50%;
  display:grid;place-items:center;
  background:var(--coral);
  color:#fff;
}
.motivation>span svg{width:16px;height:16px;display:block}
.motivation div{display:flex;flex-direction:column;min-width:0}
.motivation strong{font-size:11px}
.motivation small{font-size:9px;color:var(--muted);margin-top:2px}

.app-nav{
  display:flex;
  justify-content:space-around;
  position:absolute;
  left:14px;right:14px;bottom:15px;
  padding-top:11px;
  border-top:1px solid #e2ebe9;
  color:#9aa8a6;
}
.app-nav b,
.app-nav span{
  display:flex;
  flex-direction:column;
  align-items:center;
  font-style:normal;
}
.app-nav svg{width:17px;height:17px;display:block}
.app-nav b{color:var(--teal)}
.app-nav small{font-size:8px;margin-top:4px;font-weight:600}

.floating-card{
  position:absolute;
  background:#fff;
  border:1px solid rgba(13,61,61,.07);
  box-shadow:0 14px 36px rgba(13,61,61,.13);
  border-radius:15px;
  padding:12px 14px;
  display:flex;
  align-items:center;
  gap:10px;
  z-index:3;
}
.floating-card>span{
  width:34px;height:34px;
  flex:none;
  border-radius:50%;
  display:grid;place-items:center;
  font-weight:800;
  font-size:13px;
}
.floating-card>span svg{width:16px;height:16px;display:block}
.floating-card div{display:flex;flex-direction:column}
.floating-card strong{font-size:11px}
.floating-card small{font-size:9px;color:var(--muted);margin-top:2px}
.card-left{left:-15px;top:185px;animation:floatY 7s ease-in-out infinite}
.card-left>span{background:#e3f4f0;color:var(--teal)}
.card-right{right:-5px;bottom:196px;animation:floatY 8.5s ease-in-out infinite .9s}
.card-right>span{background:#fff0ed;color:var(--coral)}

/* ---------- bandeau confiance ---------- */
.trust-strip{
  max-width:1184px;
  margin:0 auto 120px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:24px;
  padding:26px 34px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  box-shadow:0 18px 55px rgba(13,61,61,.05);
}
.trust-strip>div{
  display:flex;
  align-items:center; /* icône réellement centrée : plus de glyphe texte */
  gap:15px;
  padding:5px 30px;
  border-right:1px solid var(--line);
  min-height:76px;
}
.trust-strip>div:last-child{border-right:0}
.trust-icon{
  width:44px;
  height:44px;
  flex:none;
  border-radius:50%;
  background:#e8f5f2;
  display:grid;
  place-items:center;
  color:var(--teal);
  transition:transform .5s var(--ease),background .5s var(--ease);
}
.trust-icon svg{width:21px;height:21px;display:block}
.trust-strip>div:hover .trust-icon{transform:scale(1.09) rotate(-5deg);background:#dcefeb}
.trust-strip p{margin:0;display:flex;flex-direction:column}
.trust-strip strong{font-size:14px;min-height:19px}
.trust-strip small{font-size:11px;line-height:1.45;color:var(--muted);margin-top:4px;min-height:32px}

/* ---------- comment ça marche ---------- */
.how-it-works{max-width:1184px;margin:0 auto 120px;padding:0 28px}
.section-title span,
.mini-label{
  font-size:12px;
  font-weight:800;
  letter-spacing:.16em;
  color:var(--aqua-dark);
}
.section-title h2,
.download-panel h2{
  font-family:Comfortaa;
  font-size:clamp(35px,4vw,53px);
  line-height:1.2;
  letter-spacing:-.045em;
  color:var(--teal);
  font-weight:500;
  margin:18px 0 45px;
  min-height:2.4em;
}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.steps article{
  min-height:262px;
  background:var(--sand);
  border-radius:22px;
  padding:27px;
  position:relative;
  overflow:hidden;
  transition:transform .5s var(--ease),box-shadow .5s var(--ease);
}
.steps article:after{
  content:"";
  position:absolute;
  width:110px;height:110px;
  border-radius:50%;
  background:rgba(159,216,208,.26);
  right:-35px;bottom:-42px;
  transition:transform .6s var(--ease-out);
}
.steps article:hover{transform:translateY(-6px);box-shadow:0 22px 44px rgba(13,61,61,.09)}
.steps article:hover:after{transform:scale(1.28)}
.steps span{font-family:Comfortaa;color:var(--aqua-dark);font-size:14px}
.steps h3{font-size:19px;line-height:1.4;margin:54px 0 12px;color:var(--teal);min-height:53px}
.steps p{font-size:13px;line-height:1.65;color:var(--muted);margin:0;min-height:64px}

/* ---------- panneau téléchargement ---------- */
.download-panel{
  max-width:1184px;
  margin:0 auto 90px;
  padding:55px 60px;
  background:linear-gradient(135deg,var(--teal),#155f60);
  border-radius:30px;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:40px;
  position:relative;
  overflow:hidden;
}
.download-panel:after{
  content:"";
  position:absolute;
  width:260px;height:260px;
  border:58px solid rgba(159,216,208,.1);
  border-radius:50%;
  right:34%;top:-160px;
  animation:ringFloat 18s ease-in-out infinite;
}
.download-panel>div{position:relative;z-index:1}
.download-panel .mini-label{color:var(--aqua)}
.download-panel h2{color:#fff;font-size:38px;margin:15px 0;min-height:2.4em}
.download-panel p{max-width:570px;color:#cce3df;line-height:1.7;font-size:14px;min-height:48px}

.compact{
  width:380px; /* 2 badges + gouttière : largeur constante FR/EN */
  flex:none;
  flex-wrap:nowrap;
  margin-top:0;
  position:relative;
  z-index:1;
}
.compact .store-button{
  box-shadow:0 0 0 1px rgba(255,255,255,.24);
  border-radius:10px;
}
.compact .store-button:hover{
  box-shadow:0 0 0 1px rgba(255,255,255,.5),0 16px 34px rgba(0,0,0,.25);
}

/* ---------- footer ---------- */
footer{
  max-width:1184px;
  margin:auto;
  padding:40px 28px 50px;
  border-top:1px solid var(--line);
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:20px;
  color:var(--muted);
}
footer .footer-brand img{width:124px}
footer p{font-size:12px;margin:0}
footer nav{display:flex;gap:24px}
footer nav a{
  font-size:12px;
  color:var(--muted);
  text-decoration:none;
  transition:color .3s var(--ease);
}
footer nav a:hover{color:var(--teal)}
footer small{grid-column:1/-1;font-size:10px;color:#98a5a3}

/* ==========================================================================
   Animations
   ========================================================================== */

/* Apparition au scroll — conditionnée à .js : sans JavaScript, rien n'est masqué. */
.js .reveal{
  opacity:0;
  transform:translateY(22px);
  transition:opacity .8s var(--ease-out) var(--d,0s),
             transform .8s var(--ease-out) var(--d,0s);
  will-change:opacity,transform;
}
.js .reveal.is-in{opacity:1;transform:none}

@keyframes floatY{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-9px)}
}
@keyframes drift{
  0%,100%{transform:translate(0,0) scale(1)}
  33%{transform:translate(11px,-15px) scale(1.06)}
  66%{transform:translate(-9px,9px) scale(.96)}
}
@keyframes halo{
  0%,100%{transform:scale(1) rotate(0deg)}
  50%{transform:scale(1.04) rotate(6deg)}
}
@keyframes sunPulse{
  0%,100%{transform:scale(1);opacity:1}
  50%{transform:scale(1.14);opacity:.88}
}
@keyframes sway{
  0%,100%{transform:rotate(-5deg)}
  50%{transform:rotate(-1.5deg)}
}
@keyframes nudge{
  0%,100%{transform:translateX(0)}
  50%{transform:translateX(4px)}
}
@keyframes ringFloat{
  0%,100%{transform:translate(0,0) rotate(0deg)}
  50%{transform:translate(-18px,14px) rotate(20deg)}
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media(max-width:900px){
  .hero{grid-template-columns:1fr;padding-top:40px}
  .hero-copy{text-align:center}
  h1{min-height:0}
  .hero-text{margin-left:auto;margin-right:auto;min-height:0}
  .store-buttons{justify-content:center}
  .hero-visual{margin-top:10px}
  .phone{transform:none}

  .trust-strip{margin-left:20px;margin-right:20px;grid-template-columns:1fr;padding:18px 26px}
  .trust-strip>div{border-right:0;border-bottom:1px solid var(--line);padding:17px 0;min-height:0}
  .trust-strip>div:last-child{border-bottom:0}
  .trust-strip small{min-height:0}

  .download-panel{margin-left:20px;margin-right:20px;flex-direction:column;text-align:center}
  .download-panel h2,
  .section-title h2{min-height:0}
  .compact{width:auto;display:flex;justify-content:center}

  .steps{grid-template-columns:1fr}
  .steps article{min-height:200px}
  .steps h3{margin-top:35px;min-height:0}
  .steps p{min-height:0}

  footer{grid-template-columns:1fr;text-align:center;justify-items:center}
  footer nav{flex-wrap:wrap;justify-content:center}
}

@media(max-width:560px){
  .site-header{height:76px;padding:0 20px}
  .brand img{width:125px}
  .header-cta{min-width:0;font-size:12px;padding:0 16px;height:40px}
  .language-link{width:32px;height:32px}

  .hero{padding:44px 20px 68px;gap:25px}
  h1{font-size:43px}
  .hero-text{font-size:15px}
  .btn-primary{width:100%;max-width:280px;min-width:0}
  .hero-actions{display:flex;justify-content:center}
  .store-buttons{flex-direction:column;align-items:center;gap:12px}
  .availability{text-align:center;min-height:0}

  .hero-visual{min-height:520px;transform:scale(.84);margin:-30px 0}
  .phone{width:310px}
  .floating-card{display:none}

  .trust-strip{margin-bottom:85px}
  .how-it-works{padding:0 20px;margin-bottom:85px}
  .download-panel{padding:45px 23px;margin-bottom:70px}
  .download-panel h2{font-size:31px}
  .section-title h2{font-size:36px}
  .compact{flex-direction:column;align-items:center}
}

/* accessibilité : on coupe tout le mouvement si l'utilisateur le demande */
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.001ms!important;
    animation-iteration-count:1!important;
    transition-duration:.001ms!important;
  }
  .js .reveal{opacity:1;transform:none}
  .phone{transform:none!important}
}
