/* Portail bêta : design Zetamind Rév. 4/5 (noir, une seule couleur = le fil spectral pour ce qui est vivant). */
html, body { min-height: 100%; overflow-x: hidden; }
body { -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
#app { max-width: 480px; margin: 0 auto; padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom)); min-height: 100dvh; display: flex; }
.ecran { display: flex; flex-direction: column; width: 100%; gap: 28px; animation: entree 220ms ease-out both; }
@keyframes entree { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.centre { text-align: center; }
h1 { font-size: 28px; line-height: 1.2; font-weight: 500; letter-spacing: -.02em; margin: 0; text-align: center; }
h2 { font-size: 22px; line-height: 1.25; font-weight: 500; margin: 0; text-align: center; }
.sous { color: var(--texte-2); text-align: center; margin: 0; font-size: 16px; }
.heros { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 4vh; position: relative; }
.heros::before { content: ""; position: absolute; top: -40px; left: 50%; width: 360px; height: 360px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(139,92,246,.12), transparent); pointer-events: none; z-index: -1; }

/* Orbite : anneau spectral vivant + trois points qui tournent (vos bots). */
.orbite { position: relative; width: 120px; height: 120px; }
.orbite.grande { width: 168px; height: 168px; }
.anneau-fil { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from var(--a), var(--spectre));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.6px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2.6px), #000 calc(100% - 2px));
  animation: zm-tour 6s linear infinite; }
.point { position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--texte); }
.p1 { animation: orbite 5s linear infinite; } .p2 { animation: orbite 7s linear infinite reverse; opacity: .7; } .p3 { animation: orbite 9s linear infinite; opacity: .45; width: 7px; height: 7px; margin: -3.5px; }
.orbite .p1 { --r: 38px; } .orbite .p2 { --r: 26px; } .orbite .p3 { --r: 46px; }
.orbite.grande .p1 { --r: 56px; } .orbite.grande .p2 { --r: 40px; } .orbite.grande .p3 { --r: 66px; }
@keyframes orbite { from { transform: rotate(0deg) translateX(var(--r)) rotate(0deg); } to { transform: rotate(360deg) translateX(var(--r)) rotate(-360deg); } }
.att-chiffre { position: absolute; inset: 0; display: grid; place-items: center; font-size: 44px; font-weight: 300; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }

/* Offre et compte à rebours */
.offre { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); }
.cd { position: relative; width: 84px; height: 84px; flex: none; }
.cd svg { width: 100%; height: 100%; }
.cd-piste { fill: none; stroke: var(--gris-5); stroke-width: 4; }
.cd-arc { fill: none; stroke: var(--texte); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 339.3; transition: stroke-dashoffset 1s linear; }
.cd-val { position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; font-weight: 400; font-variant-numeric: tabular-nums; }
.offre-titre { margin: 0 0 2px; font-size: 17px; font-weight: 500; }
.offre-txt p { margin: 0; }

/* Actions */
.actions { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.bouton-principal { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; width: 100%; border: 0; border-radius: 999px; background: var(--texte); color: #000; font: inherit; font-size: 16px; font-weight: 500; text-decoration: none; cursor: pointer; transition: opacity 200ms; }
.bouton-principal:disabled { opacity: .35; cursor: default; }
.bouton-principal .g { width: 20px; height: 20px; }
.bouton-principal.travaille::after { content: ""; position: absolute; inset: -3px; border-radius: inherit; padding: 2px; background: conic-gradient(from var(--a), var(--spectre));
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); -webkit-mask-composite: xor; animation: zm-tour 3s linear infinite; }
.bouton-texte { min-height: 44px; border: 0; background: none; color: var(--texte); font: inherit; font-size: 16px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--trait-icone); }

/* Formulaire */
form { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--texte-2); }
input { min-height: 48px; width: 100%; border: 1px solid transparent; border-radius: 12px; background: var(--surface); color: var(--texte); font: inherit; font-size: 16px; padding: 0 14px; outline: none; }
input:focus { border-color: var(--trait-icone); }
.mdp { position: relative; display: block; }
.mdp input { padding-right: 92px; }
.voir { position: absolute; right: 4px; top: 4px; height: 40px; padding: 0 12px; border: 0; background: none; color: var(--texte-2); font-size: 14px; cursor: pointer; }
.retour { width: 44px; height: 44px; margin: -8px 0 -16px -10px; border: 0; background: none; color: var(--texte); cursor: pointer; }
.retour svg { width: 24px; height: 24px; }
.erreur { color: var(--texte); font-size: 14px; margin: 0; padding-left: 14px; position: relative; }
.erreur::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--rouge); }
.erreur.centre { padding-left: 0; } .erreur.centre::before { display: none; }
#form .bouton-principal { margin-top: 8px; }

/* Étapes */
.etapes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.etapes li { display: flex; align-items: center; gap: 14px; min-height: 56px; border-bottom: 1px solid var(--filet); color: var(--texte-3); transition: color 220ms; }
.etapes li:last-child { border-bottom: 0; }
.pastille { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--trait-icone); flex: none; position: relative; transition: background 220ms, border-color 220ms; }
.etapes li.encours { color: var(--texte); }
.etapes li.encours .pastille { border-color: transparent; background: conic-gradient(from var(--a), var(--spectre)); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px)); animation: zm-tour 2s linear infinite; }
.etapes li.fait { color: var(--texte); }
.etapes li.fait .pastille { background: var(--texte); border-color: var(--texte); }
.etapes li.fait .pastille::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 10px; border: solid #000; border-width: 0 2px 2px 0; transform: rotate(45deg); }

@media (min-width: 700px) { #app { padding-top: 8vh; } h1 { font-size: 34px; } }
@media (prefers-reduced-motion: reduce) { .anneau-fil, .point, .etapes li.encours .pastille, .bouton-principal.travaille::after { animation: none !important; } .ecran { animation: none; } }
