/* Immatis — ce que Tailwind Play CDN ne fournit pas.
   Valeurs relevées sur la DA de référence (voir CLAUDE.md § Direction artistique). */

/* Décor de fond : grille 40px masquée en radial */
.bg-grid {
  background-image:
    linear-gradient(to right, #e4e4e7 1px, transparent 1px),
    linear-gradient(to bottom, #e4e4e7 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.4;
  -webkit-mask-image: radial-gradient(circle, #000 40%, #0000 100%);
  mask-image: radial-gradient(circle, #000 40%, #0000 100%);
}

/* Halo conique flouté, en haut à gauche */
.header-glow {
  filter: blur(80px);
  opacity: 0.5;
  background: conic-gradient(
    from 180deg,
    #eff6ff 0deg,
    #dbeafe 120deg,
    #93c5fd 180deg,
    #dbeafe 240deg,
    #eff6ff 360deg
  );
}

/* Apparition au scroll — seul mouvement structurant de la DA */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes step-in {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-step-in {
  animation: 0.42s cubic-bezier(0.16, 1, 0.3, 1) both step-in;
}

@media (prefers-reduced-motion: reduce) {
  .animate-step-in { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fff; }
::-webkit-scrollbar-thumb { background: #e4e4e7; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #71717a; }

/* Champs de formulaire — dérivés des jetons, la DA source n'en contient pas */
.champ {
  width: 100%;
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 0.175rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #18181b;
  transition: border-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.champ::placeholder { color: #a1a1aa; }
.champ:focus { outline: none; border-color: #2563eb; }
.champ[aria-invalid='true'] { border-color: #dc2626; }
.champ:disabled { background: #f8fafc; color: #71717a; }

.label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #18181b;
  margin-bottom: 0.375rem;
}

/* Zone de signature manuscrite */
.signature-pad {
  touch-action: none;
  cursor: crosshair;
  background: #fff;
  border: 1px dashed #e4e4e7;
  border-radius: 0.175rem;
  width: 100%;
  height: 180px;
  display: block;
}

/* Aperçu CERFA — imitation de page A4 */
.cerfa-page {
  background: #fff;
  border: 1px solid #e4e4e7;
  aspect-ratio: 210 / 297;
  box-shadow: 0 1px 3px 0 #0000001a, 0 2px 4px -1px #0000001a;
}
.cerfa-ligne {
  border-bottom: 1px solid #e4e4e7;
  min-height: 1.4em;
}
.cerfa-valeur {
  font-family: 'JetBrains Mono', monospace;
  color: #2563eb;
}

/* Zone de dépôt de fichier */
.depot {
  border: 1px dashed #e4e4e7;
  border-radius: 0.175rem;
  transition: border-color 0.15s, background-color 0.15s;
}
.depot:hover, .depot[data-survol='true'] { border-color: #2563eb; background: #f8fafc; }

[x-cloak] { display: none !important; }
