/* ==========================================================
   CALCULATEUR D'HEURES SUP — Skin HUD (aligné sur la charte du portfolio)
   Palette : #050a12 fond | #00d4ff cyan | #ff4d6d hibiscus
   ========================================================== */

:root {
  --neon-cyan:    #00d4ff;
  --neon-pink:    #ff4d6d;
  --neon-blue:    #3b82f6;
  --neon-crimson: #bc002d;
  --neon-amber:   #f59e0b;
  --bg-deep:      #050a12;
  --bg-mid:       #0d1525;
  --bg-surface:   #111827;
  --text-primary: #e2e8f0;
  --text-dim:     #64748b;
}

*,
::before,
::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
}

body {
  font-family: 'Poppins', 'Noto Sans JP', sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
  overflow-x: hidden;
  color-scheme: dark;
}

/* Fond canvas fixe : réseau de nœuds façon circuit */
#hud-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -10;
  pointer-events: none;
}

.hud-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 620px;
}

/* Lien de retour vers le portfolio */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  margin-bottom: 1rem;
  transition: color 0.2s ease;
}
.back-link:hover {
  color: var(--neon-cyan);
}

/* Étiquette "kicker" en tête de page */
.page-kicker {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 6px var(--neon-cyan), 0 0 12px rgba(0, 212, 255, 0.6);
  animation: dotBlink 2.4s ease-in-out infinite;
}
@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

/* Carte HUD principale, coins découpés comme sur le reste du site */
.hud-card {
  position: relative;
  background: rgba(13, 21, 37, 0.85);
  border: 1px solid rgba(0, 212, 255, 0.15);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 2.5rem 2.25rem;
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.06);
}
.hud-card::before,
.hud-card::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--neon-cyan);
  border-style: solid;
  opacity: 0.65;
  pointer-events: none;
}
.hud-card::before { top: 8px; left: 8px;     border-width: 2px 0 0 2px; }
.hud-card::after  { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }

.app-title {
  text-align: center;
  font-size: clamp(1.1rem, 0.95rem + 1vw, 1.4rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}
.app-subtitle {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}
.jp-inline {
  color: var(--text-dim);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
}

/* ---------- Formulaire ---------- */

form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.field-group {
  position: relative;
}

.hud-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 0.55rem;
  opacity: 0.85;
}

/* Label caché, gardé pour l'accessibilité uniquement (remplace le display:none) */
.hide {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.hud-input {
  width: 100%;
  background: rgba(13, 21, 37, 0.8);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: var(--text-primary);
  padding: 0.75rem 0.85rem;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.hud-input::-webkit-calendar-picker-indicator {
  filter: invert(70%) sepia(70%) saturate(3000%) hue-rotate(160deg);
  cursor: pointer;
}
.hud-input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

/* Bouton HUD — coin découpé, reprend le sheen du reste du site */
.hud-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem 1.5rem;
  margin-top: 0.5rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.5;
  color: var(--bg-deep);
  background: var(--neon-cyan);
  border: none;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  box-shadow: 0 0 22px rgba(0, 212, 255, 0.45);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s ease, background 0.25s ease, transform 0.15s ease;
}
.hud-btn .jp-inline {
  color: rgba(5, 10, 18, 0.65);
}
.hud-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.hud-btn:hover {
  background: #19ddff;
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.7);
}
.hud-btn:hover::before { left: 125%; }
.hud-btn:active { transform: scale(0.97); }

/* ---------- Résultats ---------- */

.output {
  margin-top: 1.75rem;
}
.output p {
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.6;
  padding-top: 1.1rem;
  margin-top: 1.1rem;
  border-top: 1px dashed rgba(0, 212, 255, 0.2);
}
.output p:empty {
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
}

.working-hours {
  color: var(--text-primary);
  font-weight: 500;
}
.working-hours.is-error {
  color: var(--neon-crimson);
  font-weight: 700;
  border-top-color: rgba(188, 0, 45, 0.35);
}

.result {
  color: var(--neon-cyan);
  font-weight: 700;
  font-size: 1.05rem;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.35);
}

.comment-pending {
  color: var(--text-dim);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  font-style: italic;
  animation: pendingPulse 1.2s ease-in-out infinite;
}
@keyframes pendingPulse {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

.comment {
  color: var(--neon-pink);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 77, 109, 0.35);
}

/* Animation d'entrée en cascade */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
}
.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.2s; }

@media (max-width: 480px) {
  body { padding: 2rem 1rem; }
  .hud-card { padding: 2rem 1.35rem; }
  .field-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in-up { opacity: 1; animation: none; transform: none; }
  .dot,
  .comment-pending { animation: none; }
}

