/* =================================================================
   AI-TARGET — Site vitrine + démo
   Thème sombre aligné sur la charte de l'app : bleu de visée, vert
   d'impact, fond quasi noir, typographies Space Grotesk / Inter.
   ================================================================= */

  :root{
    --bg:#0d0f12;
    --surface:#161a21;
    --surface-2:#1c212a;
    --border:#262c37;
    --text:#f2f4f6;
    --text-soft:#8b94a3;
    --blue:#3b96f5;
    --blue-soft:rgba(59,150,245,.14);
    --green:#3ed98a;
    --font:'Inter',-apple-system,sans-serif;
    --font-display:'Space Grotesk',-apple-system,sans-serif;
    --font-mono:'JetBrains Mono',monospace;
  }
  *{box-sizing:border-box;margin:0;padding:0;}
  html{scroll-behavior:smooth; scroll-padding-top:76px;}
  body{ background:var(--bg); color:var(--text); font-family:var(--font); overflow-x:hidden; }

  /* ---------------- INTRO ---------------- */
  .intro{
    position:fixed; inset:0; z-index:100; background:var(--bg);
    display:flex; align-items:center; justify-content:center; flex-direction:column;
    transition:transform 1.1s cubic-bezier(.76,0,.24,1);
  }
  .intro.hide{ transform:translateY(-100%); }
  .intro__scope{ position:relative; width:170px; height:170px; margin-bottom:1.8rem; }
  .intro__scope svg{ width:100%; height:100%; overflow:visible; }
  .ring{
    fill:none; stroke:var(--blue); stroke-width:5; stroke-linecap:round;
    stroke-dasharray:220; stroke-dashoffset:220;
    animation:draw 1s cubic-bezier(.6,.1,.15,1) forwards;
  }
  .ring--2{ stroke:var(--border); stroke-width:5; stroke-dasharray:340; stroke-dashoffset:340; animation-delay:.12s; }
  .dot{ fill:var(--green); opacity:0; animation:pulse .5s ease forwards .85s; }
  @keyframes draw{ to{ stroke-dashoffset:0; } }
  @keyframes pulse{ 0%{opacity:0; r:0;} 60%{opacity:1; r:9;} 100%{opacity:1; r:6;} }

  .intro__word{ display:flex; overflow:hidden; }
  .intro__word span{
    display:inline-block; font-family:var(--font-display); font-size:clamp(2rem,6vw,3.2rem); font-weight:700; letter-spacing:-.01em;
    opacity:0; transform:translateY(100%);
    animation:rise .7s cubic-bezier(.16,1,.3,1) forwards;
  }
  @keyframes rise{ to{ opacity:1; transform:translateY(0); } }

  .intro__tag{
    margin-top:1rem; font-family:var(--font-mono); font-size:.7rem; letter-spacing:.28em;
    text-transform:uppercase; color:var(--text-soft); opacity:0;
    animation:fadein .8s ease forwards 1.75s;
  }
  @keyframes fadein{ to{ opacity:1; } }

  @media (prefers-reduced-motion: reduce){
    .intro, .ring, .dot, .intro__word span, .intro__tag{
      animation:none !important; opacity:1 !important; stroke-dashoffset:0 !important; transform:none !important;
    }
  }

  /* ---------------- NAV ---------------- */
  .nav{
    position:fixed; top:0; left:0; right:0; z-index:20;
    display:flex; align-items:center; justify-content:space-between;
    padding:1.4rem 2.2rem; opacity:0; animation:fadein .8s ease forwards 2.7s;
  }
  .brand{ display:flex; align-items:center; gap:.6rem; font-family:var(--font-display); font-weight:700; letter-spacing:-.01em; }
  .brand__mark{ width:30px; height:30px; }
  .nav a{ color:var(--text-soft); text-decoration:none; font-size:.9rem; font-weight:600; }
  .nav a:hover{ color:var(--text); }

  .nav__right{ display:flex; align-items:center; gap:1.1rem; }
  .nav__social{ display:flex; gap:.5rem; }
  .nav__social a{
    width:34px; height:34px; border-radius:50%; border:1px solid var(--border);
    display:flex; align-items:center; justify-content:center; color:var(--text-soft);
    transition:border-color .2s ease, color .2s ease, transform .12s ease;
  }
  .nav__social a:hover{ border-color:var(--blue); color:var(--blue); transform:translateY(-2px); }
  .nav__social svg{ width:16px; height:16px; }
  @media (max-width:520px){ .nav__social{ display:none; } }

  .nav__burger{
    width:40px; height:40px; border-radius:50%; border:1px solid var(--border);
    background:var(--surface); display:flex; flex-direction:column; align-items:center;
    justify-content:center; gap:4px; cursor:pointer; padding:0; flex-shrink:0;
    transition:border-color .2s ease;
  }
  .nav__burger:hover{ border-color:var(--blue); }
  .nav__burger span{ width:16px; height:2px; background:var(--text); transition:transform .25s ease, opacity .25s ease; }
  .nav__burger.is-open span:nth-child(1){ transform:translateY(6px) rotate(45deg); }
  .nav__burger.is-open span:nth-child(2){ opacity:0; }
  .nav__burger.is-open span:nth-child(3){ transform:translateY(-6px) rotate(-45deg); }

  .nav__menu{
    position:fixed; top:70px; right:2.2rem; z-index:19;
    background:var(--surface); border:1px solid var(--border); border-radius:16px;
    padding:.5rem; display:flex; flex-direction:column; min-width:190px;
    box-shadow:0 20px 40px -12px rgba(0,0,0,.5);
    opacity:0; transform:translateY(-8px) scale(.98); pointer-events:none;
    transition:opacity .2s ease, transform .2s ease;
  }
  .nav__menu.is-open{ opacity:1; transform:translateY(0) scale(1); pointer-events:auto; }
  .nav__menu a{
    padding:.75rem .9rem; border-radius:10px; color:var(--text) !important;
    font-weight:600; font-size:.92rem;
  }
  .nav__menu a:hover{ background:var(--surface-2); color:var(--blue) !important; }
  .nav__menu__social{
    display:none; gap:.5rem; padding:.6rem .5rem .3rem; margin-top:.3rem;
    border-top:1px solid var(--border);
  }
  .nav__menu__social a{
    width:36px; height:36px; padding:0; border-radius:50%; border:1px solid var(--border);
    display:flex; align-items:center; justify-content:center; color:var(--text-soft) !important;
  }
  .nav__menu__social a:hover{ border-color:var(--blue); color:var(--blue) !important; background:transparent; }
  .nav__menu__social svg{ width:16px; height:16px; }
  @media (max-width:520px){ .nav__menu__social{ display:flex; } }

  /* ---------------- HERO ---------------- */
  .hero{
    position:relative; min-height:100vh; display:flex; align-items:center; padding:0 2.2rem;
    background:
      radial-gradient(circle at 82% 25%, var(--blue-soft), transparent 55%),
      var(--bg);
  }
  .hero__inner{
    position:relative; z-index:1; max-width:1080px; margin:0 auto; width:100%;
    display:grid; grid-template-columns:1.15fr .85fr; gap:2.5rem; align-items:center;
  }
  @media (max-width:820px){
    .hero{ padding-top:5.5rem; }
    .hero__inner{ grid-template-columns:1fr; }
    .hero__visual{ order:-1; }
  }

  .hero__eyebrow{
    display:inline-flex; align-items:center; gap:.5rem;
    font-size:.78rem; font-weight:700; color:var(--blue);
    background:var(--blue-soft); padding:.4rem .8rem; border-radius:99px;
    margin-bottom:1.5rem; opacity:0; animation:rise2 .8s ease forwards 2.85s;
  }
  .hero h1{
    font-family:var(--font-display); font-size:clamp(2.4rem,5.6vw,4rem); line-height:1.04; font-weight:700; letter-spacing:-.02em;
    opacity:0; animation:rise2 .9s cubic-bezier(.16,1,.3,1) forwards 3s;
  }
  .hero h1 em{ font-style:normal; color:var(--blue); }
  .hero p{
    margin-top:1.3rem; max-width:34ch; color:var(--text-soft); font-size:1.05rem; font-weight:400;
    opacity:0; animation:rise2 .9s ease forwards 3.2s;
  }
  .hero__actions{ margin-top:2.1rem; display:flex; gap:.9rem; flex-wrap:wrap;
    opacity:0; animation:rise2 .9s ease forwards 3.35s; }
  @keyframes rise2{ from{opacity:0; transform:translateY(18px);} to{opacity:1; transform:translateY(0);} }

  .btn{
    display:inline-flex; align-items:center; gap:.5rem; padding:.9rem 1.6rem;
    border-radius:14px; font-size:.95rem; font-weight:700; text-decoration:none;
    border:1px solid transparent; transition:transform .15s ease, background .2s ease;
  }
  .btn--primary{ background:var(--blue); color:#fff; }
  .btn--primary:hover{ transform:translateY(-2px); background:#4fa2f7; }
  .btn--ghost{ border-color:var(--border); color:var(--text); background:var(--surface); }
  .btn--ghost:hover{ border-color:var(--blue); }

  /* cible tournante, recolorée à la charte app */
  .hero__visual{
    position:relative; width:100%; max-width:360px; margin:0 auto;
    opacity:0; animation:scalein 1.1s cubic-bezier(.16,1,.3,1) forwards 3s;
  }
  @keyframes scalein{ from{opacity:0; transform:scale(.88) translateY(20px);} to{opacity:1; transform:scale(1) translateY(0);} }
  .hero__visual__rings{ position:relative; aspect-ratio:1; width:100%; }
  .hero__visual__rings svg{ width:100%; height:100%; animation:spin 46s linear infinite; }
  @keyframes spin{ to{ transform:rotate(360deg); } }

  .impact{ transform-box:fill-box; transform-origin:center; animation:breathe 2.6s ease-in-out infinite; }
  .impact--1{ animation-delay:0s; }
  .impact--2{ animation-delay:.6s; }
  .impact--3{ animation-delay:1.2s; }
  .impact--4{ animation-delay:1.8s; }
  @keyframes breathe{
    0%, 100%{ transform:translateY(0) scale(1); opacity:.75; }
    50%{ transform:translateY(-4px) scale(1.18); opacity:1; }
  }
  @media (prefers-reduced-motion: reduce){
    .hero__visual svg{ animation:none; }
    .impact{ animation:none; opacity:1; }
  }

  .hero__trust{
    list-style:none; margin-top:1.6rem; display:flex; flex-direction:column; gap:.65rem;
    width:100%; max-width:300px; margin-left:auto; margin-right:auto;
  }
  .hero__trust-item{
    display:flex; align-items:center; gap:.6rem;
    font-size:.85rem; font-weight:600; color:var(--text-soft);
    opacity:0; transform:translateX(14px);
    animation:trustIn .7s cubic-bezier(.16,1,.3,1) forwards;
  }
  .hero__trust-item:nth-child(1){ animation-delay:4.15s; }
  .hero__trust-item:nth-child(2){ animation-delay:4.4s; }
  .hero__trust-item:nth-child(3){ animation-delay:4.65s; }
  .hero__trust-item svg{ width:18px; height:18px; flex-shrink:0; }
  @keyframes trustIn{ to{ opacity:1; transform:translateX(0); } }
  @media (prefers-reduced-motion: reduce){
    .hero__trust-item{ animation:none; opacity:1; transform:none; }
  }

  .scroll-cue{
    position:absolute; bottom:2rem; left:50%; transform:translateX(-50%);
    display:flex; flex-direction:column; align-items:center; gap:.5rem;
    font-family:var(--font-mono); font-size:.65rem; letter-spacing:.2em;
    color:var(--text-soft); text-transform:uppercase;
    opacity:0; animation:fadein .8s ease forwards 3.8s;
  }
  .scroll-cue__line{ width:1px; height:34px; background:var(--border); position:relative; overflow:hidden; }
  .scroll-cue__line::after{
    content:''; position:absolute; top:-100%; left:0; width:100%; height:100%;
    background:var(--blue); animation:trickle 1.6s ease-in-out infinite;
  }
  @keyframes trickle{ 0%{top:-100%;} 60%{top:100%;} 100%{top:100%;} }
  @media (max-width:820px){ .scroll-cue{ display:none; } }

  .strip{
    border-top:1px solid var(--border); border-bottom:1px solid var(--border);
    padding:1.4rem 2.2rem; display:flex; flex-wrap:wrap; gap:2rem; justify-content:center;
    font-size:.82rem; font-weight:700; color:var(--text-soft);
  }
  .strip span em{ color:var(--blue); font-style:normal; }

  /* ---------------- FONCTIONNALITÉS ---------------- */
  .features{ padding:6rem 2.2rem; }
  .section-head{ max-width:1080px; margin:0 auto 3rem; text-align:center; }
  .section-head__eyebrow{
    font-family:var(--font-mono); font-size:.72rem; letter-spacing:.24em;
    text-transform:uppercase; color:var(--blue); margin-bottom:.9rem; font-weight:600;
  }
  .section-head__title{ font-family:var(--font-display); font-size:clamp(1.8rem,4vw,2.6rem); font-weight:700; letter-spacing:-.015em; }
  .section-head__lead{ margin-top:.9rem; color:var(--text-soft); font-size:1.02rem; }

  .features__grid{
    max-width:1080px; margin:0 auto; display:grid;
    grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:1.5rem;
  }
  .feature{
    position:relative; background:var(--surface); border:1px solid var(--border);
    border-radius:20px; padding:1.75rem; transition:border-color .2s ease, transform .12s ease;
  }
  .feature:hover{ border-color:var(--blue); transform:translateY(-3px); }
  .feature__icon{
    width:48px; height:48px; display:flex; align-items:center; justify-content:center;
    border-radius:14px; background:var(--blue-soft); margin-bottom:1rem;
  }
  .feature__icon svg{
    width:26px; height:26px; fill:none; stroke:var(--blue); stroke-width:1.6;
    stroke-linecap:round; stroke-linejoin:round;
  }
  .feature h3{ font-family:var(--font-display); font-size:1.15rem; font-weight:700; margin-bottom:.5rem; }
  .feature p{ color:var(--text-soft); font-size:.95rem; font-weight:400; }
  .feature strong{ color:var(--text); font-weight:700; }
  .feature__badge{
    position:absolute; top:1.25rem; right:1.25rem; padding:.25rem .6rem;
    border-radius:99px; background:var(--blue-soft); border:1px solid rgba(59,150,245,.35);
    color:var(--blue); font-size:.68rem; font-weight:700; letter-spacing:.02em; text-transform:uppercase;
  }

  /* ---------------- DÉMO / VISITE GUIDÉE ---------------- */
  .demo{ max-width:1080px; margin:0 auto; padding:6rem 1.5rem; }
  .demo__stage{ display:flex; align-items:center; justify-content:center; gap:2rem; }

  .phone{
    position:relative; width:280px; height:580px; flex-shrink:0;
    background:#05060a; border:10px solid #05060a; border-radius:40px;
    box-shadow:0 0 0 2px var(--border), 0 30px 60px rgba(0,0,0,.55);
  }
  .phone__notch{
    position:absolute; top:0; left:50%; transform:translateX(-50%);
    width:120px; height:20px; background:#05060a; border-radius:0 0 14px 14px; z-index:3;
  }
  .phone__screen{
    position:relative; width:100%; height:100%; border-radius:30px;
    overflow:hidden; background:var(--surface-2);
  }
  .phone__screen img{ width:100%; height:100%; object-fit:cover; }

  .placeholder{
    position:absolute; inset:0; display:flex; flex-direction:column; align-items:center;
    justify-content:center; gap:1rem; text-align:center; padding:2rem;
    background:radial-gradient(circle at 50% 38%, var(--blue-soft), transparent 60%), var(--surface-2);
  }
  .placeholder__target{ width:80px; height:80px; color:var(--blue); opacity:.85; }
  .placeholder__num{ font-size:.72rem; letter-spacing:.16em; text-transform:uppercase; color:var(--text-soft); font-weight:700; }
  .placeholder__name{ font-size:1.05rem; font-weight:800; color:var(--text); }
  .placeholder__hint{ font-size:.72rem; color:var(--text-soft); border:1px dashed var(--border); padding:.35rem .7rem; border-radius:99px; }

  .nav-btn{
    width:50px; height:50px; border-radius:50%; border:1px solid var(--border);
    background:var(--surface); color:var(--text); font-size:1.05rem; cursor:pointer;
    flex-shrink:0; transition:border-color .2s ease, color .2s ease, transform .12s ease;
  }
  .nav-btn:hover{ border-color:var(--blue); color:var(--blue); }
  .nav-btn:active{ transform:scale(.94); }

  .demo__controls{ display:none; align-items:center; justify-content:center; gap:1.2rem; margin-top:2rem; }
  .demo__counter{ font-weight:700; color:var(--text-soft); min-width:56px; text-align:center; }
  @media (max-width:720px){
    .demo__stage{ gap:0; }
    .nav-btn{ display:none; }
    .demo__controls{ display:flex; }
  }

  .demo__dots{ display:flex; flex-wrap:wrap; justify-content:center; gap:.55rem; margin-top:1.5rem; }
  .demo__dots .dot{
    width:10px; height:10px; border-radius:50%; border:none; background:var(--border);
    cursor:pointer; padding:0; transition:background .2s ease, transform .2s ease;
  }
  .demo__dots .dot:hover{ background:var(--text-soft); }
  .demo__dots .dot.is-active{ background:var(--blue); transform:scale(1.25); }

  .demo__caption{ text-align:center; max-width:560px; margin:2rem auto 0; }
  .demo__caption-step{
    font-size:.72rem; text-transform:uppercase; letter-spacing:.2em; font-weight:700; color:var(--green);
  }
  .demo__caption-title{ font-family:var(--font-display); font-size:1.35rem; font-weight:700; margin:.4rem 0 .5rem; }
  .demo__caption-text{ color:var(--text-soft); }

  /* ---------------- FOOTER ---------------- */
  .footer{ text-align:center; padding:3.5rem 1.5rem 3rem; border-top:1px solid var(--border); }
  .footer__brand{
    display:inline-flex; align-items:center; gap:.5rem; margin-bottom:1rem;
    font-family:var(--font-display); font-weight:700; letter-spacing:-.01em;
  }
  .footer__brand img{ width:26px; height:26px; }
  .footer__text{ color:var(--text-soft); font-size:.95rem; }
  .footer__social{ display:flex; justify-content:center; gap:.7rem; margin-top:1.4rem; }
  .footer__social a{
    width:38px; height:38px; border-radius:50%; border:1px solid var(--border);
    display:flex; align-items:center; justify-content:center; color:var(--text-soft);
    transition:border-color .2s ease, color .2s ease, transform .12s ease;
  }
  .footer__social a:hover{ border-color:var(--blue); color:var(--blue); transform:translateY(-2px); }
  .footer__social svg{ width:18px; height:18px; }
  .footer__legal{ color:var(--text-soft); font-size:.82rem; margin-top:1.4rem; opacity:.7; }
