/* ==========================================================================
   Motio — site vitrine
   Charbon + olive militaire, chiffres en mono partout où ça mesure le temps.
   Structure héritée du carnet : chaque section porte un repère "temps écoulé"
   comme si visiter le site était une séance.
   ========================================================================== */

:root{
  --ink:#171A11;
  --ink-2:#1A1E13;
  --panel:#1C2115;
  --line:#2B3422;
  --line-2:#232A1B;
  --line-strong:#3D4930;
  --rule:#303A26;
  --frame:#0D1008;

  --text:#F4F3EE;
  --text-dim:#B4B8A4;
  --text-dim-2:#8A9074;
  --text-dim-3:#7E8C5C;
  --text-dim-4:#6E7A52;
  --text-dim-5:#5F6A48;
  --text-faint:#4A5638;

  --accent:#A9C25E;
  --accent-2:#D3A45E;

  --f-display:"Outfit",system-ui,sans-serif;
  --f-body:"Inter",system-ui,sans-serif;
  --f-mono:"JetBrains Mono",ui-monospace,monospace;

  --gutter:clamp(1.25rem,5vw,4.5rem);
  --rail:5.5rem;
  --r-s:9px;
  --r-m:14px;
  --r-l:16px;
}

*,*::before,*::after{box-sizing:border-box}

html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

