/* SuccessPrepa — Styles communs Inscription & Espace Candidat */

:root {
  --portail-navy: #0a1c3a;
  --portail-navy-deep: #060e1f;
  --portail-gold: #c4a771;
  --portail-gold-bright: #e8c878;
}

.portail-logo--light {
  filter: brightness(0) invert(1);
}

.portail-hero {
  background: linear-gradient(165deg, var(--portail-navy-deep) 0%, var(--portail-navy) 55%, #0d2448 100%);
  color: #fff;
  padding: 1.25rem 1.5rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.portail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 90% 0%, rgba(196, 167, 113, 0.2) 0%, transparent 55%);
  pointer-events: none;
}

.portail-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 72rem;
  margin: 0 auto;
}

.portail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease;
}

.portail-back:hover {
  color: var(--portail-gold-bright);
}

.portail-hero-brand {
  text-align: center;
  padding-top: 1rem;
}

.portail-hero-brand img {
  height: clamp(5rem, 14vw, 7rem);
  width: auto;
  object-fit: contain;
  margin: 0 auto 1rem;
}

.portail-hero-brand h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.portail-hero-brand p {
  margin-top: 0.5rem;
  max-width: 32rem;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.6;
}

.portail-layout {
  max-width: 72rem;
  margin: -1.5rem auto 0;
  padding: 0 1rem 3rem;
  display: grid;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.portail-layout--inscription {
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .portail-layout--inscription {
    grid-template-columns: 1.05fr 1fr;
    align-items: start;
    padding-inline: 1.5rem;
  }
}

.portail-layout--form-only {
  grid-template-columns: 1fr;
  max-width: 44rem;
}

/* Résultats — page inscription uniquement */
.portail-results-aside {
  order: -1;
}

@media (min-width: 1024px) {
  .portail-results-aside {
    order: 0;
    position: sticky;
    top: 1.5rem;
  }
}

.portail-results-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--portail-navy);
  margin-bottom: 0.35rem;
}

.portail-results-lead {
  color: #5d6573;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.portail-results-gallery {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.portail-result-item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(10, 28, 58, 0.1);
  background: #fff;
  box-shadow: 0 12px 40px rgba(10, 28, 58, 0.08);
}

.portail-result-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: #faf8f4;
}

.portail-result-item figcaption {
  padding: 0.65rem 1rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--portail-navy);
  background: #fff;
}

.portail-form-col {
  min-width: 0;
}

.portail-main-card {
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid rgba(10, 28, 58, 0.08);
  box-shadow: 0 24px 64px rgba(10, 28, 58, 0.1);
}

/* Login espace candidat */
.portail-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(165deg, var(--portail-navy-deep) 0%, var(--portail-navy) 50%, #0d2448 100%);
}

.portail-login-card {
  width: 100%;
  max-width: 26rem;
  padding: 2rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(196, 167, 113, 0.25);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
}

.portail-login-card .portail-back {
  color: var(--portail-navy);
  opacity: 0.7;
}

.portail-login-card .portail-back:hover {
  color: var(--portail-gold);
  opacity: 1;
}

.portail-btn-primary {
  background: linear-gradient(135deg, var(--portail-gold) 0%, #a8894a 100%) !important;
  color: var(--portail-navy-deep) !important;
  border: none !important;
  box-shadow: 0 8px 24px rgba(196, 167, 113, 0.35) !important;
}

.portail-btn-primary:hover {
  filter: brightness(1.05);
}

.portail-input:focus {
  border-color: var(--portail-gold) !important;
  outline: none;
  box-shadow: 0 0 0 2px rgba(196, 167, 113, 0.35) !important;
}
