/* Portal apps.evalyourself.com — landing Bootstrap 5 + customisations.
   Servi par Caddy file_server, aucun backend. */

/* === Body & Layout === */
.portal-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at top, rgba(99, 102, 241, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, rgba(14, 165, 233, 0.25) 0%, transparent 50%),
    linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  background-attachment: fixed;
  color: #e2e8f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
               Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.portal-main { flex: 1; }

/* === Hero === */
.portal-hero {
  padding-top: 5rem !important;
  padding-bottom: 3rem !important;
}
.portal-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #0ea5e9);
  font-size: 2.4rem;
  color: #fff;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4),
              0 0 0 8px rgba(99, 102, 241, 0.15);
}
.portal-hero h1 {
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.025em;
}

/* === Cards === */
.portal-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px !important;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  color: #e2e8f0;
}
.portal-card .card-title { color: #f1f5f9; }
.portal-card .card-text { color: #94a3b8 !important; }

/* Hover state — uniquement sur cards actives */
.portal-card-active {
  cursor: pointer;
}
.portal-card-active:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.25),
              0 0 0 1px rgba(99, 102, 241, 0.2);
}
.portal-card-active:hover .portal-card-cover img { transform: scale(1.06); }
.portal-card-active:focus-visible {
  outline: 2px solid #818cf8;
  outline-offset: 4px;
}

/* Cards "bientôt" — atténuées */
.portal-card-soon {
  opacity: 0.7;
}
.portal-card-soon .portal-card-cover { filter: grayscale(0.4); }

/* === Card cover (capture d'écran de l'app) === */
.portal-card-cover {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portal-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
  display: block;
}
/* Fade subtil bas → laisse respirer entre image et card-body */
.portal-card-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 60%, rgba(15, 23, 42, 0.4) 100%);
}

/* === Badge === */
.portal-card .badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.4em 0.75em;
}

/* === Footer === */
.portal-footer {
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}
.portal-footer-links a {
  color: rgba(226, 232, 240, 0.6);
  text-decoration: none;
  transition: color 0.15s;
}
.portal-footer-links a:hover { color: #fff; }

/* === Responsive === */
@media (max-width: 768px) {
  .portal-hero { padding-top: 3rem !important; }
  .portal-hero-icon { width: 64px; height: 64px; font-size: 1.8rem; }
  .portal-card-cover { height: 130px; font-size: 3.5rem; }
}

/* === Réduit le respect motion pour les utilisateurs sensibles === */
@media (prefers-reduced-motion: reduce) {
  .portal-card,
  .portal-card-cover { transition: none !important; }
  .portal-card-active:hover { transform: none; }
}