body{
  margin:0;
  background:var(--ink);
  color:var(--text);
  font-family:var(--f-body);
  font-size:clamp(1rem,.95rem + .15vw,1.0625rem);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

a{color:var(--accent);text-decoration:none}
a:hover{color:var(--text)}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
img{max-width:100%}

.skip{
  position:absolute;left:-9999px;top:0;z-index:200;
  background:var(--accent);color:var(--ink);
  padding:.75rem 1rem;font-family:var(--f-display);font-weight:700;
}
.skip:focus{left:0}

/* ---------- barre haute ---------- */
.topbar{
  position:sticky;top:0;z-index:60;
  display:flex;align-items:center;gap:clamp(.75rem,2vw,2rem);
  padding:.7rem var(--gutter);
  background:rgba(23,26,17,.88);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
}
.brand{display:flex;align-items:center;gap:.6rem;flex:0 0 auto}
.brand img{display:block}
.brand .mark{height:30px;width:auto}
.brand .word{height:19px;width:auto;filter:brightness(0) invert(1)}

.topnav{
  flex:1 1 auto;min-width:0;
  display:flex;align-items:center;gap:clamp(.85rem,1.8vw,1.6rem);
  overflow-x:auto;scrollbar-width:none;
  font-family:var(--f-display);font-weight:500;
  font-size:.78rem;letter-spacing:.09em;text-transform:uppercase;
  -webkit-mask-image:linear-gradient(to right,#000 calc(100% - 1.5rem),transparent 100%);
  mask-image:linear-gradient(to right,#000 calc(100% - 1.5rem),transparent 100%);
}
.topnav::-webkit-scrollbar{display:none}
.topnav a{color:var(--text-dim);white-space:nowrap}
.topnav a:hover{color:var(--text)}
.topnav a.gold,.foot-col a.gold{color:var(--accent-2)}
.topnav a.gold:hover,.foot-col a.gold:hover{color:var(--text)}

/* ---------- boutons ---------- */
.btn{
  display:inline-flex;align-items:center;gap:.6rem;
  font-family:var(--f-display);font-weight:700;
  font-size:.85rem;letter-spacing:.08em;text-transform:uppercase;
  padding:.7rem 1.1rem;border-radius:var(--r-s);
  background:var(--accent);color:var(--ink);border:1px solid var(--accent);
  cursor:pointer;transition:background .15s ease,border-color .15s ease,color .15s ease;
  max-width:100%;
}
.btn:hover{background:var(--text);border-color:var(--text);color:var(--ink)}
.btn-lg{padding:.95rem 1.5rem;font-size:.92rem;border-radius:11px}
.btn-sm{padding:.55rem .95rem;font-size:.78rem;white-space:nowrap}
.btn-ghost{background:transparent;color:var(--text);border-color:var(--line-strong)}
.btn-ghost:hover{background:var(--panel);border-color:var(--accent);color:var(--text)}
.cta-row{display:flex;flex-wrap:wrap;align-items:center;gap:1rem 1.25rem}
.cta-group{display:flex;flex-wrap:wrap;gap:.75rem}

/* ---------- rail de temps : la page se lit comme une séance ---------- */
.block{
  display:flex;flex-wrap:wrap;gap:0 clamp(1rem,3vw,2.5rem);
  padding:clamp(3.5rem,8vw,6.5rem) var(--gutter);
  border-bottom:1px solid var(--line);
  position:relative;
}
.block-alt{background:var(--ink-2)}
.tc{
  flex:0 0 var(--rail);
  position:sticky;top:5rem;align-self:flex-start;
  font-family:var(--f-mono);font-size:.75rem;letter-spacing:.06em;
  color:var(--text-dim-3);
  border-top:2px solid var(--line-strong);
  padding-top:.5rem;margin-bottom:1.25rem;
}
.block-body{flex:1 1 32rem;min-width:0;max-width:62rem}

[data-sect]{opacity:0;transform:translateY(18px);transition:opacity .6s ease,transform .6s ease}
[data-sect].seen{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  [data-sect]{opacity:1;transform:none;transition:none}
}

@media (max-width:760px){
  .tc{position:static;flex:0 0 auto}
}

/* ---------- typo ---------- */
.eyebrow{
  font-family:var(--f-mono);font-size:.72rem;letter-spacing:.16em;
  text-transform:uppercase;color:var(--text-dim-3);margin:0 0 1.25rem;
}
h1{
  font-family:var(--f-display);font-weight:800;text-transform:uppercase;
  letter-spacing:-.01em;line-height:.95;
  font-size:clamp(2.6rem,8vw,5.5rem);margin:0 0 1.75rem;text-wrap:balance;
}
h1 em{font-style:normal;color:var(--accent)}
h2{
  font-family:var(--f-display);font-weight:700;text-transform:uppercase;
  line-height:1.02;font-size:clamp(1.75rem,4.2vw,3rem);
  margin:0 0 1.1rem;text-wrap:balance;
}
h3{
  font-family:var(--f-display);font-weight:600;text-transform:uppercase;
  letter-spacing:.05em;font-size:1rem;margin:0 0 .5rem;color:var(--text);
}
p{margin:0 0 1rem}
.lede{font-size:clamp(1rem,.95rem + .3vw,1.15rem);color:var(--text-dim);max-width:56ch;margin:0 0 2.25rem}

/* ---------- héros : chrono qui tourne vraiment ---------- */
.hero{
  position:relative;overflow:hidden;
  display:flex;flex-wrap:wrap;align-items:center;gap:clamp(2rem,5vw,4.5rem);
  padding:clamp(2.5rem,7vw,6rem) var(--gutter) clamp(3rem,7vw,6rem);
  border-bottom:1px solid var(--line);
}
.hero-ghost{
  position:absolute;right:-14%;top:-18%;width:min(46rem,80vw);
  opacity:.05;pointer-events:none;filter:grayscale(1) brightness(2.2);
}
.hero-main{flex:1 1 30rem;min-width:0;position:relative}
.hero-visual{flex:0 1 21rem;min-width:min(100%,15rem);display:flex;justify-content:center;position:relative}

.dial{
  display:flex;align-items:center;gap:clamp(1rem,3vw,1.75rem);flex-wrap:wrap;
  border-top:1px solid var(--line-strong);border-bottom:1px solid var(--line-strong);
  padding:1.25rem 0;margin:0 0 1.75rem;
}
.dial-digits{
  display:block;font-family:var(--f-mono);font-weight:700;
  font-size:clamp(2.1rem,6.5vw,3.4rem);line-height:1;color:var(--accent);
  font-variant-numeric:tabular-nums;
}
.dial-label{
  display:block;font-family:var(--f-mono);font-size:.66rem;letter-spacing:.12em;
  text-transform:uppercase;color:var(--text-dim-3);margin-top:.6rem;
}
.dial-sweep{flex:1 1 10rem;height:2px;background:var(--rule);position:relative;overflow:hidden}
.dial-sweep i{position:absolute;inset:0 auto 0 0;width:20%;background:var(--accent);animation:sweep 4s linear infinite}
@keyframes sweep{from{transform:translateX(-110%)}to{transform:translateX(500%)}}
@media (prefers-reduced-motion:reduce){.dial-sweep i{animation:none;width:100%;opacity:.35}}

.hero-badge{
  display:inline-flex;align-items:center;gap:.6rem;margin:0 0 1.25rem;
  padding:.4rem .8rem .4rem .55rem;border:1px solid #6B5324;border-radius:100px;
  background:rgba(211,164,94,.08);
  font-family:var(--f-mono);font-size:.66rem;letter-spacing:.11em;text-transform:uppercase;
  color:var(--accent-2);
}
.hero-badge:hover{background:rgba(211,164,94,.16);color:var(--text)}
.hero-badge i{width:6px;height:6px;border-radius:50%;background:var(--accent-2);display:block}
.hero-badges{display:flex;flex-wrap:wrap;gap:.5rem .6rem;margin:0 0 1.25rem}
.hero-badges .hero-badge{margin:0}
/* Variante olive : la nouveauté matérielle (la montre) se distingue du doré,
   réservé à Moti dans toute la charte. */
.hero-badge.alt{border-color:var(--line-strong);background:rgba(169,194,94,.09);color:var(--accent)}
.hero-badge.alt:hover{background:rgba(169,194,94,.17);color:var(--text)}
.hero-badge.alt i{background:var(--accent)}

/* ---------- héros : les trois portes d'entrée ---------- */
.plateformes{
  list-style:none;padding:0;
  margin:1.75rem 0 0;
  display:grid;gap:.6rem;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,11rem),1fr));
}
.plateformes a{
  display:block;height:100%;
  padding:.85rem 1rem;
  border:1px solid var(--line);border-radius:var(--r-m);
  background:var(--panel);
}
.plateformes a:hover{border-color:var(--accent);background:var(--ink-2)}
.plateformes .p-k{
  display:block;margin-bottom:.2rem;
  font-family:var(--f-display);font-weight:700;text-transform:uppercase;
  letter-spacing:.05em;font-size:.82rem;color:var(--text);
}
.plateformes a:hover .p-k{color:var(--accent)}
.plateformes .p-v{display:block;font-size:.82rem;line-height:1.45;color:var(--text-dim-2)}

