/* ============================================================
   Tunnel d'inscription libre-service.
   Chargée APRÈS auth.css par accounts/signup_base.html, et seulement
   là : tout est préfixé par body.signup-flow, les autres pages
   d'authentification ne bougent pas.
   Page d'inscription (2026-11-05) : la promesse du bouton « Essai
   gratuit » du site à gauche, avec le produit (vraie capture qui lance
   la vidéo d'une minute) ; à droite le formulaire en carte, les
   garanties sous le bouton et les étapes juste après.
   ============================================================ */

body.signup-flow{
  --navy:#0b1526;--panel:#101d33;--line:#1f2e48;
  --teal:#22b8e6;--teal-l:#5fd0f0;
  --txt:#ffffff;--mut:#c9d3e2;--dim:#8a97ab;
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  background:var(--navy);
}
body.signup-flow h1,body.signup-flow h2,body.signup-flow .wordmark,body.signup-flow .intro-title,
body.signup-flow .step b,body.signup-flow .step .num,body.signup-flow .shot-label b{font-family:'Outfit',system-ui,sans-serif}
body.signup-flow a:focus-visible,body.signup-flow button:focus-visible,body.signup-flow input:focus-visible{outline:2px solid var(--teal);outline-offset:2px}

body.signup-flow .wordmark{font-weight:600;font-size:22px;letter-spacing:-.02em;color:var(--txt);line-height:1}
body.signup-flow .wordmark span{color:var(--teal)}
body.signup-flow .wordmark-sm{display:none;font-size:20px}

