/* Portail GAATH — design soigné, établissements + instructions uniquement */

.portal-page {
  min-height: 100vh;
  position: relative;
  padding: 1.5rem 1rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Image professionnelle bureaux / équipe */
  background-color: #0c1017;
  background-image:
    linear-gradient(180deg, rgba(8, 12, 20, 0.82) 0%, rgba(12, 16, 24, 0.88) 45%, rgba(8, 12, 20, 0.92) 100%),
    url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.portal-inner {
  width: 100%;
  max-width: 880px;
  position: relative;
  z-index: 1;
}

.portal-instructions {
  text-align: center;
  margin-bottom: 1.75rem;
  padding: 0 0.5rem;
}

.portal-instructions .brand-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.portal-instructions .login-logo {
  height: 56px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: none;
  border-radius: 8px;
}

.portal-instructions.has-logo .login-logo { display: block; }
.portal-instructions.has-logo .logo-mark { display: none; }

.portal-instructions .logo-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #c9a227, #8a7019);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #111;
  margin: 0;
}

.portal-instructions .eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9a227;
  margin: 0;
}

.portal-instructions h1 {
  margin: 0.15rem 0;
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  font-weight: 700;
  color: #f3f6fa;
  letter-spacing: 0.02em;
}

.portal-instructions .lead {
  margin: 0.65rem auto 0;
  max-width: 520px;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(232, 238, 245, 0.88);
}

.portal-instructions .step {
  margin: 1rem auto 0;
  max-width: 480px;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 162, 39, 0.25);
  font-size: 0.9rem;
  color: rgba(232, 238, 245, 0.9);
}

.sites-grid {
  display: grid;
  gap: 1.15rem;
  margin: 0 auto 1.5rem;
}
@media (min-width: 700px) {
  .sites-grid { grid-template-columns: 1fr 1fr; gap: 1.35rem; }
}

.site-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 24, 34, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1.6rem 1.35rem 1.35rem;
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.site-card:hover,
.site-card:focus {
  transform: translateY(-5px);
  border-color: rgba(201, 162, 39, 0.65);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  outline: none;
}

.site-card.selected {
  border-color: #c9a227;
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.35), 0 16px 48px rgba(0, 0, 0, 0.4);
}

.site-card .ornament {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  opacity: 0.18;
  background: #c9a227;
  pointer-events: none;
}

.site-card.annexe .ornament { background: #2d6a4f; }

.site-card .city {
  font-size: 0.72rem;
  color: #c9a227;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-card.annexe .city { color: #6bcb8a; }

.site-card h2 {
  margin: 0.45rem 0 0.55rem;
  font-size: 1.25rem;
  color: #fff;
  font-weight: 700;
}

.site-card p {
  margin: 0;
  color: rgba(200, 210, 220, 0.85);
  font-size: 0.9rem;
  line-height: 1.5;
}

.site-card .badge-site {
  display: inline-block;
  margin-top: 1.1rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(201, 162, 39, 0.4);
  color: #e8c547;
  background: rgba(201, 162, 39, 0.1);
}

.site-card.annexe .badge-site {
  border-color: rgba(107, 203, 138, 0.4);
  color: #6bcb8a;
  background: rgba(45, 106, 79, 0.2);
}

.site-card.selected .badge-site {
  background: rgba(201, 162, 39, 0.22);
}

/* Connexion — discrète, sous les établissements */
.login-section {
  max-width: 400px;
  margin: 0 auto;
  background: rgba(18, 24, 34, 0.78) !important;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.login-section .hint-site {
  text-align: center;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
  color: #c9a227;
}

.session-bar {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: rgba(232, 238, 245, 0.75);
}