.iphone-nudge{
  display:flex;flex-wrap:wrap;align-items:center;gap:.75rem 1.5rem;
  margin:0 auto;padding:.85rem clamp(1rem,4vw,2rem);max-width:64rem;
  border-bottom:1px solid #6B5324;background:rgba(211,164,94,.08);
}
.iphone-nudge[hidden]{display:none}
.iphone-nudge p{margin:0;flex:1 1 24rem;font-size:.86rem;line-height:1.55;color:var(--text-dim)}
.iphone-nudge strong{color:var(--text)}
.iphone-nudge .btn{flex:0 0 auto}

.hero-qr{display:flex;align-items:center;gap:.7rem}
.hero-qr canvas,.hero-qr svg,.qr-box svg{width:100%;height:100%;display:block}
.qr-mini{width:74px;height:74px;flex:0 0 74px;background:var(--text);border-radius:8px;padding:5px;display:flex;align-items:center;justify-content:center}
.qr-mini-label{font-family:var(--f-mono);font-size:.64rem;line-height:1.5;letter-spacing:.08em;text-transform:uppercase;color:var(--text-dim-3);max-width:11ch}
.fineprint{font-family:var(--f-mono);font-size:.68rem;letter-spacing:.07em;color:var(--text-dim-4);margin:0}
.hero-fine{margin:1.5rem 0 0}

/* ---------- mockup téléphone ---------- */
.phone{
  width:100%;border:9px solid var(--frame);border-radius:34px;
  box-shadow:0 0 0 1px var(--line-strong),0 34px 70px -24px rgba(0,0,0,.85);
  overflow:hidden;background:var(--ink);aspect-ratio:1080/2316;
}
.phone img{width:100%;height:100%;object-fit:cover;display:block}
.phone-lg{max-width:19rem}
.phone-md{max-width:16.5rem;border-width:9px;border-radius:32px;box-shadow:0 0 0 1px var(--line-strong),0 28px 55px -22px rgba(0,0,0,.8)}
.phone-sm{max-width:15rem;border-width:8px;border-radius:28px;box-shadow:0 0 0 1px var(--line-strong),0 26px 50px -22px rgba(0,0,0,.8)}
.phone-wrap{flex:0 1 auto;min-width:min(100%,13rem);display:flex;justify-content:center}
.phone-placeholder{
  width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:.6rem;padding:1rem;text-align:center;
  background:repeating-linear-gradient(135deg,var(--panel) 0 9px,#20261A 9px 18px);
}
.phone-placeholder span{font-family:var(--f-mono)}
.phone-placeholder .ph-1{font-size:.6rem;letter-spacing:.14em;text-transform:uppercase;color:var(--text-dim-3)}
.phone-placeholder .ph-2{font-size:.62rem;line-height:1.6;color:var(--text-faint)}

/* ---------- bandeau de garanties ---------- */
.bandeau{
  display:flex;flex-wrap:wrap;gap:.5rem clamp(1rem,4vw,3rem);justify-content:center;
  padding:1.1rem var(--gutter);border-top:1px solid var(--line);border-bottom:1px solid var(--line);
  background:var(--ink-2);font-family:var(--f-mono);font-size:.68rem;letter-spacing:.14em;
  text-transform:uppercase;color:var(--text-dim-2);
}
.bandeau span.sep{color:var(--line-strong)}

/* ---------- grilles / cartes ---------- */
.grid{display:grid;gap:1rem}
.grid-2{grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr))}
.grid-3{grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr))}

.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--r-m);padding:clamp(1.1rem,2.5vw,1.5rem)}
.card p{margin:0;color:var(--text-dim);font-size:.95rem}
.card h3.gold{color:var(--accent-2)}
.card .go{display:inline-block;margin-top:.75rem;font-family:var(--f-display);font-weight:700;font-size:.8rem;letter-spacing:.07em;text-transform:uppercase}

.split{display:flex;flex-wrap:wrap;gap:clamp(1.5rem,3.5vw,3rem);align-items:center;margin:0 0 clamp(1.5rem,3.5vw,3rem)}
.split:last-child{margin-bottom:0}
.split-media{flex:0 1 15rem;min-width:min(100%,13rem);display:flex;justify-content:center}
.split-content{flex:1 1 22rem;min-width:0}

/* ---------- carte de partage ---------- */
.callout{
  display:flex;flex-wrap:wrap;align-items:center;gap:clamp(1.25rem,3vw,2.5rem);
  margin-top:clamp(2rem,4vw,3rem);padding:clamp(1.25rem,3vw,2rem);
  background:var(--panel);border:1px solid var(--line);border-radius:var(--r-l);
}
.callout img{flex:0 1 12rem;min-width:min(100%,9rem);width:100%;max-width:12rem;border-radius:10px;border:1px solid var(--rule);display:block}
.callout-body{flex:1 1 18rem;min-width:0}
.callout-tag{font-family:var(--f-mono);font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;color:var(--accent-2);margin:0 0 .75rem}