/* Badge de l'essai (eyebrow) et accent du titre. */
body.signup-flow .trial-badge{display:inline-flex;align-items:center;gap:9px;align-self:flex-start;padding:6px 13px 6px 11px;border-radius:999px;border:1px solid rgba(34,184,230,.35);background:rgba(34,184,230,.12);color:var(--teal-l);font-size:12px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;line-height:1.3}
body.signup-flow .trial-badge .dot{width:8px;height:8px;flex-shrink:0;border-radius:999px;background:var(--teal);box-shadow:0 0 0 0 rgba(34,184,230,.6);animation:signup-pulse 2.2s ease-out infinite}
body.signup-flow .hl{background:linear-gradient(90deg,#22b8e6 0%,#7fe3ff 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
@keyframes signup-pulse{
  0%{box-shadow:0 0 0 0 rgba(34,184,230,.55)}
  70%{box-shadow:0 0 0 10px rgba(34,184,230,0)}
  100%{box-shadow:0 0 0 0 rgba(34,184,230,0)}
}

/* ================= Panneau de gauche ================= */
body.signup-flow .signup-brand{
  width:53%;min-height:100vh;overflow:visible;
  justify-content:flex-start;align-items:stretch;gap:28px;
  padding:44px clamp(32px,4.4vw,64px) 36px clamp(40px,6.1vw,88px);
  background:
    radial-gradient(900px 520px at 12% -8%,rgba(34,184,230,.16),transparent 62%),
    radial-gradient(700px 480px at 95% 105%,rgba(34,184,230,.10),transparent 60%),
    var(--navy);
  border-right:1px solid var(--line);
}
body.signup-flow .signup-brand::before,body.signup-flow .signup-brand::after{display:none}
body.signup-flow .signup-brand .hero{display:flex;flex-direction:column;gap:14px}
body.signup-flow .signup-brand h2{margin:0;max-width:none;font-weight:600;font-size:42px;line-height:1.08;letter-spacing:-.03em;color:var(--txt);text-wrap:balance}
body.signup-flow .signup-brand p.para{margin:0;font-size:16px;line-height:1.55;color:var(--mut)}

/* Plateformes : pastilles blanches à logo, comme l'accueil du site. */
body.signup-flow .platforms{list-style:none;margin:2px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
body.signup-flow .platform{display:inline-flex;align-items:center;gap:7px;height:30px;padding:0 11px;border-radius:8px;background:#fff;color:#0b1526;font-size:12.5px;font-weight:600;white-space:nowrap}
body.signup-flow .platform img{width:18px;height:18px;object-fit:contain}
body.signup-flow .platform.wordmark-logo img{width:auto;height:15px}

/* Le produit : vraie capture du tableau de bord, qui lance la vidéo. */
body.signup-flow .product-shot{position:relative;display:block;text-decoration:none;color:var(--txt)}
body.signup-flow .product-shot::before{content:"";position:absolute;inset:-28px -20px;border-radius:40px;background:radial-gradient(closest-side,rgba(34,184,230,.30),transparent);filter:blur(12px);pointer-events:none}
body.signup-flow .shot-frame{position:relative;display:block;border-radius:12px;overflow:hidden;background:#fff;border:1px solid rgba(255,255,255,.12);box-shadow:0 30px 70px rgba(0,0,0,.55);transition:transform .25s ease,box-shadow .25s ease}
body.signup-flow .shot-bar{display:flex;align-items:center;gap:6px;height:24px;padding:0 12px;background:#e8ecf2;border-bottom:1px solid #d7dde6}
body.signup-flow .shot-bar i{width:9px;height:9px;border-radius:999px;background:#ff5f57}
body.signup-flow .shot-bar i:nth-child(2){background:#febc2e}
body.signup-flow .shot-bar i:nth-child(3){background:#28c840}
body.signup-flow .shot-frame img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;object-position:top left}
body.signup-flow .shot-frame::after{content:"";position:absolute;inset:24px 0 0;background:linear-gradient(180deg,rgba(11,21,38,0) 35%,rgba(11,21,38,.62) 100%);pointer-events:none}
body.signup-flow .shot-play{position:absolute;z-index:2;left:50%;top:54%;width:74px;height:74px;margin:-37px 0 0 -37px;border-radius:999px;background:var(--teal);color:var(--navy);display:flex;align-items:center;justify-content:center;box-shadow:0 14px 34px rgba(0,0,0,.4);animation:signup-ring 2.4s ease-out infinite;transition:transform .2s ease}
body.signup-flow .shot-play svg{margin-left:4px}
body.signup-flow .shot-label{position:absolute;z-index:2;left:14px;bottom:14px;display:inline-flex;align-items:center;gap:10px;padding:8px 14px;border-radius:999px;background:rgba(11,21,38,.82);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);font-size:13px;line-height:1.2}
body.signup-flow .shot-label b{font-weight:600;font-size:14px;color:var(--txt)}
body.signup-flow .shot-label span{font-weight:600;color:var(--teal-l)}
body.signup-flow .product-shot:hover .shot-frame{transform:translateY(-3px);box-shadow:0 36px 80px rgba(0,0,0,.6)}
body.signup-flow .product-shot:hover .shot-play{transform:scale(1.08)}
@keyframes signup-ring{
  0%{box-shadow:0 14px 34px rgba(0,0,0,.4),0 0 0 0 rgba(34,184,230,.55)}
  70%{box-shadow:0 14px 34px rgba(0,0,0,.4),0 0 0 18px rgba(34,184,230,0)}
  100%{box-shadow:0 14px 34px rgba(0,0,0,.4),0 0 0 0 rgba(34,184,230,0)}
}

body.signup-flow .chips{margin-top:auto;display:flex;gap:8px;flex-wrap:wrap}
body.signup-flow .chip{padding:6px 12px;border-radius:999px;background:rgba(34,184,230,.15);color:var(--teal);font-size:12px;font-weight:600;line-height:1.4}
body.signup-flow a.chip:hover{background:rgba(34,184,230,.25);color:var(--teal-l)}

/* ================= Colonne du formulaire ================= */
body.signup-flow .auth{
  width:47%;
  background:radial-gradient(640px 420px at 70% 30%,rgba(34,184,230,.07),transparent 65%),var(--navy);
  padding:36px clamp(32px,5.6vw,80px) 30px clamp(32px,5vw,72px);
}
body.signup-flow .auth-top{font-size:13px;color:var(--dim)}
body.signup-flow .lang button{font-size:13px;color:var(--dim)}
body.signup-flow .lang button.active{color:var(--txt);font-weight:600}
body.signup-flow .auth-top .top-login{margin-left:auto;margin-right:18px}
body.signup-flow .auth-top .top-login a{color:var(--teal);font-weight:600}
body.signup-flow .auth-top .top-login a:hover{color:var(--teal-l)}
body.signup-flow .auth-mid,body.signup-flow .auth-wide .auth-mid{max-width:470px}

body.signup-flow .form-head{display:flex;flex-direction:column;gap:8px;margin-bottom:22px}
/* Inscription parrainée : qui invite (accounts/_referral_banner.html). */
body.signup-flow .signup-referral{display:flex;align-items:flex-start;gap:10px;margin:0 0 18px;padding:11px 14px;border-radius:10px;border:1px solid rgba(34,184,230,.35);background:rgba(34,184,230,.10);color:var(--mut);font-size:14px;line-height:1.45}
body.signup-flow .signup-referral b{color:var(--txt);font-weight:600}
body.signup-flow .signup-referral-ico{color:var(--teal-l);line-height:1.45}
body.signup-flow .signup-referral + .signup-voucher{margin-top:-8px}
/* « J'ai un code de remise » : replié, discret, au-dessus des cases. */
body.signup-flow .signup-promo{margin:-4px 0 12px}
body.signup-flow .signup-promo summary{cursor:pointer;width:max-content;font-size:13px;color:var(--mut);list-style:none}
body.signup-flow .signup-promo summary::-webkit-details-marker{display:none}
body.signup-flow .signup-promo summary::before{content:"+";display:inline-block;width:14px;color:var(--teal-l);font-weight:600}
body.signup-flow .signup-promo[open] summary::before{content:"\2212"}
body.signup-flow .signup-promo summary:hover{color:var(--txt)}
body.signup-flow .signup-promo .field{margin:10px 0 4px}
body.signup-flow .signup-promo .inp input{text-transform:uppercase;letter-spacing:.04em}
body.signup-flow .form-head h1{margin:0;text-align:left;font-weight:600;font-size:27px;line-height:1.12;letter-spacing:-.03em;text-wrap:balance}
body.signup-flow .form-head .sub{margin:0;text-align:left;font-size:14.5px;line-height:1.5;color:var(--mut)}
body.signup-flow .auth h1{font-weight:600;letter-spacing:-.02em}

/* Le formulaire en carte : le seul objet clair de la colonne. */
body.signup-flow .signup-card{position:relative;padding:30px 30px 24px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(180deg,#13233d 0%,#0f1b30 100%);box-shadow:0 26px 60px rgba(0,0,0,.38)}
body.signup-flow .signup-card::before{content:"";position:absolute;top:-1px;left:28px;right:28px;height:1px;background:linear-gradient(90deg,transparent,rgba(95,208,240,.9),transparent)}

body.signup-flow .field{margin-bottom:14px}
body.signup-flow .field label{font-size:13px;font-weight:600;color:var(--mut)}
body.signup-flow .inp input,body.signup-flow .inp select{height:50px;padding:0 16px;border-radius:10px;border:1px solid var(--line);background:var(--navy);color:var(--txt);font-size:15px}
body.signup-flow .inp input:focus{border-color:var(--teal);box-shadow:0 0 0 3px rgba(34,184,230,.2)}
body.signup-flow .inp input::placeholder{color:var(--dim)}

body.signup-flow .checks{display:flex;flex-direction:column;gap:10px;margin:4px 0 20px}
body.signup-flow .check{display:flex;gap:10px;align-items:flex-start}
body.signup-flow .check input[type=checkbox]{flex-shrink:0;width:18px;height:18px;margin:1px 0 0;accent-color:var(--teal);cursor:pointer}
body.signup-flow .check label{font-size:13px;line-height:1.45;color:var(--mut);cursor:pointer}
body.signup-flow .checks .errors{margin:-4px 0 0 28px;font-size:12.5px;line-height:1.5;color:var(--err)}
body.signup-flow .checks .errors ul{list-style:none;margin:0;padding:0}

body.signup-flow .btn-primary{height:50px;border-radius:999px;background:var(--teal);color:var(--navy);font-size:15px;font-weight:600;box-shadow:none}
body.signup-flow .btn-primary:hover{background:var(--teal-l);color:var(--navy);filter:none}
body.signup-flow .btn-cta{height:54px;font-size:16px;background:linear-gradient(90deg,#22b8e6 0%,#56d4f5 100%);box-shadow:0 12px 30px rgba(34,184,230,.35);transition:transform .15s ease,box-shadow .15s ease}
body.signup-flow .btn-cta:hover{background:linear-gradient(90deg,#3cc4ee 0%,#7fe3ff 100%);transform:translateY(-1px);box-shadow:0 16px 36px rgba(34,184,230,.45)}
body.signup-flow .btn-cta svg{transition:transform .15s ease}
body.signup-flow .btn-cta:hover svg{transform:translateX(3px)}
body.signup-flow .hint.center{margin-top:14px;font-size:13px;line-height:1.45;color:var(--dim)}

/* Garanties sous le bouton. */
body.signup-flow .trust{list-style:none;margin:16px 0 0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:6px 18px}
body.signup-flow .trust li{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--mut)}
body.signup-flow .trust li::before{content:"";width:16px;height:16px;flex-shrink:0;border-radius:999px;background:rgba(34,184,230,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322b8e6' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/10px no-repeat}

/* Ce qui se passe ensuite : trois lignes sous la carte. */
body.signup-flow .signup-next{margin-top:24px}
body.signup-flow .steps-title{font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--dim);margin:0 0 14px}
/* auth.css en fait des cartes en grille : ici, de simples lignes. */
body.signup-flow .steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
body.signup-flow .step{display:flex;flex-direction:row;gap:12px;align-items:flex-start;padding:0;background:none;border:none;border-radius:0;font-size:13.5px;line-height:1.5;color:var(--mut)}
body.signup-flow .step > div{display:block}
body.signup-flow .step b{font-weight:600;font-size:14px;color:var(--txt)}
body.signup-flow .step b::after{content:"."}
body.signup-flow .step .num{width:26px;height:26px;flex-shrink:0;border-radius:999px;background:rgba(34,184,230,.16);border:1px solid rgba(34,184,230,.45);color:var(--teal-l);font-weight:600;font-size:13px;display:flex;align-items:center;justify-content:center}

/* Premier périmètre de l'essai : une ligne discrète. */
body.signup-flow .scope{display:block;margin:20px 0 0;padding:14px 0 0;background:none;border:none;border-top:1px solid var(--line);border-radius:0;font-size:12.5px;line-height:1.5;color:var(--dim)}
body.signup-flow .scope p{margin:0}
body.signup-flow .scope p + p{margin-top:4px}
body.signup-flow .scope b{display:inline;margin:0;font-weight:600;color:var(--mut)}
body.signup-flow .scope a{color:var(--teal);font-weight:600}
body.signup-flow .scope a:hover{color:var(--teal-l)}

body.signup-flow .signup-alt{margin-top:16px;display:flex;flex-direction:column;gap:6px}
body.signup-flow .signup-alt p{font-size:13.5px;color:var(--mut)}
body.signup-flow .signup-alt a{font-weight:600}
body.signup-flow .signup-alt .alt-links{display:flex;flex-wrap:wrap;gap:6px 20px}
body.signup-flow .video-link{display:inline-flex;align-items:center;gap:6px;font-weight:600;color:var(--teal);text-decoration:none}
body.signup-flow .video-link:hover{color:var(--teal-l)}

/* Fenêtre de la vidéo (le reset d'auth.css annule la marge qui centre un <dialog>). */
body.signup-flow .video-dialog{margin:auto;padding:0;border:none;background:transparent;overflow:visible;max-width:none;max-height:none;width:min(960px,92vw,calc((100vh - 120px) * 16 / 9))}
body.signup-flow .video-dialog::backdrop{background:rgba(5,10,20,.85)}
body.signup-flow .video-frame{position:relative;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:#000;box-shadow:0 24px 60px rgba(0,0,0,.5)}
body.signup-flow .video-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
body.signup-flow .video-close{position:absolute;top:-46px;right:0;width:36px;height:36px;border-radius:999px;border:1px solid var(--line);background:var(--panel);color:var(--txt);cursor:pointer;display:flex;align-items:center;justify-content:center}
body.signup-flow .video-close:hover{border-color:var(--teal)}

/* Pages d'état du tunnel (lien envoyé, attente, lien expiré) : centrées. */
body.signup-flow .status-ico.mail{background:rgba(34,184,230,.14);color:var(--teal);border-color:rgba(34,184,230,.4)}
body.signup-flow .backlink a{color:var(--dim)}
/* Finalisation : le formulaire n'est pas en carte, il garde le fond de colonne. */
body.signup-flow .auth-mid > form .inp input{background:var(--panel)}

/* Réservés au mobile. */
body.signup-flow .signup-intro,body.signup-flow .signup-mobile-extra{display:none}

/* Bureau étroit. */
@media(max-width:1240px){
  body.signup-flow .signup-brand h2{font-size:36px}
}

/* Écrans peu hauts. */
@media(min-width:981px) and (max-height:860px){
  body.signup-flow .signup-brand{gap:22px;padding-top:34px;padding-bottom:30px}
  body.signup-flow .signup-brand h2{font-size:34px}
  body.signup-flow .signup-brand p.para{font-size:15px}
  body.signup-flow .shot-frame img{aspect-ratio:16/8}
  body.signup-flow .signup-card{padding:24px 24px 20px}
}

@media(prefers-reduced-motion:reduce){
  body.signup-flow .trial-badge .dot,body.signup-flow .shot-play{animation:none}
  body.signup-flow .shot-frame,body.signup-flow .shot-play,body.signup-flow .btn-cta,body.signup-flow .btn-cta svg{transition:none}
}

/* ================= Mobile ================= */
@media(max-width:980px){
  body.signup-flow .auth{width:100%;padding:20px 20px 22px}
  body.signup-flow .auth-top .top-login{margin-right:14px}
  body.signup-flow .auth-top .top-login-q{display:none}
  body.signup-flow .wordmark-sm{display:inline-block}
  body.signup-flow .auth-mid{padding:16px 0 8px;justify-content:flex-start}

  body.signup-flow .signup-intro{display:flex;flex-direction:column;gap:12px;margin:0 0 18px;text-align:left}
  body.signup-flow .signup-intro .trial-badge{font-size:11px}
  body.signup-flow .signup-intro .intro-title{margin:0;font-weight:600;font-size:30px;line-height:1.1;letter-spacing:-.03em;color:var(--txt)}
  body.signup-flow .signup-intro p{font-size:15px;line-height:1.45;color:var(--mut)}

  body.signup-flow .signup-card{padding:20px 18px 18px;border-radius:14px}
  body.signup-flow .signup-card .form-head{margin-bottom:16px}
  body.signup-flow .signup-card .form-head h1{font-size:22px}
  body.signup-flow .signup-card .form-head .sub{font-size:13.5px}
  body.signup-flow .signup-card .inp input{font-size:16px}

  body.signup-flow .signup-mobile-extra{display:flex;flex-direction:column;gap:18px;margin-top:26px}
  body.signup-flow .signup-mobile-extra .product-shot::before{inset:-16px -10px}
  body.signup-flow .shot-play{width:58px;height:58px;margin:-29px 0 0 -29px}
  body.signup-flow .shot-label{left:10px;bottom:10px;padding:6px 11px}
  body.signup-flow .shot-label b{font-size:13px}
  body.signup-flow .signup-alt{margin-bottom:18px}

  body.signup-flow .form-head h1,body.signup-flow .form-head .sub{text-align:left}
}
