/* =============================================
   AURLY — Page Portail
   Fond : #141521 (navy profond)
   Intégration : #00FC43 | Industrie : #FCDA00
   Police : Funnel Sans
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }

body.portal {
  font-family: 'Funnel Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  background: #141521;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Halo de fond */
body.portal::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 18% 50%, rgba(0,252,67,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 55% 45% at 82% 50%, rgba(252,218,0,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.portal-wrapper {
  width: 100%;
  max-width: 1100px;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

/* =============================================
   HEADER — Logo Aurly
   ============================================= */
.portal-header { text-align: center; }

.portal-logo-img {
  height: 52px;
  width: auto;
  margin: 0 auto 1rem;
}

.portal-tagline {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.35);
  font-weight: 400;
}

/* =============================================
   CHOIX
   ============================================= */
.portal-choices {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  width: 100%;
  align-items: stretch;
}

/* Carte commune */
.choice-card {
  position: relative;
  border-radius: 20px;
  padding: 2.75rem 2.25rem;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.choice-card:hover {
  transform: scale(1.025) translateY(-6px);
  z-index: 2;
}

/* Halo animé au hover */
.choice-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.choice-card:hover .choice-glow { opacity: 1; }

/* --- Intégration --- */
.choice-integration {
  background: #0D1518;
  border: 1px solid rgba(0,252,67,0.18);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(0,252,67,0.12);
}

.choice-integration:hover {
  border-color: rgba(0,252,67,0.4);
  box-shadow:
    0 32px 80px rgba(0,0,0,0.55),
    0 0 80px rgba(0,252,67,0.1),
    inset 0 1px 0 rgba(0,252,67,0.2);
}

.choice-integration .choice-glow {
  background: radial-gradient(ellipse at top right, rgba(0,252,67,0.1) 0%, transparent 65%);
}

.choice-integration .choice-accent { color: #00FC43; }
.choice-integration .choice-title { color: #00FC43; }
.choice-integration .tag {
  background: rgba(0,252,67,0.1);
  border: 1px solid rgba(0,252,67,0.25);
  color: #00FC43;
}
.choice-integration .choice-cta {
  background: #00FC43;
  color: #141521;
}
.choice-integration:hover .choice-cta {
  box-shadow: 0 8px 24px rgba(0,252,67,0.35);
  filter: brightness(1.05);
}

/* --- Industrie --- */
.choice-industrie {
  background: #161408;
  border: 1px solid rgba(252,218,0,0.18);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(252,218,0,0.1);
}

.choice-industrie:hover {
  border-color: rgba(252,218,0,0.4);
  box-shadow:
    0 32px 80px rgba(0,0,0,0.55),
    0 0 80px rgba(252,218,0,0.08),
    inset 0 1px 0 rgba(252,218,0,0.18);
}

.choice-industrie .choice-glow {
  background: radial-gradient(ellipse at top left, rgba(252,218,0,0.1) 0%, transparent 65%);
}

.choice-industrie .choice-accent { color: #FCDA00; }
.choice-industrie .choice-title { color: #FCDA00; }
.choice-industrie .tag {
  background: rgba(252,218,0,0.1);
  border: 1px solid rgba(252,218,0,0.25);
  color: #FCDA00;
}
.choice-industrie .choice-cta {
  background: #FCDA00;
  color: #141521;
}
.choice-industrie:hover .choice-cta {
  box-shadow: 0 8px 24px rgba(252,218,0,0.3);
  filter: brightness(1.03);
}

/* Contenu carte */
.choice-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.choice-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

/* Logo SVG dans la carte */
.choice-logo {
  height: 40px;
  width: auto;
  margin-bottom: 1.25rem;
}

.choice-accent {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.choice-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
  line-height: 1.1;
}

.choice-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex: 1;
}

.choice-desc strong { color: rgba(255,255,255,0.75); font-weight: 600; }

.choice-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.75rem;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

.choice-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.8rem 1.75rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 800;
  transition: all 0.25s ease;
  align-self: flex-start;
  letter-spacing: 0.01em;
}

/* Séparateur */
.choice-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.25rem;
  z-index: 3;
}

.choice-divider span {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: #141521;
  padding: 0.5rem;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.06);
}

/* =============================================
   FOOTER
   ============================================= */
.portal-footer {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.2);
}

.portal-footer a {
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}

.portal-footer a:hover { color: rgba(255,255,255,0.7); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 780px) {
  .portal-choices {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .choice-divider { padding: 0.25rem 0; height: 34px; }
  .choice-divider span { margin: 0 auto; }
  .choice-card { padding: 2rem 1.75rem; }
  .choice-card:hover { transform: scale(1.01) translateY(-3px); }
}

@media (max-width: 480px) {
  .portal-wrapper { padding: 1.5rem 1rem; gap: 1.75rem; }
  .choice-card { padding: 1.75rem 1.25rem; }
  .portal-logo-img { height: 42px; }
}