/* ---------- Moti : mockup de chat (téléphone du héros) ---------- */
.chat-phone{
  width:100%;max-width:19rem;aspect-ratio:1080/2316;
  border:9px solid var(--frame);border-radius:34px;
  box-shadow:0 0 0 1px #6B5324,0 34px 70px -24px rgba(0,0,0,.85);
  overflow:hidden;background:var(--ink);display:flex;flex-direction:column;
}
.chat-phone-head{
  flex:0 0 auto;display:flex;align-items:center;gap:.5rem;
  padding:.75rem .85rem;border-bottom:1px solid var(--line);
}
.chat-phone-head img{height:18px;width:18px;border-radius:50%;object-fit:cover;display:block}
.chat-phone-head .who{font-family:var(--f-display);font-weight:600;font-size:.78rem;color:var(--text)}
.chat-phone-head .dot{width:5px;height:5px;border-radius:50%;background:var(--accent-2);display:block}
.chat-phone-head .meta{font-family:var(--f-mono);font-size:.52rem;letter-spacing:.1em;text-transform:uppercase;color:var(--text-faint);margin-left:auto}
.chat-phone-body{
  flex:1 1 auto;min-height:0;display:flex;flex-direction:column;justify-content:flex-end;
  gap:.45rem;padding:.85rem .7rem;overflow:hidden;
}
.chat-phone-input{
  flex:0 0 auto;display:flex;align-items:center;gap:.4rem;
  margin:0 .7rem .8rem;padding:.5rem .65rem;border:1px solid var(--line);border-radius:9px;
}
.chat-phone-input span{font-family:var(--f-mono);font-size:.6rem;color:var(--text-faint)}
.chat-caret{width:1px;height:.75rem;background:var(--accent);display:block;animation:caret 1.05s step-end infinite}
@keyframes caret{0%,49%{opacity:1}50%,100%{opacity:0}}

