/* Onboarding GazExpress — reproduction fidèle des maquettes + responsivité parfaite. */
:root{ --night:#0d1b2a; --accent:#f97316; --primary:#1d4ed8; --muted:#64748b; }
*{box-sizing:border-box;margin:0;padding:0;}
html,body{height:100%;}
.gx-onb{
  min-height:100dvh; background:#f1f4f9;
  font-family:"Inter",system-ui,-apple-system,Roboto,sans-serif; color:var(--night);
  display:flex; align-items:stretch; justify-content:center;
}
/* Cadre « application » : plein écran mobile, carte centrée sur grand écran */
.gx-onb__frame{
  width:100%; max-width:460px; background:#fff; display:flex; flex-direction:column;
  min-height:100dvh; position:relative; overflow:hidden;
}
@media(min-width:480px){
  .gx-onb{padding:24px;}
  .gx-onb__frame{min-height:min(900px,94dvh);height:min(900px,94dvh);border-radius:30px;box-shadow:0 24px 70px rgba(15,23,42,.18);}
}

/* Haut */
.gx-onb__top{display:flex;align-items:center;justify-content:space-between;
  padding:max(14px,env(safe-area-inset-top)) 22px 6px;flex-shrink:0;}
.gx-onb__brand{display:inline-flex;align-items:center;gap:8px;}
.gx-onb__brand img{width:30px;height:30px;object-fit:contain;}
.gx-onb__brand b{font-family:"Poppins",sans-serif;font-weight:800;font-size:20px;color:var(--accent);}
.gx-onb__brand b span{color:var(--night);}
.gx-onb__skip{background:none;border:0;color:var(--muted);font-size:15px;font-weight:600;cursor:pointer;padding:8px;}

/* Carrousel */
.gx-onb__viewport{flex:1;overflow:hidden;min-height:0;}
.gx-onb__track{display:flex;height:100%;transition:transform .42s cubic-bezier(.4,0,.2,1);}
.gx-onb__slide{min-width:100%;height:100%;}
/* Colonne flex : l'illustration absorbe l'espace → rien n'est jamais coupé, à toute hauteur */
.gx-onb__slide-in{height:100%;padding:10px 26px 6px;display:flex;flex-direction:column;}

/* Titre avec mot orange souligné */
.gx-onb__title{
  flex-shrink:0;
  font-family:"Poppins",sans-serif;font-weight:800;
  font-size:clamp(24px,6.6vw,32px);line-height:1.12;letter-spacing:-.02em;color:var(--night);
}
.gx-onb__hl{position:relative;color:var(--accent);display:inline-block;}
.gx-onb__hl::after{content:"";position:absolute;left:0;right:0;bottom:-6px;height:4px;border-radius:3px;
  background:var(--accent);width:64%;}
.gx-onb__text{flex-shrink:0;margin:16px 0 4px;color:var(--muted);font-size:clamp(13.5px,3.7vw,15px);line-height:1.55;max-width:34ch;}

/* Illustration : absorbe l'espace restant et se réduit sur petits écrans (jamais coupée) */
.gx-onb__illu{flex:1 1 auto;min-height:90px;display:flex;align-items:center;justify-content:center;margin:8px 0;}
.gx-onb__illu img{width:auto;max-width:100%;max-height:100%;height:auto;object-fit:contain;
  filter:drop-shadow(0 18px 30px rgba(15,23,42,.12));-webkit-user-drag:none;}

/* Features */
.gx-onb__features{flex-shrink:0;list-style:none;display:flex;flex-direction:column;gap:12px;margin-top:4px;}
.gx-onb__features li{display:flex;align-items:center;gap:14px;}
.gx-onb__fi{width:44px;height:44px;flex-shrink:0;border-radius:50%;display:grid;place-items:center;
  background:#fff5ec;color:var(--accent);font-size:19px;}
.gx-onb__ft{display:flex;flex-direction:column;gap:1px;}
.gx-onb__ft strong{font-size:15px;font-weight:700;color:var(--night);line-height:1.2;}
.gx-onb__ft span{font-size:13px;color:var(--muted);}

/* Bas : dots + bouton */
.gx-onb__bottom{flex-shrink:0;display:flex;flex-direction:column;align-items:center;gap:13px;
  padding:12px 26px max(14px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid #f1f4f9;}
.gx-onb__dots{display:flex;gap:9px;}
.gx-onb__dots span{width:9px;height:9px;border-radius:50%;background:#d8dee8;cursor:pointer;
  transition:width .3s,background .3s;-webkit-tap-highlight-color:transparent;}
.gx-onb__dots span:hover{background:#b9c2d0;}
.gx-onb__dots span.is-active{width:28px;background:var(--accent);border-radius:5px;}
.gx-onb__next{width:100%;display:inline-flex;align-items:center;justify-content:center;gap:10px;
  background:var(--accent);color:#fff;border:0;border-radius:16px;padding:17px;font-size:16.5px;font-weight:700;
  cursor:pointer;box-shadow:0 12px 26px rgba(249,115,22,.35);transition:transform .12s;}
.gx-onb__next:active{transform:translateY(1px);}
.gx-onb__next svg{width:20px;height:20px;}
.gx-onb__login{color:var(--muted);font-size:14.5px;font-weight:600;text-decoration:none;padding:2px;}
.gx-onb__login:hover{color:var(--night);}

/* Très petits écrans : compacte */
@media(max-height:680px){
  .gx-onb__illu img{height:clamp(140px,26vh,200px);}
  .gx-onb__features{gap:10px;}
  .gx-onb__title{font-size:clamp(24px,6.6vw,30px);}
}