/* messages, communs à la mini-démo du héros et à la grande démo de la section Moti */
.msg-row{display:flex}
.msg-row.mine{justify-content:flex-end}
.msg-row.moti{justify-content:flex-start}
.msg-bubble{max-width:88%;border-radius:11px;padding:.5rem .65rem;background:var(--panel);border:1px solid var(--line-strong)}
.msg-row.moti .msg-bubble{background:#1F2416;border-color:#3A3016}
.msg-bubble p{margin:0;font-size:.7rem;line-height:1.5;color:var(--text)}
.msg-row.moti .msg-bubble p{color:var(--text-dim)}

.typing-dots{display:flex;gap:4px;align-items:center;border-radius:11px;padding:.55rem .7rem;background:#1F2416;border:1px solid #3A3016}
.typing-dots i{width:4px;height:4px;border-radius:50%;background:var(--accent-2);display:block;animation:blip 1.1s ease-in-out infinite}
.typing-dots i:nth-child(2){animation-delay:.18s}
.typing-dots i:nth-child(3){animation-delay:.36s}
@keyframes blip{0%,100%{opacity:.25}50%{opacity:1}}

.workout-card{border:1px solid #6B5324;border-radius:11px;background:rgba(211,164,94,.07);padding:.6rem .7rem}
.workout-card .tag{margin:0 0 .45rem;font-family:var(--f-mono);font-size:.5rem;letter-spacing:.12em;text-transform:uppercase;color:var(--accent-2)}
.workout-card .titre{margin:0 0 .5rem;font-family:var(--f-display);font-weight:600;font-size:.74rem;color:var(--text)}
.workout-card .row{display:flex;justify-content:space-between;font-family:var(--f-mono);font-size:.55rem;color:var(--text-dim-2);padding:.2rem 0;border-top:1px solid var(--line)}
.workout-card .row span:last-child{color:var(--accent)}
.workout-card .cta{margin-top:.5rem;text-align:center;font-family:var(--f-display);font-weight:700;font-size:.6rem;letter-spacing:.07em;text-transform:uppercase;color:var(--ink);background:var(--accent-2);border-radius:7px;padding:.4rem}

@media (prefers-reduced-motion:reduce){
  .chat-caret,.typing-dots i{animation:none}
}

/* ---------- Moti : grande démo de conversation (section dédiée) ---------- */
.moti-demo{border:1px solid #3A3016;border-radius:18px;background:var(--ink);overflow:hidden}
.moti-demo-head{display:flex;align-items:center;gap:.6rem;padding:.85rem 1.1rem;border-bottom:1px solid var(--line);background:rgba(211,164,94,.05)}
.moti-demo-head img{height:20px;width:20px;border-radius:50%;object-fit:cover;display:block}
.moti-demo-head .who{font-family:var(--f-display);font-weight:600;font-size:.9rem;color:var(--text)}
.moti-demo-head .meta{font-family:var(--f-mono);font-size:.58rem;letter-spacing:.1em;text-transform:uppercase;color:var(--accent-2);margin-left:auto}
.moti-demo-body{min-height:clamp(17rem,38vw,20rem);display:flex;flex-direction:column;justify-content:flex-end;gap:.7rem;padding:1.1rem}
.moti-demo-body .msg-bubble{max-width:84%;border-radius:13px;padding:.75rem .95rem}
.moti-demo-body .msg-bubble .who-label{margin:0 0 .3rem;font-family:var(--f-mono);font-size:.55rem;letter-spacing:.12em;text-transform:uppercase;color:var(--text-dim-4)}
.moti-demo-body .msg-row.moti .msg-bubble .who-label{color:var(--accent-2)}
.moti-demo-body .msg-bubble p{font-size:.95rem;line-height:1.6}
.moti-demo-body .typing-dots{padding:.8rem .95rem;gap:5px}
.moti-demo-body .typing-dots i{width:5px;height:5px}
.moti-demo-body .workout-card{padding:.9rem 1rem;border-radius:13px}
.moti-demo-body .workout-card .tag{font-size:.58rem;letter-spacing:.13em}
.workout-card-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.5rem;margin:0 0 .7rem}
.workout-card-head .titre-2{margin:0;font-family:var(--f-display);font-weight:600;font-size:.95rem;color:var(--text)}
.moti-demo-body .workout-card .row{font-size:.88rem;color:var(--text-dim);padding:.4rem 0}
.moti-demo-body .workout-card .row span:last-child{font-size:.82rem}
.workout-card-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.85rem}
.workout-card-actions .add{font-family:var(--f-display);font-weight:700;font-size:.72rem;letter-spacing:.07em;text-transform:uppercase;color:var(--ink);background:var(--accent-2);border-radius:8px;padding:.55rem .9rem}
.workout-card-actions .edit{font-family:var(--f-display);font-weight:700;font-size:.72rem;letter-spacing:.07em;text-transform:uppercase;color:var(--text-dim-2);border:1px solid var(--line-strong);border-radius:8px;padding:.55rem .9rem}

.moti-demo-foot{border-top:1px solid var(--line);padding:.9rem 1.1rem 1.1rem;background:#151810}
.moti-demo-foot p{margin:0 0 .6rem;font-family:var(--f-mono);font-size:.58rem;letter-spacing:.12em;text-transform:uppercase;color:var(--text-dim-4)}
.quick-qs{display:flex;flex-wrap:wrap;gap:.5rem}
.quick-q{font-family:var(--f-body);font-size:.82rem;text-align:left;padding:.55rem .85rem;border-radius:9px;border:1px solid var(--line-strong);background:transparent;color:var(--text-dim);cursor:pointer}
.quick-q:hover,.quick-q.on{border-color:var(--accent-2);color:var(--text)}
.moti-demo-fine{font-family:var(--f-mono);font-size:.62rem;letter-spacing:.07em;color:var(--text-dim-5);margin:.85rem 0 0}

.moti-features{flex:0 1 17rem;min-width:min(100%,14rem);display:flex;flex-direction:column;gap:1.25rem}
.feature-line{margin:0 0 1rem}
.feature-line:last-child{margin-bottom:0}
.feature-line .k{display:block;margin:0 0 .3rem;font-family:var(--f-display);font-weight:600;text-transform:uppercase;letter-spacing:.05em;font-size:.85rem;color:var(--text)}
.feature-line .v{margin:0;color:var(--text-dim-2);font-size:.9rem}

/* ---------- programme : générateur par phrase, écrit par Moti ---------- */
.gen-box{border:1px solid #3A3016;border-radius:16px;background:var(--ink);padding:clamp(1.1rem,3vw,1.75rem);margin:0 0 1.25rem}
.gen-label{display:block;font-family:var(--f-mono);font-size:.62rem;letter-spacing:.12em;text-transform:uppercase;color:#8A6B33;margin:0 0 .6rem}
.gen-row{display:flex;flex-wrap:wrap;gap:.6rem}
.gen-input{
  flex:1 1 18rem;min-width:0;font-family:var(--f-body);font-size:.95rem;color:var(--text);
  background:var(--panel);border:1px solid var(--line-strong);border-radius:10px;padding:.8rem .95rem;
}
.gen-btn{
  flex:0 0 auto;font-family:var(--f-display);font-weight:700;font-size:.82rem;letter-spacing:.07em;text-transform:uppercase;
  padding:.8rem 1.35rem;border-radius:10px;border:1px solid var(--accent-2);background:var(--accent-2);color:var(--ink);cursor:pointer;
}
.gen-btn:hover{background:var(--text);border-color:var(--text)}
.gen-chips{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0 0}
.chip{font-family:var(--f-body);font-size:.8rem;padding:.45rem .8rem;border-radius:8px;border:1px solid var(--line-strong);background:transparent;color:var(--text-dim-2);cursor:pointer}
.chip:hover,.chip.on{border-color:var(--accent-2);color:var(--text)}
.gen-log{margin:1.1rem 0 0;border-top:1px solid var(--line);padding-top:.85rem;display:grid;gap:.35rem}
.gen-log p{margin:0;font-family:var(--f-mono);font-size:.68rem;letter-spacing:.05em;color:var(--text-dim-4)}
.gen-log p.last{color:var(--accent)}

/* ---------- démo chronomètre ---------- */
.demo{display:flex;flex-wrap:wrap;gap:clamp(1.25rem,3vw,2.5rem);align-items:flex-start}
.demo-phone{flex:0 1 17rem;min-width:min(100%,14rem);display:flex;flex-direction:column;background:var(--ink)}
.demo-topbar{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:.7rem .85rem .2rem;font-family:var(--f-mono);font-size:.55rem;letter-spacing:.08em;color:var(--text-dim-4)}
.demo-body{flex:1 1 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;padding:.5rem 1rem 1.25rem}
.demo-dial{width:min(11rem,58%);aspect-ratio:1;border-radius:50%;display:flex;align-items:center;justify-content:center;padding:9px;background:conic-gradient(var(--accent) 0turn,var(--line) 0turn)}
.demo-dial-face{width:100%;height:100%;border-radius:50%;background:var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.25rem}
.demo-phase{font-family:var(--f-mono);font-size:.52rem;letter-spacing:.16em;text-transform:uppercase;color:var(--text-dim-3)}
.demo-digits{font-family:var(--f-mono);font-weight:700;font-size:clamp(1.1rem,3.4vw,1.5rem);line-height:1;color:var(--text);font-variant-numeric:tabular-nums}
.demo-meta{font-family:var(--f-mono);font-size:.55rem;letter-spacing:.1em;text-transform:uppercase;color:var(--text-dim-2);text-align:center;min-height:1.2em}
.demo-laps{width:100%;display:flex;flex-direction:column;gap:.3rem}
.demo-lap{display:flex;justify-content:space-between;font-family:var(--f-mono);font-size:.55rem;color:var(--text-faint);border-top:1px solid var(--line-2);padding-top:.3rem}
.demo-lap.has-lap{color:var(--text-dim-2)}
.demo-tabbar{flex:0 0 auto;display:flex;justify-content:space-around;padding:.5rem 0 .7rem;border-top:1px solid var(--line-2);font-family:var(--f-display);font-size:.52rem;letter-spacing:.05em;color:var(--text-faint)}
.demo-tabbar .on{color:var(--accent)}

.demo-panel{flex:1 1 20rem;min-width:0}
.mode-tabs{display:flex;flex-wrap:wrap;gap:.5rem;margin:0 0 1.25rem}
.mode-tab{
  font-family:var(--f-display);font-weight:700;font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;
  padding:.6rem 1.1rem;border-radius:var(--r-s);border:1px solid var(--line-strong);
  background:transparent;color:var(--text-dim);cursor:pointer;
}
.mode-tab.on{background:var(--accent);color:var(--ink);border-color:var(--accent)}
.demo-actions{display:flex;flex-wrap:wrap;gap:.6rem;margin:0 0 1.5rem}
.demo-actions .btn{border-radius:10px}

.numbered{list-style:none;padding:0;margin:0}
.numbered li{display:flex;gap:1rem;padding:.85rem 0;border-top:1px solid var(--line)}
.numbered li:last-child{border-bottom:1px solid var(--line)}
.numbered .n{font-family:var(--f-mono);font-size:.7rem;color:var(--accent);flex:0 0 2rem;padding-top:.2rem}
.numbered .t{color:var(--text-dim);font-size:.95rem}
.numbered strong{color:var(--text);font-family:var(--f-display);font-weight:600}

/* ---------- listes clé/valeur ---------- */
.listing{list-style:none;padding:0;margin:0}
.listing li{padding:.95rem 0;border-top:1px solid var(--line);color:var(--text-dim);font-size:.97rem}
.listing li:last-child{border-bottom:1px solid var(--line)}
.li-k{display:block;font-family:var(--f-display);font-weight:600;text-transform:uppercase;letter-spacing:.06em;font-size:.82rem;color:var(--text);margin-bottom:.15rem}

/* ---------- programme interactif ---------- */
.programme-box{background:var(--panel);border:1px solid var(--line);border-radius:var(--r-l);padding:clamp(1.25rem,3vw,2rem);margin:0 0 2rem}
.programme-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.75rem;margin:0 0 1.25rem}
.programme-head p{margin:0}
.programme-eyebrow{font-family:var(--f-mono);font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;color:var(--text-dim-3)}
.programme-week{font-family:var(--f-display);font-weight:700;text-transform:uppercase;letter-spacing:.05em;font-size:1rem;color:var(--text)}
.programme-week.deload{color:var(--accent-2)}

.week-slider{display:block;margin:0 0 1.5rem}
.week-slider-label{display:block;font-family:var(--f-mono);font-size:.66rem;letter-spacing:.12em;text-transform:uppercase;color:var(--text-dim-2);margin:0 0 .6rem}
.week-slider input[type="range"]{width:100%;accent-color:var(--accent);height:1.75rem;cursor:pointer}
.week-ticks{display:flex;justify-content:space-between;font-family:var(--f-mono);font-size:.62rem;color:var(--text-faint);margin-top:-.25rem}

.prog-table{display:grid;gap:.5rem}
.prog-head{display:flex;gap:1rem;font-family:var(--f-mono);font-size:.62rem;letter-spacing:.1em;text-transform:uppercase;color:var(--text-dim-4);padding-bottom:.35rem;border-bottom:1px solid var(--line)}
.prog-head span:first-child,.prog-row span:first-child{flex:1 1 auto}
.prog-head span:not(:first-child),.prog-row span:not(:first-child){flex:0 0 5rem;text-align:right}
.prog-row{display:flex;gap:1rem;align-items:baseline;padding:.6rem 0;border-bottom:1px solid var(--line-2)}
.prog-row .nom{font-size:.95rem;color:var(--text)}
.prog-row .serie{font-family:var(--f-mono);font-size:.85rem;color:var(--text-dim)}
.prog-row .charge{font-family:var(--f-mono);font-size:.85rem;font-weight:700;color:var(--accent)}
.programme-note{margin:1rem 0 0;font-size:.9rem;color:var(--text-dim-2)}

/* ---------- comparatif ---------- */
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--r-l);background:var(--panel)}
table.comparatif{width:100%;min-width:34rem;border-collapse:collapse;font-size:.93rem}
table.comparatif th,table.comparatif td{padding:.85rem clamp(.75rem,2vw,1.25rem);text-align:left;border-bottom:1px solid var(--line-2)}
table.comparatif thead th{
  font-family:var(--f-display);font-size:.85rem;letter-spacing:.08em;text-transform:uppercase;
  color:var(--text-dim-2);font-weight:500;border-bottom:1px solid var(--rule);padding-top:1rem;padding-bottom:1rem;
}
table.comparatif thead th.us{color:var(--accent)}
table.comparatif thead th:first-child{font-family:var(--f-mono);font-size:.64rem;letter-spacing:.12em;color:var(--text-dim-4);font-weight:400}
table.comparatif tbody th{font-weight:500;color:var(--text)}
table.comparatif tbody tr:last-child th,table.comparatif tbody tr:last-child td{border-bottom:0}
table.comparatif td.us{color:var(--accent)}
table.comparatif td.dim{color:var(--text-faint)}

/* ---------- installation : choix du système ----------
   Deux grandes portes plutôt qu'une section Android et une section iPhone
   éloignées l'une de l'autre. Les logos sont dessinés en SVG et prennent la
   couleur du bouton (currentColor), donc ils suivent la charte sans image. */
.os-switch{
  display:grid;gap:.75rem;margin:0 0 clamp(1.5rem,3.5vw,2.5rem);
  grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));
}
.os-btn{
  display:flex;align-items:center;gap:1rem;text-align:left;width:100%;
  padding:1rem 1.15rem;border-radius:var(--r-m);
  border:1px solid var(--line-strong);background:var(--panel);color:var(--accent);
  cursor:pointer;font:inherit;
  transition:background .15s ease,border-color .15s ease,color .15s ease;
}
.os-btn:hover:not(.on){border-color:var(--accent);background:var(--ink-2)}
.os-btn.on{background:var(--accent);border-color:var(--accent);color:var(--ink)}
.os-logo{flex:0 0 2.3rem;width:2.3rem;height:2.3rem;display:block}
.os-logo svg{width:100%;height:100%;display:block;fill:currentColor}
.os-txt{min-width:0}
.os-txt strong{
  display:block;font-family:var(--f-display);font-weight:700;
  text-transform:uppercase;letter-spacing:.06em;font-size:.95rem;color:var(--text);
}
.os-txt span{display:block;font-size:.84rem;line-height:1.45;color:var(--text-dim-2)}
.os-btn.on .os-txt strong{color:var(--ink)}
.os-btn.on .os-txt span{color:rgba(23,26,17,.75)}
.os-panel[hidden]{display:none}

/* ---------- installation ---------- */
.install-grid{display:flex;flex-wrap:wrap;gap:clamp(1.5rem,4vw,3rem);align-items:flex-start;margin:0 0 2.5rem}
.install-steps{flex:1 1 22rem;min-width:0}
.qr-box{
  flex:0 1 15rem;min-width:min(100%,12rem);background:var(--ink);border:1px solid var(--rule);
  border-radius:var(--r-l);padding:clamp(1rem,2.5vw,1.5rem);text-align:center;
}
.qr-box .qr{width:100%;aspect-ratio:1;background:var(--text);border-radius:10px;padding:10px;display:flex;align-items:center;justify-content:center;margin:0 0 .85rem}
.qr-box p{font-family:var(--f-mono);font-size:.64rem;line-height:1.6;letter-spacing:.1em;text-transform:uppercase;color:var(--text-dim-2);margin:0}
.qr-box p span{color:var(--text-dim-5)}

.why-box{border:1px solid var(--line-strong);border-radius:var(--r-l);padding:clamp(1.25rem,3vw,2rem);margin:0 0 2rem;background:var(--ink)}
.why-tag{font-family:var(--f-mono);font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;color:var(--accent-2);margin:0 0 .75rem}
.why-box p.lede-sm{margin:0 0 1rem;color:var(--text-dim);max-width:60ch}
.why-grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr))}
.why-grid .k{display:block;font-family:var(--f-display);font-weight:600;text-transform:uppercase;letter-spacing:.05em;font-size:.85rem;color:var(--text);margin-bottom:.2rem}
.why-grid .v{color:var(--text-dim-2);font-size:.9rem}

/* ---------- montre Garmin ----------
   Les captures sortent du simulateur Connect IQ sur un fond #0C0C0C opaque :
   le cadre reprend exactement cette couleur pour que l'image n'ait pas de
   bord visible sur le fond olive de la page. */
/* Quatre cadrans côte à côte : sous ~34rem de large, ils deviendraient des
   timbres-poste. On laisse plutôt la bande défiler horizontalement. */
.watch-shots{margin:0 0 clamp(1.5rem,3.5vw,2.5rem);overflow-x:auto}
.watch-shots img{
  display:block;width:100%;min-width:34rem;
  background:#0C0C0C;
  border:1px solid var(--line-strong);border-radius:var(--r-l);
}
.watch-shots figcaption{
  margin:.85rem 0 0;
  font-family:var(--f-mono);font-size:.68rem;line-height:1.6;letter-spacing:.05em;
  color:var(--text-dim-4);
}
.watch-pair{flex-direction:column;gap:.9rem;flex:0 1 15rem;min-width:min(100%,13rem)}
.watch-pair img{
  display:block;width:100%;max-width:15rem;
  background:#12140F;
  border:1px solid var(--rule);border-radius:var(--r-m);
}
.watch-pair p{text-align:left;line-height:1.7}

.modeles{border-top:1px solid var(--line);margin-top:.5rem}
.modeles summary{
  list-style:none;display:flex;align-items:center;justify-content:space-between;gap:1rem;
  padding:1rem 0;cursor:pointer;
  font-family:var(--f-display);font-weight:600;font-size:.95rem;color:var(--text);
}
.modeles summary::-webkit-details-marker{display:none}
.modeles summary::marker{content:''}
.modeles .plus{flex:0 0 auto;color:var(--accent);font-weight:400;font-size:1.3rem;line-height:1;transition:transform .2s ease}
.modeles[open] .plus{transform:rotate(45deg)}
.modeles-grid{display:grid;gap:1.25rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr))}
.modeles-grid > div{display:flex;flex-direction:column;gap:.4rem}
.modeles-k{
  font-family:var(--f-mono);font-size:.66rem;letter-spacing:.13em;text-transform:uppercase;
  color:var(--text-dim-4);margin-bottom:.15rem;
}
.modeles-grid a{font-size:.9rem;color:var(--text-dim)}
.modeles-grid a::before{content:'↓ ';color:var(--accent);font-family:var(--f-mono);font-size:.8rem}
.modeles-grid a:hover{color:var(--text)}
@media (prefers-reduced-motion:reduce){.modeles .plus{transition:none}}

/* ---------- FAQ ---------- */
.faq details{border-top:1px solid var(--line)}
.faq details:last-child{border-bottom:1px solid var(--line)}
.faq summary{
  list-style:none;display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;
  padding:1.1rem 0;cursor:pointer;font-family:var(--f-display);font-weight:600;font-size:1.02rem;color:var(--text);
}
.faq summary::-webkit-details-marker{display:none}
.faq summary::marker{content:''}
.faq .plus{flex:0 0 auto;color:var(--accent);font-weight:400;font-size:1.3rem;line-height:1;transition:transform .2s ease}
.faq details[open] .plus{transform:rotate(45deg)}
.faq p{margin:0 0 1.25rem;color:var(--text-dim);max-width:60ch}

/* ---------- versions ---------- */
.release{display:flex;flex-wrap:wrap;gap:.5rem clamp(1rem,3vw,2rem);padding:1.25rem 0;border-top:1px solid var(--line)}
.release-meta{flex:0 0 9rem}
.release-tag{font-family:var(--f-mono);font-weight:700;font-size:1rem;color:var(--accent);margin:0}
.release-date{font-family:var(--f-mono);font-size:.66rem;letter-spacing:.08em;text-transform:uppercase;color:var(--text-dim-4);margin:.25rem 0 0}
.release-body{flex:1 1 18rem;min-width:0}
.release-body h3{font-weight:600;font-size:1rem;margin:0 0 .35rem}
.release-body p{margin:0;color:var(--text-dim);font-size:.93rem;white-space:pre-line}

/* ---------- pied ---------- */
.foot{border-top:1px solid var(--line);background:var(--ink-2);padding:clamp(2.5rem,6vw,4rem) var(--gutter) clamp(6rem,10vw,7rem)}
.foot-top{display:flex;flex-wrap:wrap;gap:2rem clamp(2rem,6vw,5rem);align-items:flex-start}
.foot-brand{flex:1 1 18rem;min-width:0}
.foot-brand img{height:30px;width:auto;display:block;margin:0 0 1rem;filter:brightness(0) invert(1)}
.foot-brand p{font-family:var(--f-display);font-size:.95rem;letter-spacing:.02em;color:var(--text-dim-2);margin:0;max-width:34ch}
.foot-col{flex:0 1 10rem;display:flex;flex-direction:column;gap:.6rem}
.foot-col-title{font-family:var(--f-mono);font-size:.64rem;letter-spacing:.14em;text-transform:uppercase;color:var(--text-dim-5)}
.foot-col a{color:var(--text-dim);font-size:.9rem}
.foot-col a:hover{color:var(--text)}
.foot-install{flex:0 1 12rem}
.foot-install .foot-col-title{display:block;margin-bottom:.75rem}
.foot-bottom{font-family:var(--f-mono);font-size:.66rem;letter-spacing:.07em;color:var(--text-dim-5);margin:clamp(2rem,5vw,3rem) 0 0;border-top:1px solid var(--line);padding-top:1.25rem}

/* ---------- barre flottante ---------- */
.floatbar{
  position:fixed;left:0;right:0;bottom:0;z-index:70;
  display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.75rem clamp(1rem,3vw,2rem);
  padding:.7rem clamp(1rem,4vw,2rem);
  background:rgba(23,26,17,.94);backdrop-filter:blur(14px);border-top:1px solid var(--line-strong);
  transform:translateY(100%);transition:transform .25s ease;
}
.floatbar.show{transform:translateY(0)}
.floatbar-id{display:flex;align-items:center;gap:.7rem;min-width:0}
.floatbar-id img{height:26px;width:auto;display:block;flex:0 0 auto}
.floatbar-id span{font-family:var(--f-mono);font-size:.68rem;letter-spacing:.08em;text-transform:uppercase;color:var(--text-dim-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

@media (prefers-reduced-motion:reduce){
  .floatbar{transition:none}
}
